Documentation ¶
Index ¶
- Variables
- func Exec(svc *ssm.SSM, paths []string, recursive bool, argv []string) error
- func GetByName(w io.Writer, svc *ssm.SSM, path string, name string) error
- func GetByPath(w io.Writer, svc *ssm.SSM, path string, recursive bool, exportFlag bool) error
- func GetParametersByNames(svc *ssm.SSM, names []*string) ([]*ssm.Parameter, error)
- func GetParametersByPath(svc *ssm.SSM, path string, recursive bool) ([]*ssm.Parameter, error)
- func Replace(w io.Writer, svc *ssm.SSM, path string, recursive bool, exprs []string) error
- func ReplaceParameters(svc *ssm.SSM, path string, recursive bool, params []*ssm.Parameter, ...) error
- func Set(w io.Writer, svc *ssm.SSM, path string, exprs []string) error
- type ErrAbsNameWithPath
- type ErrInvalidExpression
- type ErrInvalidName
- type ErrInvalidPath
- type ErrPathMismatch
- type ErrSlashWithoutRecursive
- type ErrUnmarshal
Constants ¶
This section is empty.
Variables ¶
var ( ErrRequireCommand = errors.New("command is required") ErrRequireNameAndValue = errors.New("name=value is required") ErrRequirePath = errors.New("path is required") )
Errors with a fixed message.
var MaxConnection = 4
MaxConnection is the max number of concurrent connections to the AWS API.
var UseCommandInsteadOfExec = false
UseCommandInsteadOfExec is a flag to use exec.Command instead of syscall.Exec for testing.
Functions ¶
func GetParametersByNames ¶
GetParametersByNames is a wrapper of SSM.GetParameters()
func GetParametersByPath ¶
GetParametersByPath is a wrapper of SSM.GetParametersByPath()
Types ¶
type ErrAbsNameWithPath ¶
type ErrAbsNameWithPath struct {
Path, Name string
}
ErrAbsNameWithPath describes an absolute name are given with a path.
func (ErrAbsNameWithPath) Error ¶
func (e ErrAbsNameWithPath) Error() string
type ErrInvalidExpression ¶
type ErrInvalidExpression struct {
Expr string
}
ErrInvalidExpression describes a problem parsing a expression.
func (ErrInvalidExpression) Error ¶
func (e ErrInvalidExpression) Error() string
type ErrInvalidName ¶
type ErrInvalidName struct {
Name string
}
ErrInvalidName records an error for an invalid name.
func (ErrInvalidName) Error ¶
func (e ErrInvalidName) Error() string
type ErrInvalidPath ¶
type ErrInvalidPath struct {
Path string
}
ErrInvalidPath records an error for an invalid path.
func (ErrInvalidPath) Error ¶
func (e ErrInvalidPath) Error() string
type ErrPathMismatch ¶
type ErrPathMismatch struct {
Path, Name string
}
ErrPathMismatch describes that a name does not begin with a path.
func (ErrPathMismatch) Error ¶
func (e ErrPathMismatch) Error() string
type ErrSlashWithoutRecursive ¶
type ErrSlashWithoutRecursive struct {
Expr string
}
ErrSlashWithoutRecursive describes that a name contains slashes without a recrusive flag.
func (ErrSlashWithoutRecursive) Error ¶
func (e ErrSlashWithoutRecursive) Error() string
type ErrUnmarshal ¶
type ErrUnmarshal struct {
// contains filtered or unexported fields
}
ErrUnmarshal describes a problem parsing a expression.
func (ErrUnmarshal) Error ¶
func (e ErrUnmarshal) Error() string