Documentation ¶
Index ¶
- func FetchASGTag(tags []*autoscaling.TagDescription, tagKey *string) *string
- func FetchELBTag(tags []*elb.Tag, tagKey *string) *string
- func FetchELBV2Tag(tags []*elbv2.Tag, tagKey *string) *string
- func FetchEc2Tag(tags []*ec2.Tag, tagKey *string) *string
- func HasAllValue(tag *string) bool
- func HasConfigName(r interface{ ... }, configName *string) bool
- func HasProjectName(r interface{ ... }, projectName *string) bool
- func HasReleaseID(r interface{ ... }, releaseID *string) bool
- func HasServiceName(r interface{ ... }, serviceName *string) bool
- func MatchesAllowedService(r interface{ ... }, projectName *string, configName *string, ...) bool
- type ALBAPI
- type ASGAPI
- type CWAPI
- type Clients
- type ClientsStr
- func (awsc *ClientsStr) ALBClient(region *string, accountID *string, role *string) ALBAPI
- func (awsc *ClientsStr) ASGClient(region *string, accountID *string, role *string) ASGAPI
- func (awsc *ClientsStr) CWClient(region *string, accountID *string, role *string) CWAPI
- func (awsc *ClientsStr) DynamoDBClient(region *string, account_id *string, role *string) DynamoDBAPI
- func (awsc *ClientsStr) EC2Client(region *string, accountID *string, role *string) EC2API
- func (awsc *ClientsStr) ELBClient(region *string, accountID *string, role *string) ELBAPI
- func (awsc *ClientsStr) IAMClient(region *string, accountID *string, role *string) IAMAPI
- func (awsc *ClientsStr) S3Client(region *string, accountID *string, role *string) S3API
- func (awsc *ClientsStr) SFNClient(region *string, accountID *string, role *string) SFNAPI
- func (awsc *ClientsStr) SNSClient(region *string, accountID *string, role *string) SNSAPI
- type DynamoDBAPI
- type EC2API
- type ELBAPI
- type IAMAPI
- type Instances
- func (all Instances) AddASGInstance(i *autoscaling.Instance)
- func (all Instances) AddELBInstance(is *elb.InstanceState)
- func (all Instances) AddTargetGroupInstance(thd *elbv2.TargetHealthDescription)
- func (all Instances) HealthyIDs() []string
- func (all Instances) HealthyUnhealthyTerming() (int, int, int)
- func (all Instances) InstanceIDs() []string
- func (all Instances) MergeInstances(update Instances) Instances
- func (all Instances) TerminatingIDs() []string
- func (all Instances) UnhealthyIDs() []string
- type S3API
- type SFNAPI
- type SNSAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchASGTag ¶
func FetchASGTag(tags []*autoscaling.TagDescription, tagKey *string) *string
FetchASGTag extracts tags
func FetchELBTag ¶
FetchELBTag extracts tags
func FetchELBV2Tag ¶
FetchELBV2Tag extracts tags
func FetchEc2Tag ¶
FetchEc2Tag extracts tags
func HasConfigName ¶
HasConfigName checks value
func HasProjectName ¶
HasProjectName checks value
func HasReleaseID ¶
HasReleaseID checks value
func HasServiceName ¶
HasServiceName checks value
Types ¶
type Clients ¶
type Clients interface { S3Client(region *string, accountID *string, role *string) S3API ASGClient(region *string, accountID *string, role *string) ASGAPI ELBClient(region *string, accountID *string, role *string) ELBAPI EC2Client(region *string, accountID *string, role *string) EC2API ALBClient(region *string, accountID *string, role *string) ALBAPI CWClient(region *string, accountID *string, role *string) CWAPI IAMClient(region *string, accountID *string, role *string) IAMAPI SNSClient(region *string, accountID *string, role *string) SNSAPI SFNClient(region *string, accountID *string, role *string) SFNAPI DynamoDBClient(region *string, accountID *string, role *string) DynamoDBAPI }
Clients for AWS
type ClientsStr ¶
ClientsStr implementation
func (*ClientsStr) ALBClient ¶
func (awsc *ClientsStr) ALBClient(region *string, accountID *string, role *string) ALBAPI
ALBClient returns client for region account and role
func (*ClientsStr) ASGClient ¶
func (awsc *ClientsStr) ASGClient(region *string, accountID *string, role *string) ASGAPI
ASGClient returns client for region account and role
func (*ClientsStr) CWClient ¶
func (awsc *ClientsStr) CWClient(region *string, accountID *string, role *string) CWAPI
CWClient returns client for region account and role
func (*ClientsStr) DynamoDBClient ¶
func (awsc *ClientsStr) DynamoDBClient(region *string, account_id *string, role *string) DynamoDBAPI
DynamoDBClient returns client for region account and role
func (*ClientsStr) EC2Client ¶
func (awsc *ClientsStr) EC2Client(region *string, accountID *string, role *string) EC2API
EC2Client returns client for region account and role
func (*ClientsStr) ELBClient ¶
func (awsc *ClientsStr) ELBClient(region *string, accountID *string, role *string) ELBAPI
ELBClient returns client for region account and role
func (*ClientsStr) IAMClient ¶
func (awsc *ClientsStr) IAMClient(region *string, accountID *string, role *string) IAMAPI
IAMClient returns client for region account and role
func (*ClientsStr) S3Client ¶
func (awsc *ClientsStr) S3Client(region *string, accountID *string, role *string) S3API
S3Client returns client for region account and role
type Instances ¶
Instances Map of instance id to state
func (Instances) AddASGInstance ¶
func (all Instances) AddASGInstance(i *autoscaling.Instance)
AddASGInstance add a ASG instances
func (Instances) AddELBInstance ¶
func (all Instances) AddELBInstance(is *elb.InstanceState)
AddELBInstance add a ELB instances
func (Instances) AddTargetGroupInstance ¶
func (all Instances) AddTargetGroupInstance(thd *elbv2.TargetHealthDescription)
AddTargetGroupInstance add a target group instances
func (Instances) HealthyIDs ¶
HealthyIDs list of instances terminating
func (Instances) HealthyUnhealthyTerming ¶
HealthyUnhealthyTerming returns the numbers of states
func (Instances) InstanceIDs ¶
InstanceIDs list of instance IDs
func (Instances) MergeInstances ¶
MergeInstances merge new set of instances returns new set
func (Instances) TerminatingIDs ¶
TerminatingIDs list of instances terminating
func (Instances) UnhealthyIDs ¶
HealthyIDs list of instances terminating