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

Struct watcher

runtimevar/awsparamstore/awsparamstore.go:233–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233type watcher struct {
234 // client is the client to use.
235 client *ssm.Client
236 // name is the parameter to retrieve.
237 name string
238 // wait is the amount of time to wait between querying AWS.
239 wait time.Duration
240 // decoder is the decoder that unmarshals the value in the param.
241 decoder *runtimevar.Decoder
242}
243
244func getParameter(ctx context.Context, client *ssm.Client, name string) (int64, []byte, time.Time, *ssm.GetParameterOutput, error) {
245 getResp, err := client.GetParameter(ctx, &ssm.GetParameterInput{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected