pulumi/tests/testdata/codegen/simple-resource-schema/go/example
Julien 42257d8137
[Go] Allow specifying dependencies for output invokes (#17791)
Provider functions that take inputs as arguments, and return an output
(aka output invokes), now allow specifying a `dependsOn` option. This
allows programs to ensure that invokes are executed after things they
depend on, similar to the [`depdendsOn` resource
option](https://www.pulumi.com/docs/iac/concepts/options/dependson/).

https://github.com/pulumi/pulumi/discussions/17710

This PR introduces a new `Context.InvokeOutput` method that the
generated SDK code uses to call the invoke, and pushes secret and
dependency tracking back into the Go SDK instead of the generated SDK
code.

Stacked on https://github.com/pulumi/pulumi/pull/17818

Fixes https://github.com/pulumi/pulumi/issues/17752

---------

Co-authored-by: Justin Van Patten <jvp@justinvp.com>
2024-12-10 13:08:57 +00:00
..
internal Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
argFunction.go [Go] Allow specifying dependencies for output invokes (#17791) 2024-12-10 13:08:57 +00:00
barResource.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
doc.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
fooResource.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
init.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
otherResource.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
provider.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
pulumi-plugin.json Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
pulumiTypes.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
resource.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
typeUses.go Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00