Documentation ¶
Index ¶
- func AWSELBNotFoundError() error
- func AWSProfileNotFoundError() error
- func AWSTargetGroupNotFoundError() error
- func MakeMockASG(name string, projetName string, configName string, serviceName string, ...) *autoscaling.Group
- func MakeMockASGInstances(healthy int, unhealthy int, terming int) []*autoscaling.Instance
- func MakeMockSecurityGroup(projectName string, configName string, serviceName string) *ec2.SecurityGroup
- type ALBClient
- func (m *ALBClient) AddTargetGroup(name string, projectName string, configName string, serviceName string)
- func (m *ALBClient) DescribeTags(in *elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error)
- func (m *ALBClient) DescribeTargetGroups(in *elbv2.DescribeTargetGroupsInput) (*elbv2.DescribeTargetGroupsOutput, error)
- func (m *ALBClient) DescribeTargetHealth(in *elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error)
- type ASGClient
- func (m *ASGClient) AddASG(asg *autoscaling.Group)
- func (m *ASGClient) AddPreviousRuntimeResources(projectName string, configName string, serviceName string, releaseID string) string
- func (m *ASGClient) CreateAutoScalingGroup(input *autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error)
- func (m *ASGClient) CreateLaunchConfiguration(input *autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error)
- func (m *ASGClient) DeleteAutoScalingGroup(input *autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error)
- func (m *ASGClient) DeleteLaunchConfiguration(input *autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error)
- func (m *ASGClient) DescribeAutoScalingGroupsPages(input *autoscaling.DescribeAutoScalingGroupsInput, ...) error
- func (m *ASGClient) DescribeLaunchConfigurations(in *autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error)
- func (m *ASGClient) DescribePolicies(in *autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error)
- func (m *ASGClient) PutScalingPolicy(input *autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error)
- type CWClient
- type DescribeAutoScalingGroupResponse
- type DescribeImagesResponse
- type DescribeInstanceHealthResponse
- type DescribeLaunchConfigurationsResponse
- type DescribeLoadBalancersResponse
- type DescribePoliciesResponse
- type DescribeSecurityGroupsResponse
- type DescribeSubnetsResponse
- type DescribeTagsResponse
- type DescribeTargetGroupsResponse
- type DescribeTargetHealthResponse
- type DescribeV2TagsResponse
- type EC2Client
- func (m *EC2Client) AddImage(nameTag string, id string)
- func (m *EC2Client) AddSecurityGroup(name string, projectName string, configName string, serviceName string, ...)
- func (m *EC2Client) AddSubnet(nameTag string, id string)
- func (m *EC2Client) DescribeImages(in *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)
- func (m *EC2Client) DescribeSecurityGroups(in *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
- func (m *EC2Client) DescribeSubnets(in *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
- type ELBClient
- func (m *ELBClient) AddELB(name string, projectName string, configName string, serviceName string)
- func (m *ELBClient) DescribeInstanceHealth(in *elb.DescribeInstanceHealthInput) (*elb.DescribeInstanceHealthOutput, error)
- func (m *ELBClient) DescribeLoadBalancers(in *elb.DescribeLoadBalancersInput) (*elb.DescribeLoadBalancersOutput, error)
- func (m *ELBClient) DescribeTags(in *elb.DescribeTagsInput) (*elb.DescribeTagsOutput, error)
- type GetInstanceProfileResponse
- type GetRoleResponse
- type IAMClient
- func (m *IAMClient) AddGetInstanceProfile(profileName string, path string)
- func (m *IAMClient) AddGetRole(roleName string)
- func (m *IAMClient) GetInstanceProfile(in *iam.GetInstanceProfileInput) (*iam.GetInstanceProfileOutput, error)
- func (m *IAMClient) GetRole(in *iam.GetRoleInput) (*iam.GetRoleOutput, error)
- type MockClients
- func (a *MockClients) ALBClient(*string, *string, *string) aws.ALBAPI
- func (a *MockClients) ASGClient(*string, *string, *string) aws.ASGAPI
- func (a *MockClients) CWClient(*string, *string, *string) aws.CWAPI
- func (a *MockClients) EC2Client(*string, *string, *string) aws.EC2API
- func (a *MockClients) ELBClient(*string, *string, *string) aws.ELBAPI
- func (a *MockClients) IAMClient(*string, *string, *string) aws.IAMAPI
- func (a *MockClients) S3Client(*string, *string, *string) aws.S3API
- func (a *MockClients) SFNClient(*string, *string, *string) aws.SFNAPI
- func (a *MockClients) SNSClient(*string, *string, *string) aws.SNSAPI
- type SNSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AWSTargetGroupNotFoundError ¶
func AWSTargetGroupNotFoundError() error
AWSTargetGroupNotFoundError return
func MakeMockASG ¶
func MakeMockASG(name string, projetName string, configName string, serviceName string, releaseID string) *autoscaling.Group
MakeMockASG returns
func MakeMockASGInstances ¶
func MakeMockASGInstances(healthy int, unhealthy int, terming int) []*autoscaling.Instance
func MakeMockSecurityGroup ¶
func MakeMockSecurityGroup(projectName string, configName string, serviceName string) *ec2.SecurityGroup
MakeMockSecurityGroup returns
Types ¶
type ALBClient ¶
type ALBClient struct { aws.ALBAPI DescribeTargetGroupsResp map[string]*DescribeTargetGroupsResponse DescribeTagsResp map[string]*DescribeV2TagsResponse DescribeTargetHealthResp map[string]*DescribeTargetHealthResponse }
ALBClient return
func (*ALBClient) AddTargetGroup ¶
func (m *ALBClient) AddTargetGroup(name string, projectName string, configName string, serviceName string)
AddTargetGroup return
func (*ALBClient) DescribeTags ¶
func (m *ALBClient) DescribeTags(in *elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error)
DescribeTags return
func (*ALBClient) DescribeTargetGroups ¶
func (m *ALBClient) DescribeTargetGroups(in *elbv2.DescribeTargetGroupsInput) (*elbv2.DescribeTargetGroupsOutput, error)
DescribeTargetGroups return
func (*ALBClient) DescribeTargetHealth ¶
func (m *ALBClient) DescribeTargetHealth(in *elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error)
DescribeTargetHealth return
type ASGClient ¶
type ASGClient struct { aws.ASGAPI DescribeAutoScalingGroupsPageResp []DescribeAutoScalingGroupResponse DescribeLaunchConfigurationsResp map[string]*DescribeLaunchConfigurationsResponse DescribePoliciesResp map[string]*DescribePoliciesResponse }
ASGClient returns
func (*ASGClient) AddPreviousRuntimeResources ¶
func (m *ASGClient) AddPreviousRuntimeResources(projectName string, configName string, serviceName string, releaseID string) string
AddPreviousRuntimeResources returns
func (*ASGClient) CreateAutoScalingGroup ¶
func (m *ASGClient) CreateAutoScalingGroup(input *autoscaling.CreateAutoScalingGroupInput) (*autoscaling.CreateAutoScalingGroupOutput, error)
CreateAutoScalingGroup returns
func (*ASGClient) CreateLaunchConfiguration ¶
func (m *ASGClient) CreateLaunchConfiguration(input *autoscaling.CreateLaunchConfigurationInput) (*autoscaling.CreateLaunchConfigurationOutput, error)
CreateLaunchConfiguration returns
func (*ASGClient) DeleteAutoScalingGroup ¶
func (m *ASGClient) DeleteAutoScalingGroup(input *autoscaling.DeleteAutoScalingGroupInput) (*autoscaling.DeleteAutoScalingGroupOutput, error)
DeleteAutoScalingGroup returns
func (*ASGClient) DeleteLaunchConfiguration ¶
func (m *ASGClient) DeleteLaunchConfiguration(input *autoscaling.DeleteLaunchConfigurationInput) (*autoscaling.DeleteLaunchConfigurationOutput, error)
DeleteLaunchConfiguration returns
func (*ASGClient) DescribeAutoScalingGroupsPages ¶
func (m *ASGClient) DescribeAutoScalingGroupsPages(input *autoscaling.DescribeAutoScalingGroupsInput, fn func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error
DescribeAutoScalingGroupsPages returns
func (*ASGClient) DescribeLaunchConfigurations ¶
func (m *ASGClient) DescribeLaunchConfigurations(in *autoscaling.DescribeLaunchConfigurationsInput) (*autoscaling.DescribeLaunchConfigurationsOutput, error)
DescribeLaunchConfigurations returns
func (*ASGClient) DescribePolicies ¶
func (m *ASGClient) DescribePolicies(in *autoscaling.DescribePoliciesInput) (*autoscaling.DescribePoliciesOutput, error)
DescribePolicies returns
func (*ASGClient) PutScalingPolicy ¶
func (m *ASGClient) PutScalingPolicy(input *autoscaling.PutScalingPolicyInput) (*autoscaling.PutScalingPolicyOutput, error)
PutScalingPolicy returns
type CWClient ¶
CWClient struct
func (*CWClient) DeleteAlarms ¶
func (m *CWClient) DeleteAlarms(input *cloudwatch.DeleteAlarmsInput) (*cloudwatch.DeleteAlarmsOutput, error)
DeleteAlarms returns
func (*CWClient) PutMetricAlarm ¶
func (m *CWClient) PutMetricAlarm(input *cloudwatch.PutMetricAlarmInput) (*cloudwatch.PutMetricAlarmOutput, error)
PutMetricAlarm returns
type DescribeAutoScalingGroupResponse ¶
type DescribeAutoScalingGroupResponse struct { Resp *autoscaling.DescribeAutoScalingGroupsOutput Error error }
DescribeAutoScalingGroupResponse returns
type DescribeImagesResponse ¶
type DescribeImagesResponse struct { Resp *ec2.DescribeImagesOutput Error error }
DescribeImagesResponse returns
type DescribeInstanceHealthResponse ¶
type DescribeInstanceHealthResponse struct { Resp *elb.DescribeInstanceHealthOutput Error error }
DescribeInstanceHealthResponse returns
type DescribeLaunchConfigurationsResponse ¶
type DescribeLaunchConfigurationsResponse struct { Resp *autoscaling.DescribeLaunchConfigurationsOutput Error error }
DescribeLaunchConfigurationsResponse returns
type DescribeLoadBalancersResponse ¶
type DescribeLoadBalancersResponse struct { Resp *elb.DescribeLoadBalancersOutput Error error }
DescribeLoadBalancersResponse returns
type DescribePoliciesResponse ¶
type DescribePoliciesResponse struct { Resp *autoscaling.DescribePoliciesOutput Error error }
DescribePoliciesResponse returns
type DescribeSecurityGroupsResponse ¶
type DescribeSecurityGroupsResponse struct { Resp *ec2.DescribeSecurityGroupsOutput Error error }
DescribeSecurityGroupsResponse returns
type DescribeSubnetsResponse ¶
type DescribeSubnetsResponse struct { Resp *ec2.DescribeSubnetsOutput Error error }
DescribeSubnetsResponse returns
type DescribeTagsResponse ¶
type DescribeTagsResponse struct { Resp *elb.DescribeTagsOutput Error error }
DescribeTagsResponse returns
type DescribeTargetGroupsResponse ¶
type DescribeTargetGroupsResponse struct { Resp *elbv2.DescribeTargetGroupsOutput Error error }
DescribeTargetGroupsResponse return
type DescribeTargetHealthResponse ¶
type DescribeTargetHealthResponse struct { Resp *elbv2.DescribeTargetHealthOutput Error error }
DescribeTargetHealthResponse return
type DescribeV2TagsResponse ¶
type DescribeV2TagsResponse struct { Resp *elbv2.DescribeTagsOutput Error error }
DescribeV2TagsResponse return
type EC2Client ¶
type EC2Client struct { aws.EC2API DescribeSecurityGroupsResp map[string]*DescribeSecurityGroupsResponse DescribeSubnetsResp *DescribeSubnetsResponse DescribeImagesResp *DescribeImagesResponse }
EC2Client returns
func (*EC2Client) AddSecurityGroup ¶
func (m *EC2Client) AddSecurityGroup(name string, projectName string, configName string, serviceName string, err error)
AddSecurityGroup returns
func (*EC2Client) DescribeImages ¶
func (m *EC2Client) DescribeImages(in *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)
DescribeImages returns
func (*EC2Client) DescribeSecurityGroups ¶
func (m *EC2Client) DescribeSecurityGroups(in *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
DescribeSecurityGroups returns
func (*EC2Client) DescribeSubnets ¶
func (m *EC2Client) DescribeSubnets(in *ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
DescribeSubnets returns
type ELBClient ¶
type ELBClient struct { aws.ELBAPI DescribeLoadBalancersResp map[string]*DescribeLoadBalancersResponse DescribeTagsResp map[string]*DescribeTagsResponse DescribeInstanceHealthResp map[string]*DescribeInstanceHealthResponse }
ELBClient returns
func (*ELBClient) DescribeInstanceHealth ¶
func (m *ELBClient) DescribeInstanceHealth(in *elb.DescribeInstanceHealthInput) (*elb.DescribeInstanceHealthOutput, error)
DescribeInstanceHealth returns
func (*ELBClient) DescribeLoadBalancers ¶
func (m *ELBClient) DescribeLoadBalancers(in *elb.DescribeLoadBalancersInput) (*elb.DescribeLoadBalancersOutput, error)
DescribeLoadBalancers returns
func (*ELBClient) DescribeTags ¶
func (m *ELBClient) DescribeTags(in *elb.DescribeTagsInput) (*elb.DescribeTagsOutput, error)
DescribeTags returns
type GetInstanceProfileResponse ¶
type GetInstanceProfileResponse struct { Resp *iam.GetInstanceProfileOutput Error error }
GetInstanceProfileResponse returns
type GetRoleResponse ¶
type GetRoleResponse struct { Resp *iam.GetRoleOutput Error error }
GetRoleResponse returns
type IAMClient ¶
type IAMClient struct { aws.IAMAPI GetInstanceProfileResp map[string]*GetInstanceProfileResponse GetRoleResp map[string]*GetRoleResponse }
IAMClient returns
func (*IAMClient) AddGetInstanceProfile ¶
AddGetInstanceProfile returns
func (*IAMClient) GetInstanceProfile ¶
func (m *IAMClient) GetInstanceProfile(in *iam.GetInstanceProfileInput) (*iam.GetInstanceProfileOutput, error)
GetInstanceProfile returns
func (*IAMClient) GetRole ¶
func (m *IAMClient) GetRole(in *iam.GetRoleInput) (*iam.GetRoleOutput, error)
GetRole returns
type MockClients ¶
type MockClients struct { S3 *mocks.MockS3Client ASG *ASGClient ELB *ELBClient EC2 *EC2Client ALB *ALBClient CW *CWClient IAM *IAMClient SNS *SNSClient SFN *mocks.MockSFNClient }
MockClients struct
type SNSClient ¶
SNSClient returns
func (*SNSClient) GetTopicAttributes ¶
func (m *SNSClient) GetTopicAttributes(in *sns.GetTopicAttributesInput) (*sns.GetTopicAttributesOutput, error)
GetTopicAttributes returns