| 231 | } |
| 232 | |
| 233 | type 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 | |
| 244 | func getParameter(ctx context.Context, client *ssm.Client, name string) (int64, []byte, time.Time, *ssm.GetParameterOutput, error) { |
| 245 | getResp, err := client.GetParameter(ctx, &ssm.GetParameterInput{ |
nothing calls this directly
no outgoing calls
no test coverage detected