extract

package
v0.0.0-...-c8376b4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argv

func Argv(argv []string) (preDashArgs []string, hasDash bool, postDashArgs []string)

Parses the command line arguments and returns two slices of strings for futher interpretation.

func ParseFlags

func ParseFlags(preDash []string) (ssmPaths []string, verbose bool, err error)

Parses the pre-dash arguments and returns a slice of SSM parameter paths and verbosity.

func SSM

func SSM(ctx context.Context, ssmClient SSMClient, ssmPaths []string) (mergedParams []types.Parameter, err error)

Fetches SSM parameters and returns a slice of environment variable strings.

Types

type SSMClient

type SSMClient interface {
	GetParameters(ctx context.Context, params *ssm.GetParametersInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersOutput, error)
}

Jump to

Keyboard shortcuts

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