Function
newWatcher
(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options)
Source from the content-addressed store, hash-verified
| 150 | var OpenVariableV2 = OpenVariable |
| 151 | |
| 152 | func newWatcher(client *ssm.Client, name string, decoder *runtimevar.Decoder, opts *Options) *watcher { |
| 153 | if opts == nil { |
| 154 | opts = &Options{} |
| 155 | } |
| 156 | return &watcher{ |
| 157 | client: client, |
| 158 | name: name, |
| 159 | wait: driver.WaitDuration(opts.WaitDuration), |
| 160 | decoder: decoder, |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | // state implements driver.State. |
| 165 | type state struct { |