MCPcopy Create free account
hub / github.com/google/go-cloud / OpenVariable

Function OpenVariable

runtimevar/awsparamstore/awsparamstore.go:146–148  ·  view source on GitHub ↗

OpenVariable constructs a *runtimevar.Variable backed by the variable name in AWS Systems Manager Parameter Store, using AWS SDK V2. Parameter Store returns raw bytes; provide a decoder to decode the raw bytes into the appropriate type for runtimevar.Snapshot.Value. See the runtimevar package docume

(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options)

Source from the content-addressed store, hash-verified

144// into the appropriate type for runtimevar.Snapshot.Value.
145// See the runtimevar package documentation for examples of decoders.
146func OpenVariable(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options) (*runtimevar.Variable, error) {
147 return runtimevar.New(newWatcher(client, name, decoder, opts)), nil
148}
149
150var OpenVariableV2 = OpenVariable
151

Callers 2

ExampleOpenVariableFunction · 0.92
OpenVariableURLMethod · 0.70

Calls 1

newWatcherFunction · 0.70

Tested by 1

ExampleOpenVariableFunction · 0.74