pulumi/sdk/go/pulumi
Fraser Waters f14cec0776
Add parameterized providers to Go (#16738)
This adds the first pass of parameterized providers to Go. This only
supports resources, need to expand tests to cover invokes and calls
later.

The method of implementation _might_ be seen as controversial, with all
new methods to do the registrations. An alternative would have been to
make PackageRef a `Resource/InvokeOption`, but that's inconsistent with
how we added it in the other languages, and further the engine won't
send it as a ResourceOption to transforms. So I think this
implementation is probably the preferred way, but while doing this we
might want to just do a `RegisterResourceV2` with `struct` args instead
of positional so if even more arguments need adding in the future we
have a non-breaking way to add them.
2024-08-10 08:03:15 +00:00
..
config Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
generate feat: declare a new type for 'any resource' (#15793) 2024-04-09 07:59:16 +00:00
internals Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
provider Support returning plain values from methods (#13592) 2023-11-18 06:02:06 +00:00
alias.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
alias_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
asset.go [sdk/{go,dotnet] Unmarshal invalid assets. (#7579) 2021-07-21 13:40:36 -07:00
callback.go fix potential concurrent map write in Go transforms (#16444) 2024-06-24 09:35:52 +00:00
context.go Add parameterized providers to Go (#16738) 2024-08-10 08:03:15 +00:00
context_test.go [11825] Add WithValue to pulumi.Context (#15149) 2024-01-16 12:09:49 +00:00
internals.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
log.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mocks.go implement engine support for invoke transforms (#16559) 2024-07-11 16:01:44 +00:00
printf.go Redesign the Go SDK resource/input/output system. (#3506) 2020-01-18 10:08:37 -05:00
printf_test.go Use `assert.NoError` rather than `assert.Nil` (#14233) 2023-10-13 09:46:07 +00:00
provider.go Await output properties before closing the context (#15611) 2024-03-08 23:17:42 +00:00
provider_linked.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider_test.go Await output properties before closing the context (#15611) 2024-03-08 23:17:42 +00:00
resource.go Add parameterized providers to Go (#16738) 2024-08-10 08:03:15 +00:00
resource_set.go unused: Remove unused functions and types 2023-01-12 09:55:34 -08:00
resource_test.go [11825] Add WithValue to pulumi.Context (#15149) 2024-01-16 12:09:49 +00:00
rpc.go Add array conformance test (#15899) 2024-04-10 16:00:24 +00:00
rpc_test.go Implement up --continue-on-error (#15740) 2024-04-22 11:12:45 +00:00
run.go [11825] Add WithValue to pulumi.Context (#15149) 2024-01-16 12:09:49 +00:00
run_test.go Enable perfsprint linter (#14813) 2023-12-12 12:19:42 +00:00
stack_reference.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_reference_test.go Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
transform.go add Go support for invoke transforms (#16617) 2024-07-15 08:28:11 +00:00
transformation.go Support transformations in Go (#3978) 2020-03-02 13:59:11 -08:00
type_conversions.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
types.go turn on the golangci-lint exhaustive linter (#15028) 2024-01-17 16:50:41 +00:00
types_builtins.go feat: declare a new type for 'any resource' (#15793) 2024-04-09 07:59:16 +00:00
types_builtins_test.go Use `assert.NoError` rather than `assert.Nil` (#15870) 2024-04-08 14:10:35 +00:00
types_contravariance_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
types_test.go Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
urnset.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00