Documentation
¶
Index ¶
- func AppendSSMFilter(filters *[]*ssm.InstanceInformationStringFilter, ...)
- func CheckInstanceReadiness(session *session.Session, client ssmiface.SSMAPI, ...)
- func CreateSSMDescribeInstanceInput(filters map[string]string, instances CommaSlice) *ssm.DescribeInstanceInformationInput
- func NewSSMInstanceFilter(name string, values CommaSlice) *ssm.InstanceInformationStringFilter
- func RunInvocations(sess *session.Session, client ssmiface.SSMAPI, wg *sync.WaitGroup, ...)
- type CommaSlice
- type ListSlice
- type SemiSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendSSMFilter ¶
func AppendSSMFilter(filters *[]*ssm.InstanceInformationStringFilter, filterToAdd *ssm.InstanceInformationStringFilter)
AppendSSMFilter appends a single *ssm.InstanceInformationStringFilter to an existing array of filters, then returns the appended array
func CheckInstanceReadiness ¶
func CheckInstanceReadiness(session *session.Session, client ssmiface.SSMAPI, instanceList []*ssm.InstanceInformation, limit int, readyInstancePool *instance.InstanceInfoSafe)
CheckInstanceReadiness iterates through a list of instances and verifies whether or not it is start-session capable. If it is, it appends the instance info to an instances.InstanceInfoSafe slice.
func CreateSSMDescribeInstanceInput ¶
func CreateSSMDescribeInstanceInput(filters map[string]string, instances CommaSlice) *ssm.DescribeInstanceInformationInput
CreateSSMDescribeInstanceInput returns an *ssm.DescribeInstanceInformationInput object for use when calling the DescribeInstanceInformation() method
func NewSSMInstanceFilter ¶
func NewSSMInstanceFilter(name string, values CommaSlice) *ssm.InstanceInformationStringFilter
NewSSMInstanceFilter takes a name and any number of instance IDs to create an *ssm.InstanceInformationStringFilter that can be used to select specific SSM-managed instances instead of solely searching based on tags
func RunInvocations ¶
func RunInvocations(sess *session.Session, client ssmiface.SSMAPI, wg *sync.WaitGroup, input *ssm.SendCommandInput, results *invocation.ResultSafe)
RunInvocations invokes an SSM document with given parameters on the provided slice of instances
Types ¶
type CommaSlice ¶
type CommaSlice []string
CommaSlice enables comma-delimited input for a Var flag
func (*CommaSlice) Set ¶
func (c *CommaSlice) Set(value string) error
Set takes a list of comma-delimited values, splits them, and appends each item to the current CommaSlice object
func (*CommaSlice) String ¶
func (c *CommaSlice) String() string
func (*CommaSlice) Type ¶
func (c *CommaSlice) Type() string
type ListSlice ¶
type ListSlice []string
ListSlice is for standard Var flag usage