aws

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

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

func FetchELBTag(tags []*elb.Tag, tagKey *string) *string

FetchELBTag extracts tags

func FetchELBV2Tag

func FetchELBV2Tag(tags []*elbv2.Tag, tagKey *string) *string

FetchELBV2Tag extracts tags

func FetchEc2Tag

func FetchEc2Tag(tags []*ec2.Tag, tagKey *string) *string

FetchEc2Tag extracts tags

func HasAllValue

func HasAllValue(tag *string) bool

HasAllValue checks for the _all value tag

func HasConfigName

func HasConfigName(r interface {
	ConfigName() *string
}, configName *string) bool

HasConfigName checks value

func HasProjectName

func HasProjectName(r interface {
	ProjectName() *string
}, projectName *string) bool

HasProjectName checks value

func HasReleaseID

func HasReleaseID(r interface {
	ReleaseID() *string
}, releaseID *string) bool

HasReleaseID checks value

func HasServiceName

func HasServiceName(r interface {
	ServiceName() *string
}, serviceName *string) bool

HasServiceName checks value

func MatchesAllowedService

func MatchesAllowedService(r interface {
	AllowedService() *string
}, projectName *string, configName *string, serviceName *string) bool

Types

type ALBAPI

type ALBAPI elbv2iface.ELBV2API

ALBAPI aws API

type ASGAPI

ASGAPI aws API

type CWAPI

CWAPI aws API

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

type ClientsStr struct {
	ar.Clients
}

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

func (*ClientsStr) SFNClient

func (awsc *ClientsStr) SFNClient(region *string, accountID *string, role *string) SFNAPI

SFNClient returns client for region account and role

func (*ClientsStr) SNSClient

func (awsc *ClientsStr) SNSClient(region *string, accountID *string, role *string) SNSAPI

SNSClient returns client for region account and role

type DynamoDBAPI

type DynamoDBAPI dynamodbiface.DynamoDBAPI

DynamoDBAPI aws API

type EC2API

type EC2API ec2iface.EC2API

EC2API aws API

type ELBAPI

type ELBAPI elbiface.ELBAPI

ELBAPI aws API

type IAMAPI

type IAMAPI iamiface.IAMAPI

IAMAPI aws API

type Instances

type Instances map[string]string

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

func (all Instances) HealthyIDs() []string

HealthyIDs list of instances terminating

func (Instances) HealthyUnhealthyTerming

func (all Instances) HealthyUnhealthyTerming() (int, int, int)

HealthyUnhealthyTerming returns the numbers of states

func (Instances) InstanceIDs

func (all Instances) InstanceIDs() []string

InstanceIDs list of instance IDs

func (Instances) MergeInstances

func (all Instances) MergeInstances(update Instances) Instances

MergeInstances merge new set of instances returns new set

func (Instances) TerminatingIDs

func (all Instances) TerminatingIDs() []string

TerminatingIDs list of instances terminating

func (Instances) UnhealthyIDs

func (all Instances) UnhealthyIDs() []string

HealthyIDs list of instances terminating

type S3API

type S3API s3iface.S3API

S3API aws API

type SFNAPI

type SFNAPI sfniface.SFNAPI

SFNAPI aws API

type SNSAPI

type SNSAPI snsiface.SNSAPI

SNSAPI aws API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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