Documentation ¶
Index ¶
- Variables
- func MockCSOutput(stackId string) *cloudformation.CreateStackOutput
- func MockDeleteStackOutput(stackId string) *cloudformation.DeleteStackOutput
- func MockDeregisterTargetsOutput() *elbv2.DeregisterTargetsOutput
- func MockDescribeAutoScalingGroupOutput(asgs ...map[string]ASGtags) *autoscaling.DescribeAutoScalingGroupsOutput
- func MockDescribeInstancesOutput(mockedInstances ...TestInstance) *ec2.DescribeInstancesOutput
- func MockDescribeRouteTableOutput(mockedRouteTables ...TestRouteTable) *ec2.DescribeRouteTablesOutput
- func MockDescribeSecurityGroupsOutput(sgs map[string]string) *ec2.DescribeSecurityGroupsOutput
- func MockDescribeSubnetsOutput(mockedSubnets ...TestSubnet) *ec2.DescribeSubnetsOutput
- func MockRTOutput() *elbv2.RegisterTargetsOutput
- func MockRollbackStackOutput(stackId string) *cloudformation.RollbackStackOutput
- func MockUSOutput(stackId string) *cloudformation.UpdateStackOutput
- type ACMClient
- func (m *ACMClient) GetCertificate(input *acm.GetCertificateInput) (*acm.GetCertificateOutput, error)
- func (m *ACMClient) ListCertificatesPages(input *acm.ListCertificatesInput, ...) error
- func (m *ACMClient) ListTagsForCertificate(in *acm.ListTagsForCertificateInput) (*acm.ListTagsForCertificateOutput, error)
- func (m *ACMClient) WithListCertificatesPages(f func(input *acm.ListCertificatesInput, ...) error) *ACMClient
- type APIResponse
- type ASGClient
- func (m *ASGClient) AttachLoadBalancerTargetGroups(input *autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error)
- func (m *ASGClient) DescribeAutoScalingGroups(*autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error)
- func (m *ASGClient) DescribeAutoScalingGroupsPages(_ *autoscaling.DescribeAutoScalingGroupsInput, ...) error
- func (m *ASGClient) DescribeLoadBalancerTargetGroups(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error)
- func (m *ASGClient) DetachLoadBalancerTargetGroups(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error)
- type ASGInputs
- type ASGOutputs
- type ASGtags
- type CFClient
- func (m *CFClient) CleanCreationHistory()
- func (m *CFClient) CreateStack(params *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
- func (m *CFClient) DeleteStack(params *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
- func (m *CFClient) DescribeStacks(in *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
- func (m *CFClient) DescribeStacksPages(in *cloudformation.DescribeStacksInput, ...) (err error)
- func (m *CFClient) GetParamCreationHistory() [][]*cloudformation.Parameter
- func (m *CFClient) GetTagCreationHistory() [][]*cloudformation.Tag
- func (m *CFClient) GetTemplateCreationHistory() []string
- func (m *CFClient) RollbackStack(params *cloudformation.RollbackStackInput) (*cloudformation.RollbackStackOutput, error)
- func (m *CFClient) UpdateStack(params *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
- func (m *CFClient) UpdateTerminationProtection(params *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)
- type CFOutputs
- type EC2Client
- func (m *EC2Client) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
- func (m *EC2Client) DescribeInstancesPages(params *ec2.DescribeInstancesInput, ...) error
- func (m *EC2Client) DescribeRouteTables(*ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error)
- func (m *EC2Client) DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
- func (m *EC2Client) DescribeSubnets(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
- type EC2Outputs
- type ELBv2Client
- func (m *ELBv2Client) DeregisterTargets(in *elbv2.DeregisterTargetsInput) (*elbv2.DeregisterTargetsOutput, error)
- func (m *ELBv2Client) DescribeTags(tags *elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error)
- func (m *ELBv2Client) DescribeTargetGroupsPagesWithContext(ctx aws.Context, in *elbv2.DescribeTargetGroupsInput, ...) error
- func (m *ELBv2Client) DescribeTargetHealth(*elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error)
- func (m *ELBv2Client) RegisterTargets(in *elbv2.RegisterTargetsInput) (*elbv2.RegisterTargetsOutput, error)
- type ELBv2Outputs
- type IAMClient
- func (m IAMClient) GetServerCertificate(*iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error)
- func (m IAMClient) ListServerCertificateTags(in *iam.ListServerCertificateTagsInput) (*iam.ListServerCertificateTagsOutput, error)
- func (m IAMClient) ListServerCertificates(*iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error)
- func (m IAMClient) ListServerCertificatesPages(input *iam.ListServerCertificatesInput, ...) error
- type Tags
- type TestInstance
- type TestRouteTable
- type TestSubnet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDummy = errors.New("fail")
Functions ¶
func MockCSOutput ¶
func MockCSOutput(stackId string) *cloudformation.CreateStackOutput
func MockDeleteStackOutput ¶
func MockDeleteStackOutput(stackId string) *cloudformation.DeleteStackOutput
func MockDeregisterTargetsOutput ¶
func MockDeregisterTargetsOutput() *elbv2.DeregisterTargetsOutput
func MockDescribeAutoScalingGroupOutput ¶
func MockDescribeAutoScalingGroupOutput(asgs ...map[string]ASGtags) *autoscaling.DescribeAutoScalingGroupsOutput
func MockDescribeInstancesOutput ¶
func MockDescribeInstancesOutput(mockedInstances ...TestInstance) *ec2.DescribeInstancesOutput
func MockDescribeRouteTableOutput ¶
func MockDescribeRouteTableOutput(mockedRouteTables ...TestRouteTable) *ec2.DescribeRouteTablesOutput
func MockDescribeSecurityGroupsOutput ¶
func MockDescribeSecurityGroupsOutput(sgs map[string]string) *ec2.DescribeSecurityGroupsOutput
func MockDescribeSubnetsOutput ¶
func MockDescribeSubnetsOutput(mockedSubnets ...TestSubnet) *ec2.DescribeSubnetsOutput
func MockRTOutput ¶
func MockRTOutput() *elbv2.RegisterTargetsOutput
func MockRollbackStackOutput ¶ added in v0.14.39
func MockRollbackStackOutput(stackId string) *cloudformation.RollbackStackOutput
func MockUSOutput ¶
func MockUSOutput(stackId string) *cloudformation.UpdateStackOutput
Types ¶
type ACMClient ¶ added in v0.14.24
func NewACMClient ¶ added in v0.14.24
func NewACMClient( output acm.ListCertificatesOutput, cert map[string]*acm.GetCertificateOutput, tags map[string]*acm.ListTagsForCertificateOutput, ) *ACMClient
func (*ACMClient) GetCertificate ¶ added in v0.14.24
func (m *ACMClient) GetCertificate(input *acm.GetCertificateInput) (*acm.GetCertificateOutput, error)
func (*ACMClient) ListCertificatesPages ¶ added in v0.14.24
func (m *ACMClient) ListCertificatesPages(input *acm.ListCertificatesInput, fn func(p *acm.ListCertificatesOutput, lastPage bool) (shouldContinue bool)) error
func (*ACMClient) ListTagsForCertificate ¶ added in v0.14.32
func (m *ACMClient) ListTagsForCertificate(in *acm.ListTagsForCertificateInput) (*acm.ListTagsForCertificateOutput, error)
func (*ACMClient) WithListCertificatesPages ¶ added in v0.15.28
func (m *ACMClient) WithListCertificatesPages(f func(input *acm.ListCertificatesInput, fn func(p *acm.ListCertificatesOutput, lastPage bool) (shouldContinue bool)) error) *ACMClient
type APIResponse ¶
type APIResponse struct {
// contains filtered or unexported fields
}
func MockDescribeInstancesPagesOutput ¶
func MockDescribeInstancesPagesOutput(e error, mockedInstances ...TestInstance) []*APIResponse
func R ¶
func R(r interface{}, e error) *APIResponse
type ASGClient ¶
type ASGClient struct { autoscalingiface.AutoScalingAPI Outputs ASGOutputs Inputs ASGInputs T *testing.T }
func (*ASGClient) AttachLoadBalancerTargetGroups ¶
func (m *ASGClient) AttachLoadBalancerTargetGroups(input *autoscaling.AttachLoadBalancerTargetGroupsInput) (*autoscaling.AttachLoadBalancerTargetGroupsOutput, error)
func (*ASGClient) DescribeAutoScalingGroups ¶
func (m *ASGClient) DescribeAutoScalingGroups(*autoscaling.DescribeAutoScalingGroupsInput) (*autoscaling.DescribeAutoScalingGroupsOutput, error)
func (*ASGClient) DescribeAutoScalingGroupsPages ¶
func (m *ASGClient) DescribeAutoScalingGroupsPages(_ *autoscaling.DescribeAutoScalingGroupsInput, fn func(*autoscaling.DescribeAutoScalingGroupsOutput, bool) bool) error
func (*ASGClient) DescribeLoadBalancerTargetGroups ¶
func (m *ASGClient) DescribeLoadBalancerTargetGroups(*autoscaling.DescribeLoadBalancerTargetGroupsInput) (*autoscaling.DescribeLoadBalancerTargetGroupsOutput, error)
func (*ASGClient) DetachLoadBalancerTargetGroups ¶
func (m *ASGClient) DetachLoadBalancerTargetGroups(*autoscaling.DetachLoadBalancerTargetGroupsInput) (*autoscaling.DetachLoadBalancerTargetGroupsOutput, error)
type ASGInputs ¶
type ASGInputs struct {
AttachLoadBalancerTargetGroups func(*testing.T, *autoscaling.AttachLoadBalancerTargetGroupsInput)
}
type ASGOutputs ¶
type ASGOutputs struct { DescribeAutoScalingGroups *APIResponse AttachLoadBalancerTargetGroups *APIResponse DetachLoadBalancerTargetGroups *APIResponse DescribeLoadBalancerTargetGroups *APIResponse }
type CFClient ¶
type CFClient struct { cloudformationiface.CloudFormationAPI Outputs CFOutputs // contains filtered or unexported fields }
func (*CFClient) CleanCreationHistory ¶ added in v0.14.31
func (m *CFClient) CleanCreationHistory()
func (*CFClient) CreateStack ¶
func (m *CFClient) CreateStack(params *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error)
func (*CFClient) DeleteStack ¶
func (m *CFClient) DeleteStack(params *cloudformation.DeleteStackInput) (*cloudformation.DeleteStackOutput, error)
func (*CFClient) DescribeStacks ¶
func (m *CFClient) DescribeStacks(in *cloudformation.DescribeStacksInput) (*cloudformation.DescribeStacksOutput, error)
func (*CFClient) DescribeStacksPages ¶
func (m *CFClient) DescribeStacksPages(in *cloudformation.DescribeStacksInput, fn func(*cloudformation.DescribeStacksOutput, bool) bool) (err error)
func (*CFClient) GetParamCreationHistory ¶ added in v0.14.31
func (m *CFClient) GetParamCreationHistory() [][]*cloudformation.Parameter
func (*CFClient) GetTagCreationHistory ¶ added in v0.14.31
func (m *CFClient) GetTagCreationHistory() [][]*cloudformation.Tag
func (*CFClient) GetTemplateCreationHistory ¶ added in v0.14.31
func (*CFClient) RollbackStack ¶ added in v0.14.39
func (m *CFClient) RollbackStack(params *cloudformation.RollbackStackInput) (*cloudformation.RollbackStackOutput, error)
func (*CFClient) UpdateStack ¶
func (m *CFClient) UpdateStack(params *cloudformation.UpdateStackInput) (*cloudformation.UpdateStackOutput, error)
func (*CFClient) UpdateTerminationProtection ¶
func (m *CFClient) UpdateTerminationProtection(params *cloudformation.UpdateTerminationProtectionInput) (*cloudformation.UpdateTerminationProtectionOutput, error)
type CFOutputs ¶
type CFOutputs struct { DescribeStackPages *APIResponse DescribeStacks *APIResponse CreateStack *APIResponse UpdateStack *APIResponse DeleteStack *APIResponse RollbackStack *APIResponse UpdateTerminationProtection *APIResponse }
type EC2Client ¶
type EC2Client struct { ec2iface.EC2API Outputs EC2Outputs }
func (*EC2Client) DescribeInstances ¶
func (m *EC2Client) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
func (*EC2Client) DescribeInstancesPages ¶
func (m *EC2Client) DescribeInstancesPages(params *ec2.DescribeInstancesInput, f func(*ec2.DescribeInstancesOutput, bool) bool) error
func (*EC2Client) DescribeRouteTables ¶
func (m *EC2Client) DescribeRouteTables(*ec2.DescribeRouteTablesInput) (*ec2.DescribeRouteTablesOutput, error)
func (*EC2Client) DescribeSecurityGroups ¶
func (m *EC2Client) DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error)
func (*EC2Client) DescribeSubnets ¶
func (m *EC2Client) DescribeSubnets(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
type EC2Outputs ¶
type EC2Outputs struct { DescribeSecurityGroups *APIResponse DescribeInstances *APIResponse DescribeInstancesPages []*APIResponse DescribeSubnets *APIResponse DescribeRouteTables *APIResponse }
type ELBv2Client ¶
type ELBv2Client struct { elbv2iface.ELBV2API Outputs ELBv2Outputs Rtinputs []*elbv2.RegisterTargetsInput Dtinputs []*elbv2.DeregisterTargetsInput }
func (*ELBv2Client) DeregisterTargets ¶
func (m *ELBv2Client) DeregisterTargets(in *elbv2.DeregisterTargetsInput) (*elbv2.DeregisterTargetsOutput, error)
func (*ELBv2Client) DescribeTags ¶
func (m *ELBv2Client) DescribeTags(tags *elbv2.DescribeTagsInput) (*elbv2.DescribeTagsOutput, error)
func (*ELBv2Client) DescribeTargetGroupsPagesWithContext ¶
func (m *ELBv2Client) DescribeTargetGroupsPagesWithContext(ctx aws.Context, in *elbv2.DescribeTargetGroupsInput, f func(resp *elbv2.DescribeTargetGroupsOutput, lastPage bool) bool, opt ...request.Option) error
func (*ELBv2Client) DescribeTargetHealth ¶
func (m *ELBv2Client) DescribeTargetHealth(*elbv2.DescribeTargetHealthInput) (*elbv2.DescribeTargetHealthOutput, error)
func (*ELBv2Client) RegisterTargets ¶
func (m *ELBv2Client) RegisterTargets(in *elbv2.RegisterTargetsInput) (*elbv2.RegisterTargetsOutput, error)
type ELBv2Outputs ¶
type ELBv2Outputs struct { RegisterTargets *APIResponse DeregisterTargets *APIResponse DescribeTags *APIResponse DescribeTargetGroups *APIResponse DescribeTargetHealth *APIResponse }
type IAMClient ¶ added in v0.14.24
func NewIAMClient ¶ added in v0.14.24
func NewIAMClient(list iam.ListServerCertificatesOutput, cert iam.GetServerCertificateOutput) IAMClient
func NewIAMClientWithTag ¶ added in v0.14.32
func NewIAMClientWithTag( list iam.ListServerCertificatesOutput, cert iam.GetServerCertificateOutput, tags map[string]*iam.ListServerCertificateTagsOutput, ) IAMClient
func (IAMClient) GetServerCertificate ¶ added in v0.14.24
func (m IAMClient) GetServerCertificate(*iam.GetServerCertificateInput) (*iam.GetServerCertificateOutput, error)
func (IAMClient) ListServerCertificateTags ¶ added in v0.14.32
func (m IAMClient) ListServerCertificateTags( in *iam.ListServerCertificateTagsInput, ) (*iam.ListServerCertificateTagsOutput, error)
func (IAMClient) ListServerCertificates ¶ added in v0.14.24
func (m IAMClient) ListServerCertificates(*iam.ListServerCertificatesInput) (*iam.ListServerCertificatesOutput, error)
func (IAMClient) ListServerCertificatesPages ¶ added in v0.14.24
func (m IAMClient) ListServerCertificatesPages(input *iam.ListServerCertificatesInput, fn func(*iam.ListServerCertificatesOutput, bool) bool) error
type TestInstance ¶
type TestRouteTable ¶
Click to show internal directories.
Click to hide internal directories.