aws

package
v0.0.0-...-32a2ef5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *secretsmanager.Client
	// KeyValue List. just json slice as []string{"{\"username\":\"david\",\"password\":\"EXAMPLE-PASSWORD\"}", ...}
	KeyValues []string
	// cycle time interval, second
	CircleInterval int
	ExitWatchCh    chan error
}

func NewAWSClient

func NewAWSClient(accessKeyID, secretAccessKey, region string, circleInterval int) (c *Client, err error)

func (*Client) GetValues

func (c *Client) GetValues(keys []string) (map[string]string, error)

GetValues @keys: secretName

func (*Client) WatchPrefix

func (c *Client) WatchPrefix(prefix string, keys []string, waitIndex uint64, stopChan chan bool) (uint64, error)

WatchPrefix will get all aws KV list every CircleInterval second @prefix @keys will all useful

Jump to

Keyboard shortcuts

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