ssm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func (*ListSlice) Set

func (l *ListSlice) Set(value string) error

Set appends the value provided to the current ListSlice object

func (*ListSlice) String

func (l *ListSlice) String() string

func (*ListSlice) Type

func (l *ListSlice) Type() string

type SemiSlice

type SemiSlice []string

SemiSlice enables semicolon-delimited input for a Var flag

func (*SemiSlice) Set

func (s *SemiSlice) Set(value string) error

Set takes a list of semicolon-delimited values, splits them, and appends each item to the current SemiSlice object

func (*SemiSlice) String

func (s *SemiSlice) String() string

func (*SemiSlice) Type

func (s *SemiSlice) Type() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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