Documentation ¶
Index ¶
- Variables
- func CredentialsProvider(awsCredentialProfile string) *credentials.Credentials
- func GetMockedAwsSession(apiRoutes []*MockRoute, region string) (*session.Session, func())
- type AWS
- func (a *AWS) AttachBalancersToScalingGroup(balancerNames []string, groupName string) error
- func (a *AWS) DescribeBalancedInstanceHealth(balancerName string) ([]*InstanceHealth, error)
- func (a *AWS) DetachBalancersFromScalingGroup(balancerNames []string, groupName string) error
- func (a *AWS) GetAppNameFromScalingGroup(scalingGroup string) (string, error)
- func (a *AWS) GetBalancersForApp(appName string) ([]string, error)
- func (a *AWS) GetBalancersFromScalingGroup(scalingGroup string) ([]*Balancer, error)
- func (a *AWS) GetInstanceIdsFromScalingGroup(scalingGroup string) ([]*string, error)
- func (a *AWS) GetPrivateIpsForInstanceIds(instanceIds []*string) (map[string]string, error)
- func (a *AWS) GetScalingGroupForSlotId(environment, appName, slotId string) (string, error)
- func (a *AWS) User() (*User, error)
- type Balancer
- type InstanceHealth
- type MockResponse
- type MockRoute
- type MockedAWSInput
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegion = "us-east-1"
Functions ¶
func CredentialsProvider ¶
func CredentialsProvider(awsCredentialProfile string) *credentials.Credentials
Types ¶
type AWS ¶
type AWS struct { Region *string // contains filtered or unexported fields }
func MockedAWS ¶
func MockedAWS(input *MockedAWSInput) *AWS
func (*AWS) AttachBalancersToScalingGroup ¶
func (*AWS) DescribeBalancedInstanceHealth ¶
func (a *AWS) DescribeBalancedInstanceHealth(balancerName string) ([]*InstanceHealth, error)
func (*AWS) DetachBalancersFromScalingGroup ¶
func (*AWS) GetAppNameFromScalingGroup ¶
func (*AWS) GetBalancersFromScalingGroup ¶
func (*AWS) GetInstanceIdsFromScalingGroup ¶
func (*AWS) GetPrivateIpsForInstanceIds ¶
func (*AWS) GetScalingGroupForSlotId ¶
type InstanceHealth ¶
type MockRoute ¶
type MockRoute struct { ExpectedURI string ExpectedMethod string ExpectedRequestBody string Response MockResponse }
type MockedAWSInput ¶
Click to show internal directories.
Click to hide internal directories.