paramstore

package
v0.0.0-...-da76615 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package paramstore reads parameters to the AWS Systems Manager Parameter Store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client stores long-lived variables for connecting to Parameter Store.

func NewClient

func NewClient(ctx context.Context, p client.ConfigProvider) *Client

NewClient returns a constructed Client with the required values.

func (*Client) NewVariable

func (c *Client) NewVariable(ctx context.Context, name string, decoder *runtimevar.Decoder, opts *WatchOptions) (*runtimevar.Variable, error)

NewVariable constructs a runtimevar.Variable object with this package as the driver implementation. If WaitTime is not set the polling time is set to 30 seconds.

type WatchOptions

type WatchOptions struct {
	// WaitTime controls the frequency of making an HTTP call and checking for
	// updates by the Watch method. The smaller the value, the higher the frequency
	// of making calls, which also means a faster rate of hitting the API quota.
	// If this option is not set or set to 0, it uses a default value.
	WaitTime time.Duration
}

WatchOptions provide optional configurations to the Watcher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL