fetch

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustSetEnv

func MustSetEnv(paths, tags []string, debug bool)

MustSetEnv retrieves SSM parameters for the given paths and tags and sets each as env variables via os.Setenv. This function will panic if any error occurs. Set debug to true for debug logging to STDOUT (WARNING: any sensitive SSM param values will be logged).

Types

type Fetcher

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

func NewFetcher

func NewFetcher(ssmRegion string, debug bool) *Fetcher

NewFetcher returns a new *Fetcher. Optional ssmRegion can be supplied if the SSM region is different than the AWS_REGION this program is running in. Set debug to true for debug logging to STDOUT (WARNING: any sensitive SSM param values will be logged).

func (*Fetcher) FetchParams

func (f *Fetcher) FetchParams(paths, tags []string) ([]*ssm.Parameter, error)

Jump to

Keyboard shortcuts

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