aws

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRegion = "us-east-1"

Functions

func CredentialsProvider

func CredentialsProvider(awsCredentialProfile string) *credentials.Credentials

func GetMockedAwsSession

func GetMockedAwsSession(apiRoutes []*MockRoute, region string) (*session.Session, func())

Types

type AWS

type AWS struct {
	Region *string
	// contains filtered or unexported fields
}

func MockedAWS

func MockedAWS(input *MockedAWSInput) *AWS

func NewAWS

func NewAWS(profileName string, region string) *AWS

func (*AWS) AttachBalancersToScalingGroup

func (a *AWS) AttachBalancersToScalingGroup(balancerNames []string, groupName string) error

func (*AWS) DescribeBalancedInstanceHealth

func (a *AWS) DescribeBalancedInstanceHealth(balancerName string) ([]*InstanceHealth, error)

func (*AWS) DetachBalancersFromScalingGroup

func (a *AWS) DetachBalancersFromScalingGroup(balancerNames []string, groupName string) error

func (*AWS) GetAppNameFromScalingGroup

func (a *AWS) GetAppNameFromScalingGroup(scalingGroup string) (string, error)

func (*AWS) GetBalancersForApp

func (a *AWS) GetBalancersForApp(appName string) ([]string, error)

func (*AWS) GetBalancersFromScalingGroup

func (a *AWS) GetBalancersFromScalingGroup(scalingGroup string) ([]*Balancer, error)

func (*AWS) GetInstanceIdsFromScalingGroup

func (a *AWS) GetInstanceIdsFromScalingGroup(scalingGroup string) ([]*string, error)

func (*AWS) GetPrivateIpsForInstanceIds

func (a *AWS) GetPrivateIpsForInstanceIds(instanceIds []*string) (map[string]string, error)

func (*AWS) GetScalingGroupForSlotId

func (a *AWS) GetScalingGroupForSlotId(environment, appName, slotId string) (string, error)

func (*AWS) User

func (a *AWS) User() (*User, error)

type Balancer

type Balancer struct {
	Name  string
	State string
}

type InstanceHealth

type InstanceHealth struct {
	InstanceID string
	State      string
}

type MockResponse

type MockResponse struct {
	Code      int
	HeaderMap map[string]string
	Body      string
}

type MockRoute

type MockRoute struct {
	ExpectedURI         string
	ExpectedMethod      string
	ExpectedRequestBody string
	Response            MockResponse
}

type MockedAWSInput

type MockedAWSInput struct {
	Region          string
	AutoscalingSess *session.Session
	Ec2Sess         *session.Session
	ElbSess         *session.Session
	StsSess         *session.Session
	S3Sess          *session.Session
}

type User

type User struct {
	AccountID string
	Name      string
	UserID    string
	Arn       string
}

Jump to

Keyboard shortcuts

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