pulumi/sdk/go/common/resource/plugin
Abhinav Gupta 7bddec255d
sdk/go: Prefer contract.Assertf over Assert
Migrates all uses of contract.{Assert, AssertNoError, Require} in sdk/
to the `*f` variants that are required to provide more error context.

Step towards deprecating non-f variants entirely.

For context, `contract.Require` is similar to `contract.Assert`,
except it has a required parameter name as an argument:

    func Require(cond bool, param string)
    func Requiref(cond bool, param string, msg string, args ...any)

It includes the parameter name in the error message by default,
so the `msg` and `args` should only describe the constraint
without naming the parameter.

Refs #12132
2023-02-15 10:22:43 -08:00
..
analyzer.go feat(engine): Adds structured alias support to the engine 2022-10-11 17:56:32 -04:00
analyzer_plugin.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
check.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
config_source.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
context.go gosimple: select with single case 2023-01-12 09:55:34 -08:00
doc.go Provider implementer's guide draft (#6322) 2021-04-13 14:11:02 -07:00
host.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
host_server.go Embed default gRPC server implementations 2023-01-05 17:54:11 -08:00
langruntime.go Engine and Golang support for shimless providers 2022-11-14 11:25:41 +00:00
langruntime_plugin.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
plugin.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
plugin_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
provider.go Phase 3 of the convert mapper 2022-12-01 23:43:43 +00:00
provider_plugin.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
provider_plugin_test.go sdk/plugin/provider: Prevent use-before-configure races 2023-01-27 08:56:42 -08:00
provider_server.go sdk/resource/ProviderServer: Fix potential panic at Configure 2023-01-12 11:32:42 -08:00
provider_server_test.go sdk/resource/ProviderServer: Fix potential panic at Configure 2023-01-12 11:32:42 -08:00
provider_test.go Add forward compatible UnimplementedProvider for bridge 2022-12-09 18:44:28 -08:00
provider_unimplemented.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
rpc.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
rpc_rapid_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
rpc_test.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00