Documentation ¶
Index ¶
- Constants
- type AwsCreds
- func (creds *AwsCreds) GetAccountAlias(ctx context.Context) (string, error)
- func (creds *AwsCreds) GetAccountID(ctx context.Context) (string, error)
- func (creds *AwsCreds) GetRegions(ctx context.Context) ([]string, error)
- func (client *AwsCreds) QueryField(ctx context.Context, nodesFilters []*common.Filter, field string) ([]string, error)
- func (client *AwsCreds) QueryNodes(ctx context.Context, nodesFilters []*common.Filter, ssm bool) (map[string][]*manager.ManagerNode, error)
- func (client *AwsCreds) QueryStatus(ctx context.Context, regions []string) ([]pgdb.InstanceState, error)
- func (creds *AwsCreds) TestConnectivity(ctx context.Context) error
- type SSM
- func (s *SSM) GetCommandStatus(ctx context.Context, commandID string, region string) (string, string, error)
- func (s *SSM) Send(ctx context.Context, job *types.InspecJob, script string, scriptType string) (*ssm.SendCommandOutput, error)
- func (s *SSM) SendSSMJob(ctx context.Context, job *types.InspecJob, script string, scriptType string) error
Constants ¶
View Source
const ( SSMLinuxShellScript = "AWS-RunShellScript" SSMPowerShellScript = "AWS-RunPowerShellScript" )
View Source
const DefaultRegion string = "us-east-1"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsCreds ¶
type AwsCreds struct { AccessKeyId string SecretAccessKey string ArnRole string SessionToken string Region string }
func (*AwsCreds) GetAccountAlias ¶
func (*AwsCreds) GetAccountID ¶
func (*AwsCreds) GetRegions ¶
GetRegions returns a list of the names of AWS regions visible to this set of AWS credentials.
func (*AwsCreds) QueryField ¶
func (client *AwsCreds) QueryField(ctx context.Context, nodesFilters []*common.Filter, field string) ([]string, error)
QueryField returns node fields(tags, tags:environment, regions)
func (*AwsCreds) QueryNodes ¶
func (client *AwsCreds) QueryNodes(ctx context.Context, nodesFilters []*common.Filter, ssm bool) (map[string][]*manager.ManagerNode, error)
QueryNodes returns nodes based on a map of filters
func (*AwsCreds) QueryStatus ¶
func (client *AwsCreds) QueryStatus(ctx context.Context, regions []string) ([]pgdb.InstanceState, error)
QueryStatus returns an array of instanceState based on regions and instanceIds given to it
Click to show internal directories.
Click to hide internal directories.