Documentation ¶
Index ¶
- func SortTags(tags []ec2types.Tag)
- type MockEC2
- func (m *MockEC2) AddRouteTable(rt *ec2types.RouteTable)
- func (m *MockEC2) All() map[string]interface{}
- func (m *MockEC2) AllocateAddress(ctx context.Context, request *ec2.AllocateAddressInput, ...) (*ec2.AllocateAddressOutput, error)
- func (m *MockEC2) AllocateAddressWithId(request *ec2.AllocateAddressInput, id string) (*ec2.AllocateAddressOutput, error)
- func (m *MockEC2) AssociateDhcpOptions(ctx context.Context, request *ec2.AssociateDhcpOptionsInput, ...) (*ec2.AssociateDhcpOptionsOutput, error)
- func (m *MockEC2) AssociateRouteTable(ctx context.Context, request *ec2.AssociateRouteTableInput, ...) (*ec2.AssociateRouteTableOutput, error)
- func (m *MockEC2) AssociateVpcCidrBlock(ctx context.Context, request *ec2.AssociateVpcCidrBlockInput, ...) (*ec2.AssociateVpcCidrBlockOutput, error)
- func (m *MockEC2) AttachInternetGateway(ctx context.Context, request *ec2.AttachInternetGatewayInput, ...) (*ec2.AttachInternetGatewayOutput, error)
- func (m *MockEC2) AuthorizeSecurityGroupEgress(ctx context.Context, request *ec2.AuthorizeSecurityGroupEgressInput, ...) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
- func (m *MockEC2) AuthorizeSecurityGroupIngress(ctx context.Context, request *ec2.AuthorizeSecurityGroupIngressInput, ...) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
- func (m *MockEC2) CreateDhcpOptions(ctx context.Context, request *ec2.CreateDhcpOptionsInput, ...) (*ec2.CreateDhcpOptionsOutput, error)
- func (m *MockEC2) CreateEgressOnlyInternetGateway(ctx context.Context, request *ec2.CreateEgressOnlyInternetGatewayInput, ...) (*ec2.CreateEgressOnlyInternetGatewayOutput, error)
- func (m *MockEC2) CreateInternetGateway(ctx context.Context, request *ec2.CreateInternetGatewayInput, ...) (*ec2.CreateInternetGatewayOutput, error)
- func (m *MockEC2) CreateLaunchTemplate(ctx context.Context, request *ec2.CreateLaunchTemplateInput, ...) (*ec2.CreateLaunchTemplateOutput, error)
- func (m *MockEC2) CreateLaunchTemplateVersion(ctx context.Context, request *ec2.CreateLaunchTemplateVersionInput, ...) (*ec2.CreateLaunchTemplateVersionOutput, error)
- func (m *MockEC2) CreateNatGateway(ctx context.Context, request *ec2.CreateNatGatewayInput, ...) (*ec2.CreateNatGatewayOutput, error)
- func (m *MockEC2) CreateNatGatewayWithId(request *ec2.CreateNatGatewayInput, id string) (*ec2.CreateNatGatewayOutput, error)
- func (m *MockEC2) CreateRoute(ctx context.Context, request *ec2.CreateRouteInput, ...) (*ec2.CreateRouteOutput, error)
- func (m *MockEC2) CreateRouteTable(ctx context.Context, request *ec2.CreateRouteTableInput, ...) (*ec2.CreateRouteTableOutput, error)
- func (m *MockEC2) CreateRouteTableWithId(request *ec2.CreateRouteTableInput, id string) (*ec2.CreateRouteTableOutput, error)
- func (m *MockEC2) CreateSecurityGroup(ctx context.Context, request *ec2.CreateSecurityGroupInput, ...) (*ec2.CreateSecurityGroupOutput, error)
- func (m *MockEC2) CreateSubnet(ctx context.Context, request *ec2.CreateSubnetInput, ...) (*ec2.CreateSubnetOutput, error)
- func (m *MockEC2) CreateSubnetWithId(request *ec2.CreateSubnetInput, id string) (*ec2.CreateSubnetOutput, error)
- func (m *MockEC2) CreateTags(ctx context.Context, request *ec2.CreateTagsInput, ...) (*ec2.CreateTagsOutput, error)
- func (m *MockEC2) CreateVolume(ctx context.Context, request *ec2.CreateVolumeInput, ...) (*ec2.CreateVolumeOutput, error)
- func (m *MockEC2) CreateVpc(ctx context.Context, request *ec2.CreateVpcInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcOutput, error)
- func (m *MockEC2) CreateVpcWithId(request *ec2.CreateVpcInput, id string) (*ec2.CreateVpcOutput, error)
- func (m *MockEC2) DeleteDhcpOptions(ctx context.Context, request *ec2.DeleteDhcpOptionsInput, ...) (*ec2.DeleteDhcpOptionsOutput, error)
- func (m *MockEC2) DeleteEgressOnlyInternetGateway(ctx context.Context, request *ec2.DeleteEgressOnlyInternetGatewayInput, ...) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error)
- func (m *MockEC2) DeleteInternetGateway(ctx context.Context, request *ec2.DeleteInternetGatewayInput, ...) (*ec2.DeleteInternetGatewayOutput, error)
- func (m *MockEC2) DeleteKeyPair(ctx context.Context, request *ec2.DeleteKeyPairInput, ...) (*ec2.DeleteKeyPairOutput, error)
- func (m *MockEC2) DeleteLaunchTemplate(ctx context.Context, request *ec2.DeleteLaunchTemplateInput, ...) (*ec2.DeleteLaunchTemplateOutput, error)
- func (m *MockEC2) DeleteNatGateway(ctx context.Context, request *ec2.DeleteNatGatewayInput, ...) (*ec2.DeleteNatGatewayOutput, error)
- func (m *MockEC2) DeleteRouteTable(ctx context.Context, request *ec2.DeleteRouteTableInput, ...) (*ec2.DeleteRouteTableOutput, error)
- func (m *MockEC2) DeleteSecurityGroup(ctx context.Context, request *ec2.DeleteSecurityGroupInput, ...) (*ec2.DeleteSecurityGroupOutput, error)
- func (m *MockEC2) DeleteSubnet(ctx context.Context, request *ec2.DeleteSubnetInput, ...) (*ec2.DeleteSubnetOutput, error)
- func (m *MockEC2) DeleteVolume(ctx context.Context, request *ec2.DeleteVolumeInput, ...) (*ec2.DeleteVolumeOutput, error)
- func (m *MockEC2) DeleteVpc(ctx context.Context, request *ec2.DeleteVpcInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcOutput, error)
- func (m *MockEC2) DescribeAddresses(ctx context.Context, request *ec2.DescribeAddressesInput, ...) (*ec2.DescribeAddressesOutput, error)
- func (m *MockEC2) DescribeDhcpOptions(ctx context.Context, request *ec2.DescribeDhcpOptionsInput, ...) (*ec2.DescribeDhcpOptionsOutput, error)
- func (m *MockEC2) DescribeEgressOnlyInternetGateways(ctx context.Context, request *ec2.DescribeEgressOnlyInternetGatewaysInput, ...) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)
- func (m *MockEC2) DescribeImages(ctx context.Context, request *ec2.DescribeImagesInput, ...) (*ec2.DescribeImagesOutput, error)
- func (m *MockEC2) DescribeInstanceTypes(ctx context.Context, request *ec2.DescribeInstanceTypesInput, ...) (*ec2.DescribeInstanceTypesOutput, error)
- func (m *MockEC2) DescribeInstances(ctx context.Context, request *ec2.DescribeInstancesInput, ...) (*ec2.DescribeInstancesOutput, error)
- func (m *MockEC2) DescribeInternetGateways(ctx context.Context, request *ec2.DescribeInternetGatewaysInput, ...) (*ec2.DescribeInternetGatewaysOutput, error)
- func (m *MockEC2) DescribeKeyPairs(ctx context.Context, request *ec2.DescribeKeyPairsInput, ...) (*ec2.DescribeKeyPairsOutput, error)
- func (m *MockEC2) DescribeLaunchTemplateVersions(ctx context.Context, request *ec2.DescribeLaunchTemplateVersionsInput, ...) (*ec2.DescribeLaunchTemplateVersionsOutput, error)
- func (m *MockEC2) DescribeLaunchTemplates(ctx context.Context, request *ec2.DescribeLaunchTemplatesInput, ...) (*ec2.DescribeLaunchTemplatesOutput, error)
- func (m *MockEC2) DescribeNatGateways(ctx context.Context, request *ec2.DescribeNatGatewaysInput, ...) (*ec2.DescribeNatGatewaysOutput, error)
- func (m *MockEC2) DescribeNetworkInterfaces(ctx context.Context, params *ec2.DescribeNetworkInterfacesInput, ...) (*ec2.DescribeNetworkInterfacesOutput, error)
- func (m *MockEC2) DescribeRouteTables(ctx context.Context, request *ec2.DescribeRouteTablesInput, ...) (*ec2.DescribeRouteTablesOutput, error)
- func (m *MockEC2) DescribeSecurityGroupRules(ctx context.Context, request *ec2.DescribeSecurityGroupRulesInput, ...) (*ec2.DescribeSecurityGroupRulesOutput, error)
- func (m *MockEC2) DescribeSecurityGroups(ctx context.Context, request *ec2.DescribeSecurityGroupsInput, ...) (*ec2.DescribeSecurityGroupsOutput, error)
- func (m *MockEC2) DescribeSubnets(ctx context.Context, request *ec2.DescribeSubnetsInput, ...) (*ec2.DescribeSubnetsOutput, error)
- func (m *MockEC2) DescribeTags(ctx context.Context, request *ec2.DescribeTagsInput, ...) (*ec2.DescribeTagsOutput, error)
- func (m *MockEC2) DescribeVolumes(ctx context.Context, request *ec2.DescribeVolumesInput, ...) (*ec2.DescribeVolumesOutput, error)
- func (m *MockEC2) DescribeVpcAttribute(ctx context.Context, request *ec2.DescribeVpcAttributeInput, ...) (*ec2.DescribeVpcAttributeOutput, error)
- func (m *MockEC2) DescribeVpcs(ctx context.Context, request *ec2.DescribeVpcsInput, ...) (*ec2.DescribeVpcsOutput, error)
- func (m *MockEC2) DetachInternetGateway(ctx context.Context, request *ec2.DetachInternetGatewayInput, ...) (*ec2.DetachInternetGatewayOutput, error)
- func (m *MockEC2) DisassociateVpcCidrBlock(ctx context.Context, request *ec2.DisassociateVpcCidrBlockInput, ...) (*ec2.DisassociateVpcCidrBlockOutput, error)
- func (m *MockEC2) EgressOnlyInternetGatewayIds() []string
- func (m *MockEC2) FindEgressOnlyInternetGateway(id string) *ec2types.EgressOnlyInternetGateway
- func (m *MockEC2) FindInternetGateway(id string) *ec2types.InternetGateway
- func (m *MockEC2) FindSubnet(id string) *ec2types.Subnet
- func (m *MockEC2) FindVpc(id string) *ec2types.Vpc
- func (m *MockEC2) GetInstanceTypesFromInstanceRequirements(ctx context.Context, ...) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error)
- func (m *MockEC2) ImportKeyPair(ctx context.Context, request *ec2.ImportKeyPairInput, ...) (*ec2.ImportKeyPairOutput, error)
- func (m *MockEC2) InternetGatewayIds() []string
- func (m *MockEC2) ModifyLaunchTemplate(ctx context.Context, request *ec2.ModifyLaunchTemplateInput, ...) (*ec2.ModifyLaunchTemplateOutput, error)
- func (m *MockEC2) ModifySubnetAttribute(ctx context.Context, request *ec2.ModifySubnetAttributeInput, ...) (*ec2.ModifySubnetAttributeOutput, error)
- func (m *MockEC2) ModifyVpcAttribute(ctx context.Context, request *ec2.ModifyVpcAttributeInput, ...) (*ec2.ModifyVpcAttributeOutput, error)
- func (m *MockEC2) ReleaseAddress(ctx context.Context, request *ec2.ReleaseAddressInput, ...) (*ec2.ReleaseAddressOutput, error)
- func (m *MockEC2) RevokeSecurityGroupEgress(ctx context.Context, request *ec2.RevokeSecurityGroupEgressInput, ...) (*ec2.RevokeSecurityGroupEgressOutput, error)
- func (m *MockEC2) RevokeSecurityGroupIngress(ctx context.Context, request *ec2.RevokeSecurityGroupIngressInput, ...) (*ec2.RevokeSecurityGroupIngressOutput, error)
- func (m *MockEC2) SubnetIds() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockEC2 ¶
type MockEC2 struct { // Stub out interface awsinterfaces.EC2API Addresses map[string]*ec2types.Address RouteTables map[string]*ec2types.RouteTable DhcpOptions map[string]*ec2types.DhcpOptions Images []*ec2types.Image SecurityGroups map[string]*ec2types.SecurityGroup SecurityGroupRules map[string]*ec2types.SecurityGroupRule Volumes map[string]*ec2types.Volume KeyPairs map[string]*ec2types.KeyPairInfo Tags []*ec2types.TagDescription Vpcs map[string]*vpcInfo InternetGateways map[string]*ec2types.InternetGateway EgressOnlyInternetGateways map[string]*ec2types.EgressOnlyInternetGateway LaunchTemplates map[string]*launchTemplateInfo NatGateways map[string]*ec2types.NatGateway // contains filtered or unexported fields }
func (*MockEC2) AddRouteTable ¶
func (m *MockEC2) AddRouteTable(rt *ec2types.RouteTable)
func (*MockEC2) AllocateAddress ¶
func (m *MockEC2) AllocateAddress(ctx context.Context, request *ec2.AllocateAddressInput, optFns ...func(*ec2.Options)) (*ec2.AllocateAddressOutput, error)
func (*MockEC2) AllocateAddressWithId ¶
func (m *MockEC2) AllocateAddressWithId(request *ec2.AllocateAddressInput, id string) (*ec2.AllocateAddressOutput, error)
func (*MockEC2) AssociateDhcpOptions ¶
func (m *MockEC2) AssociateDhcpOptions(ctx context.Context, request *ec2.AssociateDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.AssociateDhcpOptionsOutput, error)
func (*MockEC2) AssociateRouteTable ¶
func (m *MockEC2) AssociateRouteTable(ctx context.Context, request *ec2.AssociateRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.AssociateRouteTableOutput, error)
func (*MockEC2) AssociateVpcCidrBlock ¶
func (m *MockEC2) AssociateVpcCidrBlock(ctx context.Context, request *ec2.AssociateVpcCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.AssociateVpcCidrBlockOutput, error)
func (*MockEC2) AttachInternetGateway ¶
func (m *MockEC2) AttachInternetGateway(ctx context.Context, request *ec2.AttachInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.AttachInternetGatewayOutput, error)
func (*MockEC2) AuthorizeSecurityGroupEgress ¶
func (m *MockEC2) AuthorizeSecurityGroupEgress(ctx context.Context, request *ec2.AuthorizeSecurityGroupEgressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
func (*MockEC2) AuthorizeSecurityGroupIngress ¶
func (m *MockEC2) AuthorizeSecurityGroupIngress(ctx context.Context, request *ec2.AuthorizeSecurityGroupIngressInput, optFns ...func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
func (*MockEC2) CreateDhcpOptions ¶
func (m *MockEC2) CreateDhcpOptions(ctx context.Context, request *ec2.CreateDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.CreateDhcpOptionsOutput, error)
func (*MockEC2) CreateEgressOnlyInternetGateway ¶
func (m *MockEC2) CreateEgressOnlyInternetGateway(ctx context.Context, request *ec2.CreateEgressOnlyInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateEgressOnlyInternetGatewayOutput, error)
func (*MockEC2) CreateInternetGateway ¶
func (m *MockEC2) CreateInternetGateway(ctx context.Context, request *ec2.CreateInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateInternetGatewayOutput, error)
func (*MockEC2) CreateLaunchTemplate ¶
func (m *MockEC2) CreateLaunchTemplate(ctx context.Context, request *ec2.CreateLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.CreateLaunchTemplateOutput, error)
CreateLaunchTemplate mocks the ec2 create launch template
func (*MockEC2) CreateLaunchTemplateVersion ¶
func (m *MockEC2) CreateLaunchTemplateVersion(ctx context.Context, request *ec2.CreateLaunchTemplateVersionInput, optFns ...func(*ec2.Options)) (*ec2.CreateLaunchTemplateVersionOutput, error)
func (*MockEC2) CreateNatGateway ¶
func (m *MockEC2) CreateNatGateway(ctx context.Context, request *ec2.CreateNatGatewayInput, optFns ...func(*ec2.Options)) (*ec2.CreateNatGatewayOutput, error)
func (*MockEC2) CreateNatGatewayWithId ¶
func (m *MockEC2) CreateNatGatewayWithId(request *ec2.CreateNatGatewayInput, id string) (*ec2.CreateNatGatewayOutput, error)
func (*MockEC2) CreateRoute ¶
func (m *MockEC2) CreateRoute(ctx context.Context, request *ec2.CreateRouteInput, optFns ...func(*ec2.Options)) (*ec2.CreateRouteOutput, error)
func (*MockEC2) CreateRouteTable ¶
func (m *MockEC2) CreateRouteTable(ctx context.Context, request *ec2.CreateRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.CreateRouteTableOutput, error)
func (*MockEC2) CreateRouteTableWithId ¶
func (m *MockEC2) CreateRouteTableWithId(request *ec2.CreateRouteTableInput, id string) (*ec2.CreateRouteTableOutput, error)
func (*MockEC2) CreateSecurityGroup ¶
func (m *MockEC2) CreateSecurityGroup(ctx context.Context, request *ec2.CreateSecurityGroupInput, optFns ...func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error)
func (*MockEC2) CreateSubnet ¶
func (m *MockEC2) CreateSubnet(ctx context.Context, request *ec2.CreateSubnetInput, optFns ...func(*ec2.Options)) (*ec2.CreateSubnetOutput, error)
func (*MockEC2) CreateSubnetWithId ¶
func (m *MockEC2) CreateSubnetWithId(request *ec2.CreateSubnetInput, id string) (*ec2.CreateSubnetOutput, error)
func (*MockEC2) CreateTags ¶
func (m *MockEC2) CreateTags(ctx context.Context, request *ec2.CreateTagsInput, optFns ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
func (*MockEC2) CreateVolume ¶
func (m *MockEC2) CreateVolume(ctx context.Context, request *ec2.CreateVolumeInput, optFns ...func(*ec2.Options)) (*ec2.CreateVolumeOutput, error)
func (*MockEC2) CreateVpc ¶
func (m *MockEC2) CreateVpc(ctx context.Context, request *ec2.CreateVpcInput, optFns ...func(*ec2.Options)) (*ec2.CreateVpcOutput, error)
func (*MockEC2) CreateVpcWithId ¶
func (m *MockEC2) CreateVpcWithId(request *ec2.CreateVpcInput, id string) (*ec2.CreateVpcOutput, error)
func (*MockEC2) DeleteDhcpOptions ¶
func (m *MockEC2) DeleteDhcpOptions(ctx context.Context, request *ec2.DeleteDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.DeleteDhcpOptionsOutput, error)
func (*MockEC2) DeleteEgressOnlyInternetGateway ¶
func (m *MockEC2) DeleteEgressOnlyInternetGateway(ctx context.Context, request *ec2.DeleteEgressOnlyInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteEgressOnlyInternetGatewayOutput, error)
func (*MockEC2) DeleteInternetGateway ¶
func (m *MockEC2) DeleteInternetGateway(ctx context.Context, request *ec2.DeleteInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteInternetGatewayOutput, error)
func (*MockEC2) DeleteKeyPair ¶
func (m *MockEC2) DeleteKeyPair(ctx context.Context, request *ec2.DeleteKeyPairInput, optFns ...func(*ec2.Options)) (*ec2.DeleteKeyPairOutput, error)
func (*MockEC2) DeleteLaunchTemplate ¶
func (m *MockEC2) DeleteLaunchTemplate(ctx context.Context, request *ec2.DeleteLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.DeleteLaunchTemplateOutput, error)
DeleteLaunchTemplate mocks the deletion of a launch template
func (*MockEC2) DeleteNatGateway ¶
func (m *MockEC2) DeleteNatGateway(ctx context.Context, request *ec2.DeleteNatGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DeleteNatGatewayOutput, error)
func (*MockEC2) DeleteRouteTable ¶
func (m *MockEC2) DeleteRouteTable(ctx context.Context, request *ec2.DeleteRouteTableInput, optFns ...func(*ec2.Options)) (*ec2.DeleteRouteTableOutput, error)
func (*MockEC2) DeleteSecurityGroup ¶
func (m *MockEC2) DeleteSecurityGroup(ctx context.Context, request *ec2.DeleteSecurityGroupInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSecurityGroupOutput, error)
func (*MockEC2) DeleteSubnet ¶
func (m *MockEC2) DeleteSubnet(ctx context.Context, request *ec2.DeleteSubnetInput, optFns ...func(*ec2.Options)) (*ec2.DeleteSubnetOutput, error)
func (*MockEC2) DeleteVolume ¶
func (m *MockEC2) DeleteVolume(ctx context.Context, request *ec2.DeleteVolumeInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVolumeOutput, error)
func (*MockEC2) DeleteVpc ¶
func (m *MockEC2) DeleteVpc(ctx context.Context, request *ec2.DeleteVpcInput, optFns ...func(*ec2.Options)) (*ec2.DeleteVpcOutput, error)
func (*MockEC2) DescribeAddresses ¶
func (m *MockEC2) DescribeAddresses(ctx context.Context, request *ec2.DescribeAddressesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeAddressesOutput, error)
func (*MockEC2) DescribeDhcpOptions ¶
func (m *MockEC2) DescribeDhcpOptions(ctx context.Context, request *ec2.DescribeDhcpOptionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeDhcpOptionsOutput, error)
func (*MockEC2) DescribeEgressOnlyInternetGateways ¶
func (m *MockEC2) DescribeEgressOnlyInternetGateways(ctx context.Context, request *ec2.DescribeEgressOnlyInternetGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)
func (*MockEC2) DescribeImages ¶
func (m *MockEC2) DescribeImages(ctx context.Context, request *ec2.DescribeImagesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeImagesOutput, error)
func (*MockEC2) DescribeInstanceTypes ¶ added in v1.19.0
func (m *MockEC2) DescribeInstanceTypes(ctx context.Context, request *ec2.DescribeInstanceTypesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstanceTypesOutput, error)
func (*MockEC2) DescribeInstances ¶
func (m *MockEC2) DescribeInstances(ctx context.Context, request *ec2.DescribeInstancesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
func (*MockEC2) DescribeInternetGateways ¶
func (m *MockEC2) DescribeInternetGateways(ctx context.Context, request *ec2.DescribeInternetGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeInternetGatewaysOutput, error)
func (*MockEC2) DescribeKeyPairs ¶
func (m *MockEC2) DescribeKeyPairs(ctx context.Context, request *ec2.DescribeKeyPairsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeKeyPairsOutput, error)
func (*MockEC2) DescribeLaunchTemplateVersions ¶
func (m *MockEC2) DescribeLaunchTemplateVersions(ctx context.Context, request *ec2.DescribeLaunchTemplateVersionsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplateVersionsOutput, error)
DescribeLaunchTemplateVersions mocks the retrieval of launch template versions - we don't use this at the moment so we can just return the template
func (*MockEC2) DescribeLaunchTemplates ¶
func (m *MockEC2) DescribeLaunchTemplates(ctx context.Context, request *ec2.DescribeLaunchTemplatesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeLaunchTemplatesOutput, error)
DescribeLaunchTemplates mocks the describing the launch templates
func (*MockEC2) DescribeNatGateways ¶
func (m *MockEC2) DescribeNatGateways(ctx context.Context, request *ec2.DescribeNatGatewaysInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNatGatewaysOutput, error)
func (*MockEC2) DescribeNetworkInterfaces ¶
func (m *MockEC2) DescribeNetworkInterfaces(ctx context.Context, params *ec2.DescribeNetworkInterfacesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeNetworkInterfacesOutput, error)
func (*MockEC2) DescribeRouteTables ¶
func (m *MockEC2) DescribeRouteTables(ctx context.Context, request *ec2.DescribeRouteTablesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)
func (*MockEC2) DescribeSecurityGroupRules ¶ added in v1.23.0
func (m *MockEC2) DescribeSecurityGroupRules(ctx context.Context, request *ec2.DescribeSecurityGroupRulesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupRulesOutput, error)
func (*MockEC2) DescribeSecurityGroups ¶
func (m *MockEC2) DescribeSecurityGroups(ctx context.Context, request *ec2.DescribeSecurityGroupsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)
func (*MockEC2) DescribeSubnets ¶
func (m *MockEC2) DescribeSubnets(ctx context.Context, request *ec2.DescribeSubnetsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)
func (*MockEC2) DescribeTags ¶
func (m *MockEC2) DescribeTags(ctx context.Context, request *ec2.DescribeTagsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeTagsOutput, error)
func (*MockEC2) DescribeVolumes ¶
func (m *MockEC2) DescribeVolumes(ctx context.Context, request *ec2.DescribeVolumesInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVolumesOutput, error)
func (*MockEC2) DescribeVpcAttribute ¶
func (m *MockEC2) DescribeVpcAttribute(ctx context.Context, request *ec2.DescribeVpcAttributeInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcAttributeOutput, error)
func (*MockEC2) DescribeVpcs ¶
func (m *MockEC2) DescribeVpcs(ctx context.Context, request *ec2.DescribeVpcsInput, optFns ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)
func (*MockEC2) DetachInternetGateway ¶
func (m *MockEC2) DetachInternetGateway(ctx context.Context, request *ec2.DetachInternetGatewayInput, optFns ...func(*ec2.Options)) (*ec2.DetachInternetGatewayOutput, error)
func (*MockEC2) DisassociateVpcCidrBlock ¶
func (m *MockEC2) DisassociateVpcCidrBlock(ctx context.Context, request *ec2.DisassociateVpcCidrBlockInput, optFns ...func(*ec2.Options)) (*ec2.DisassociateVpcCidrBlockOutput, error)
func (*MockEC2) EgressOnlyInternetGatewayIds ¶ added in v1.23.0
func (*MockEC2) FindEgressOnlyInternetGateway ¶ added in v1.23.0
func (m *MockEC2) FindEgressOnlyInternetGateway(id string) *ec2types.EgressOnlyInternetGateway
func (*MockEC2) FindInternetGateway ¶
func (m *MockEC2) FindInternetGateway(id string) *ec2types.InternetGateway
func (*MockEC2) GetInstanceTypesFromInstanceRequirements ¶ added in v1.24.0
func (m *MockEC2) GetInstanceTypesFromInstanceRequirements(ctx context.Context, request *ec2.GetInstanceTypesFromInstanceRequirementsInput, optFns ...func(*ec2.Options)) (*ec2.GetInstanceTypesFromInstanceRequirementsOutput, error)
func (*MockEC2) ImportKeyPair ¶
func (m *MockEC2) ImportKeyPair(ctx context.Context, request *ec2.ImportKeyPairInput, optFns ...func(*ec2.Options)) (*ec2.ImportKeyPairOutput, error)
func (*MockEC2) InternetGatewayIds ¶
func (*MockEC2) ModifyLaunchTemplate ¶
func (m *MockEC2) ModifyLaunchTemplate(ctx context.Context, request *ec2.ModifyLaunchTemplateInput, optFns ...func(*ec2.Options)) (*ec2.ModifyLaunchTemplateOutput, error)
func (*MockEC2) ModifySubnetAttribute ¶
func (m *MockEC2) ModifySubnetAttribute(ctx context.Context, request *ec2.ModifySubnetAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifySubnetAttributeOutput, error)
func (*MockEC2) ModifyVpcAttribute ¶
func (m *MockEC2) ModifyVpcAttribute(ctx context.Context, request *ec2.ModifyVpcAttributeInput, optFns ...func(*ec2.Options)) (*ec2.ModifyVpcAttributeOutput, error)
func (*MockEC2) ReleaseAddress ¶
func (m *MockEC2) ReleaseAddress(ctx context.Context, request *ec2.ReleaseAddressInput, optFns ...func(*ec2.Options)) (*ec2.ReleaseAddressOutput, error)
func (*MockEC2) RevokeSecurityGroupEgress ¶
func (m *MockEC2) RevokeSecurityGroupEgress(ctx context.Context, request *ec2.RevokeSecurityGroupEgressInput, optFns ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupEgressOutput, error)
func (*MockEC2) RevokeSecurityGroupIngress ¶
func (m *MockEC2) RevokeSecurityGroupIngress(ctx context.Context, request *ec2.RevokeSecurityGroupIngressInput, optFns ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupIngressOutput, error)
Click to show internal directories.
Click to hide internal directories.