Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(options ExportOptions) error
Export fetches paramters from SSM and export those to environment variables. This is for use ssmwrap as a library.
func Run ¶
func Run(options RunOptions, ssm SSMConnector, dests []Destination) error
Types ¶
type DefaultSSMConnector ¶
type DefaultSSMConnector struct{}
type Destination ¶
type DestinationEnv ¶
DestinationEnv is an implementation of Destination interface.
func (DestinationEnv) Name ¶
func (d DestinationEnv) Name() string
type DestinationFile ¶
type DestinationFile struct {
Targets []FileTarget
}
DestinationFile is an implementation of Destination interface.
func (DestinationFile) Name ¶
func (d DestinationFile) Name() string
type ExportOptions ¶
type FileTarget ¶
func (FileTarget) IsSatisfied ¶
func (t FileTarget) IsSatisfied() error
func (FileTarget) String ¶
func (t FileTarget) String() string
type RunOptions ¶
type RunOptions struct { // Paths is target paths on SSM Parameter Store. // If there are multiple paths, all of related values will be loaded. Paths []string // Names are names on SSM Parameter Store. Names []string // Recursive tell ssmwrap to retrieve values from SSM recursively. Recursive bool // Retry limit to request to SSM. Retries int // Command and arguments to run. Command []string }
type SSMConnector ¶
type SSMConnector interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.