pulumi/sdk/go/pulumi/templates
Justin Van Patten 1a4f36e97b
[sdk/go] Add RegisterInputType and register built-in types (#7928)
This change adds a `RegisterInputType` function (similar to the existing `RegisterOutputType`) that is used to register an input interface's type and its associated input type, and adds registrations for the built-in input types.

This will be used when copying inputs to an args struct for multi-lang components. When a field is typed as the input interface (e.g. `StringMapInput`) and doesn't need to be an `Output`, we can use this to lookup the non-Output type that implements the interface (e.g. `StringMap`) so it can be instantiated.

A subsequent change will update the Go SDK codegen to produce input type registrations for a provider's input types.
2021-09-15 21:12:49 -07:00
..
config-config.go.template [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
config-get.go.template Temporarily disable config secrets warning (#7129) 2021-05-24 16:06:27 -07:00
config-require.go.template [sdk/go] Warn when a secret config is read as a non-secret (#7080) 2021-05-18 15:02:43 -07:00
config-try.go.template [sdk/go] Warn when a secret config is read as a non-secret (#7080) 2021-05-18 15:02:43 -07:00
types_builtins.go.template [sdk/go] Add RegisterInputType and register built-in types (#7928) 2021-09-15 21:12:49 -07:00
types_builtins_test.go.template Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00