util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNameNotFound = errors.New("Name not found")
)

Functions

func ExpandJson

func ExpandJson(value string) (map[string]string, error)

func ExpandJsonParams

func ExpandJsonParams(params map[string]string) (map[string]string, error)

func GetSortedNamesFromParams

func GetSortedNamesFromParams(params map[string]string) []string

func IsPath

func IsPath(param *string) (bool, error)

func OutputParamsAsString

func OutputParamsAsString(params map[string]string, prefix string, quoteFlag bool) string

outputs the parameters as string sorted by name

func SplitParams

func SplitParams(param *string) []string

Types

type AWSSSM

type AWSSSM struct {
	SSM ssmiface.SSMAPI
	// contains filtered or unexported fields
}

func NewSSM

func NewSSM() *AWSSSM

func (*AWSSSM) GetOutputString

func (f *AWSSSM) GetOutputString(results map[string]string, outJsonFlag bool, exportFlag bool, quoteFlag bool) (string, error)

func (*AWSSSM) GetParameters

func (f *AWSSSM) GetParameters(ssmnames []*string, upperFlag bool) (map[string]string, error)

func (*AWSSSM) GetParametersByPath

func (f *AWSSSM) GetParametersByPath(paths []string, upperFlag bool) (map[string]string, error)

func (*AWSSSM) GetParams

func (f *AWSSSM) GetParams(paramstring *string, inJsonFlag bool, upperFlag bool) (map[string]string, error)

func (*AWSSSM) ReadParametersFromFile

func (f *AWSSSM) ReadParametersFromFile(fileName string, path string, inJsonFlag bool) (map[string]string, error)

func (*AWSSSM) SaveParameters

func (f *AWSSSM) SaveParameters(params map[string]string, basePath string) error

func (*AWSSSM) SaveParametersFromFile

func (f *AWSSSM) SaveParametersFromFile(fileName string, basePath string, inJsonFlag bool, dryFlag bool) error

Jump to

Keyboard shortcuts

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