util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 12 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, flags Flags) (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, flags Flags) 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, flags Flags) (string, error)

func (*AWSSSM) GetParameters

func (f *AWSSSM) GetParameters(ssmnames []*string, flags Flags) (map[string]string, error)

func (*AWSSSM) GetParametersByPath

func (f *AWSSSM) GetParametersByPath(paths []string, flags Flags) (map[string]string, error)

func (*AWSSSM) GetParams

func (f *AWSSSM) GetParams(paramstring *string, flags Flags) (map[string]string, error)

func (*AWSSSM) ReadParametersFromFile

func (f *AWSSSM) ReadParametersFromFile(fileName string, path string, flags Flags) (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, flags Flags) error

type Flags added in v0.0.4

type Flags struct {
	Export               bool
	InJson               bool
	OutJson              bool
	Upper                bool
	Quote                bool
	Dry                  bool
	Recursive            bool
	PrefixPath           bool
	PrefixNormalizedPath bool
}

Jump to

Keyboard shortcuts

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