mirror of https://github.com/pulumi/pulumi.git
a92b877e5f
`provider.Construct` is used to build MLCs in Go. It receives a pulumirpc.ConstructRequest and turns that into a standard Go SDK ResourceOption. In #12682, we added a few new fields to pulumirpc.ConstructRequest. This updates the Go SDK to pick up these new options and pass them on for the resource to pick up (and eventually send back to the engine as a RegisterResource call). Testing: This change includes unit tests to verify mapping of ConstructRequests to options, which are then interpreted with NewResourceOptions. On top of that, it builds upon the integration test added in #12699 to verify options that are saved in snapshots. Note that this integration test does not test for the following options: IgnoreChanges, ReplaceOnChanges, and DeleteBeforeReplace. These options are not stored in state snapshots, so we can't validate them just by looking at that. Refs #12154 |
||
---|---|---|
.. | ||
config | ||
generate | ||
internals | ||
provider | ||
alias.go | ||
alias_test.go | ||
asset.go | ||
context.go | ||
context_test.go | ||
internals.go | ||
log.go | ||
mocks.go | ||
printf.go | ||
printf_test.go | ||
provider.go | ||
provider_linked.go | ||
provider_test.go | ||
resource.go | ||
resource_set.go | ||
resource_test.go | ||
rpc.go | ||
rpc_test.go | ||
run.go | ||
run_test.go | ||
stack_reference.go | ||
stack_reference_test.go | ||
transformation.go | ||
type_conversions.go | ||
types.go | ||
types_builtins.go | ||
types_builtins_test.go | ||
types_contravariance_test.go | ||
types_test.go | ||
urnset.go | ||
workgroup.go | ||
workgroup_test.go |