fake

package
v0.47.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAddressClient

type MockAddressClient struct {
	MockAllocate   func(ctx context.Context, input *ec2.AllocateAddressInput, opts []func(*ec2.Options)) (*ec2.AllocateAddressOutput, error)
	MockRelease    func(ctx context.Context, input *ec2.ReleaseAddressInput, opts []func(*ec2.Options)) (*ec2.ReleaseAddressOutput, error)
	MockDescribe   func(ctx context.Context, input *ec2.DescribeAddressesInput, opts []func(*ec2.Options)) (*ec2.DescribeAddressesOutput, error)
	MockCreateTags func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
}

MockAddressClient is a type that implements all the methods for ElasticIPClient interface

func (*MockAddressClient) AllocateAddress

func (m *MockAddressClient) AllocateAddress(ctx context.Context, input *ec2.AllocateAddressInput, opts ...func(*ec2.Options)) (*ec2.AllocateAddressOutput, error)

AllocateAddress mocks AllocateAddress method

func (*MockAddressClient) CreateTags

func (m *MockAddressClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockAddressClient) DescribeAddresses

func (m *MockAddressClient) DescribeAddresses(ctx context.Context, input *ec2.DescribeAddressesInput, opts ...func(*ec2.Options)) (*ec2.DescribeAddressesOutput, error)

DescribeAddresses mocks DescribeAddresses method

func (*MockAddressClient) ReleaseAddress

func (m *MockAddressClient) ReleaseAddress(ctx context.Context, input *ec2.ReleaseAddressInput, opts ...func(*ec2.Options)) (*ec2.ReleaseAddressOutput, error)

ReleaseAddress mocks ReleaseAddress method

type MockInstanceClient

type MockInstanceClient struct {
	MockRunInstances              func(context.Context, *ec2.RunInstancesInput, []func(*ec2.Options)) (*ec2.RunInstancesOutput, error)
	MockTerminateInstances        func(context.Context, *ec2.TerminateInstancesInput, []func(*ec2.Options)) (*ec2.TerminateInstancesOutput, error)
	MockDescribeInstances         func(context.Context, *ec2.DescribeInstancesInput, []func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)
	MockDescribeInstanceAttribute func(context.Context, *ec2.DescribeInstanceAttributeInput, []func(*ec2.Options)) (*ec2.DescribeInstanceAttributeOutput, error)
	MockModifyInstanceAttribute   func(context.Context, *ec2.ModifyInstanceAttributeInput, []func(*ec2.Options)) (*ec2.ModifyInstanceAttributeOutput, error)
	MockCreateTags                func(context.Context, *ec2.CreateTagsInput, []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
}

MockInstanceClient is a type that implements all the methods for MockInstanceClient interface

func (*MockInstanceClient) CreateTags

func (m *MockInstanceClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockInstanceClient) DescribeInstanceAttribute

func (m *MockInstanceClient) DescribeInstanceAttribute(ctx context.Context, input *ec2.DescribeInstanceAttributeInput, opts ...func(*ec2.Options)) (*ec2.DescribeInstanceAttributeOutput, error)

DescribeInstanceAttribute mocks DescribeInstanceAttribute method

func (*MockInstanceClient) DescribeInstances

func (m *MockInstanceClient) DescribeInstances(ctx context.Context, input *ec2.DescribeInstancesInput, opts ...func(*ec2.Options)) (*ec2.DescribeInstancesOutput, error)

DescribeInstances mocks DescribeInstances method

func (*MockInstanceClient) ModifyInstanceAttribute

func (m *MockInstanceClient) ModifyInstanceAttribute(ctx context.Context, input *ec2.ModifyInstanceAttributeInput, opts ...func(*ec2.Options)) (*ec2.ModifyInstanceAttributeOutput, error)

ModifyInstanceAttribute mocks ModifyInstanceAttribute method

func (*MockInstanceClient) RunInstances

func (m *MockInstanceClient) RunInstances(ctx context.Context, input *ec2.RunInstancesInput, opts ...func(*ec2.Options)) (*ec2.RunInstancesOutput, error)

RunInstances mocks RunInstances method

func (*MockInstanceClient) TerminateInstances

func (m *MockInstanceClient) TerminateInstances(ctx context.Context, input *ec2.TerminateInstancesInput, opts ...func(*ec2.Options)) (*ec2.TerminateInstancesOutput, error)

TerminateInstances mocks TerminateInstances method

type MockInternetGatewayClient

type MockInternetGatewayClient struct {
	MockCreate     func(ctx context.Context, input *ec2.CreateInternetGatewayInput, opts []func(*ec2.Options)) (*ec2.CreateInternetGatewayOutput, error)
	MockDelete     func(ctx context.Context, input *ec2.DeleteInternetGatewayInput, opts []func(*ec2.Options)) (*ec2.DeleteInternetGatewayOutput, error)
	MockDescribe   func(ctx context.Context, input *ec2.DescribeInternetGatewaysInput, opts []func(*ec2.Options)) (*ec2.DescribeInternetGatewaysOutput, error)
	MockAttach     func(ctx context.Context, input *ec2.AttachInternetGatewayInput, opts []func(*ec2.Options)) (*ec2.AttachInternetGatewayOutput, error)
	MockDetach     func(ctx context.Context, input *ec2.DetachInternetGatewayInput, opts []func(*ec2.Options)) (*ec2.DetachInternetGatewayOutput, error)
	MockCreateTags func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
}

MockInternetGatewayClient is a type that implements all the methods for InternetGatewayClient interface

func (*MockInternetGatewayClient) AttachInternetGateway

func (m *MockInternetGatewayClient) AttachInternetGateway(ctx context.Context, input *ec2.AttachInternetGatewayInput, opts ...func(*ec2.Options)) (*ec2.AttachInternetGatewayOutput, error)

AttachInternetGateway mocks AttachInternetGateway method

func (*MockInternetGatewayClient) CreateInternetGateway

func (m *MockInternetGatewayClient) CreateInternetGateway(ctx context.Context, input *ec2.CreateInternetGatewayInput, opts ...func(*ec2.Options)) (*ec2.CreateInternetGatewayOutput, error)

CreateInternetGateway mocks CreateInternetGateway method

func (*MockInternetGatewayClient) CreateTags

func (m *MockInternetGatewayClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockInternetGatewayClient) DeleteInternetGateway

func (m *MockInternetGatewayClient) DeleteInternetGateway(ctx context.Context, input *ec2.DeleteInternetGatewayInput, opts ...func(*ec2.Options)) (*ec2.DeleteInternetGatewayOutput, error)

DeleteInternetGateway mocks DeleteInternetGateway method

func (*MockInternetGatewayClient) DescribeInternetGateways

DescribeInternetGateways mocks DescribeInternetGateways method

func (*MockInternetGatewayClient) DetachInternetGateway

func (m *MockInternetGatewayClient) DetachInternetGateway(ctx context.Context, input *ec2.DetachInternetGatewayInput, opts ...func(*ec2.Options)) (*ec2.DetachInternetGatewayOutput, error)

DetachInternetGateway mocks DetachInternetGateway

type MockNatGatewayClient

type MockNatGatewayClient struct {
	MockCreate     func(ctx context.Context, input *ec2.CreateNatGatewayInput, opts []func(*ec2.Options)) (*ec2.CreateNatGatewayOutput, error)
	MockDelete     func(ctx context.Context, input *ec2.DeleteNatGatewayInput, opts []func(*ec2.Options)) (*ec2.DeleteNatGatewayOutput, error)
	MockDescribe   func(ctx context.Context, input *ec2.DescribeNatGatewaysInput, opts []func(*ec2.Options)) (*ec2.DescribeNatGatewaysOutput, error)
	MockCreateTags func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
	MockDeleteTags func(ctx context.Context, input *ec2.DeleteTagsInput, opts []func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)
}

MockNatGatewayClient is a type that implements all the methods for NatGatewayClient interface

func (*MockNatGatewayClient) CreateNatGateway

func (m *MockNatGatewayClient) CreateNatGateway(ctx context.Context, input *ec2.CreateNatGatewayInput, opts ...func(*ec2.Options)) (*ec2.CreateNatGatewayOutput, error)

CreateNatGateway mocks CreateNatGateway method

func (*MockNatGatewayClient) CreateTags

func (m *MockNatGatewayClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockNatGatewayClient) DeleteNatGateway

func (m *MockNatGatewayClient) DeleteNatGateway(ctx context.Context, input *ec2.DeleteNatGatewayInput, opts ...func(*ec2.Options)) (*ec2.DeleteNatGatewayOutput, error)

DeleteNatGateway mocks DeleteNatGateway method

func (*MockNatGatewayClient) DeleteTags

func (m *MockNatGatewayClient) DeleteTags(ctx context.Context, input *ec2.DeleteTagsInput, opts ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)

DeleteTags mocks DeleteTags method

func (*MockNatGatewayClient) DescribeNatGateways

func (m *MockNatGatewayClient) DescribeNatGateways(ctx context.Context, input *ec2.DescribeNatGatewaysInput, opts ...func(*ec2.Options)) (*ec2.DescribeNatGatewaysOutput, error)

DescribeNatGateways mocks DescribeNatGateways method

type MockRouteTableClient

type MockRouteTableClient struct {
	MockCreate       func(ctx context.Context, input *ec2.CreateRouteTableInput, opts []func(*ec2.Options)) (*ec2.CreateRouteTableOutput, error)
	MockDelete       func(ctx context.Context, input *ec2.DeleteRouteTableInput, opts []func(*ec2.Options)) (*ec2.DeleteRouteTableOutput, error)
	MockDescribe     func(ctx context.Context, input *ec2.DescribeRouteTablesInput, opts []func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)
	MockCreateRoute  func(ctx context.Context, input *ec2.CreateRouteInput, opts []func(*ec2.Options)) (*ec2.CreateRouteOutput, error)
	MockDeleteRoute  func(ctx context.Context, input *ec2.DeleteRouteInput, opts []func(*ec2.Options)) (*ec2.DeleteRouteOutput, error)
	MockAssociate    func(ctx context.Context, input *ec2.AssociateRouteTableInput, opts []func(*ec2.Options)) (*ec2.AssociateRouteTableOutput, error)
	MockDisassociate func(ctx context.Context, input *ec2.DisassociateRouteTableInput, opts []func(*ec2.Options)) (*ec2.DisassociateRouteTableOutput, error)
	MockCreateTags   func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
	MockDeleteTags   func(ctx context.Context, input *ec2.DeleteTagsInput, opts []func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)
}

MockRouteTableClient is a type that implements all the methods for RouteTableClient interface

func (*MockRouteTableClient) AssociateRouteTable

func (m *MockRouteTableClient) AssociateRouteTable(ctx context.Context, input *ec2.AssociateRouteTableInput, opts ...func(*ec2.Options)) (*ec2.AssociateRouteTableOutput, error)

AssociateRouteTable mocks AssociateRouteTable method

func (*MockRouteTableClient) CreateRoute

func (m *MockRouteTableClient) CreateRoute(ctx context.Context, input *ec2.CreateRouteInput, opts ...func(*ec2.Options)) (*ec2.CreateRouteOutput, error)

CreateRoute mocks CreateRoute method

func (*MockRouteTableClient) CreateRouteTable

func (m *MockRouteTableClient) CreateRouteTable(ctx context.Context, input *ec2.CreateRouteTableInput, opts ...func(*ec2.Options)) (*ec2.CreateRouteTableOutput, error)

CreateRouteTable mocks CreateRouteTable method

func (*MockRouteTableClient) CreateTags

func (m *MockRouteTableClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockRouteTableClient) DeleteRoute

func (m *MockRouteTableClient) DeleteRoute(ctx context.Context, input *ec2.DeleteRouteInput, opts ...func(*ec2.Options)) (*ec2.DeleteRouteOutput, error)

DeleteRoute mocks DeleteRoute method

func (*MockRouteTableClient) DeleteRouteTable

func (m *MockRouteTableClient) DeleteRouteTable(ctx context.Context, input *ec2.DeleteRouteTableInput, opts ...func(*ec2.Options)) (*ec2.DeleteRouteTableOutput, error)

DeleteRouteTable mocks DeleteRouteTable method

func (*MockRouteTableClient) DeleteTags

func (m *MockRouteTableClient) DeleteTags(ctx context.Context, input *ec2.DeleteTagsInput, opts ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)

DeleteTags mocks DeleteTags method

func (*MockRouteTableClient) DescribeRouteTables

func (m *MockRouteTableClient) DescribeRouteTables(ctx context.Context, input *ec2.DescribeRouteTablesInput, opts ...func(*ec2.Options)) (*ec2.DescribeRouteTablesOutput, error)

DescribeRouteTables mocks DescribeRouteTables method

func (*MockRouteTableClient) DisassociateRouteTable

func (m *MockRouteTableClient) DisassociateRouteTable(ctx context.Context, input *ec2.DisassociateRouteTableInput, opts ...func(*ec2.Options)) (*ec2.DisassociateRouteTableOutput, error)

DisassociateRouteTable mocks DisassociateRouteTable method

type MockSecurityGroupClient

type MockSecurityGroupClient struct {
	MockCreate           func(ctx context.Context, input *ec2.CreateSecurityGroupInput, opts []func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error)
	MockDelete           func(ctx context.Context, input *ec2.DeleteSecurityGroupInput, opts []func(*ec2.Options)) (*ec2.DeleteSecurityGroupOutput, error)
	MockDescribe         func(ctx context.Context, input *ec2.DescribeSecurityGroupsInput, opts []func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)
	MockAuthorizeIngress func(ctx context.Context, input *ec2.AuthorizeSecurityGroupIngressInput, opts []func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
	MockAuthorizeEgress  func(ctx context.Context, input *ec2.AuthorizeSecurityGroupEgressInput, opts []func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
	MockRevokeIngress    func(ctx context.Context, input *ec2.RevokeSecurityGroupIngressInput, opts []func(*ec2.Options)) (*ec2.RevokeSecurityGroupIngressOutput, error)
	MockRevokeEgress     func(ctx context.Context, input *ec2.RevokeSecurityGroupEgressInput, opts []func(*ec2.Options)) (*ec2.RevokeSecurityGroupEgressOutput, error)
	MockCreateTags       func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
	MockDeleteTags       func(ctx context.Context, input *ec2.DeleteTagsInput, opts []func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)
}

MockSecurityGroupClient is a type that implements all the methods for SecurityGroupClient interface

func (*MockSecurityGroupClient) AuthorizeSecurityGroupEgress

AuthorizeSecurityGroupEgress mocks AuthorizeSecurityGroupEgress method

func (*MockSecurityGroupClient) AuthorizeSecurityGroupIngress

AuthorizeSecurityGroupIngress mocks AuthorizeSecurityGroupIngress method

func (*MockSecurityGroupClient) CreateSecurityGroup

func (m *MockSecurityGroupClient) CreateSecurityGroup(ctx context.Context, input *ec2.CreateSecurityGroupInput, opts ...func(*ec2.Options)) (*ec2.CreateSecurityGroupOutput, error)

CreateSecurityGroup mocks CreateSecurityGroup method

func (*MockSecurityGroupClient) CreateTags

func (m *MockSecurityGroupClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTagsInput method

func (*MockSecurityGroupClient) DeleteSecurityGroup

func (m *MockSecurityGroupClient) DeleteSecurityGroup(ctx context.Context, input *ec2.DeleteSecurityGroupInput, opts ...func(*ec2.Options)) (*ec2.DeleteSecurityGroupOutput, error)

DeleteSecurityGroup mocks DeleteSecurityGroup method

func (*MockSecurityGroupClient) DeleteTags

func (m *MockSecurityGroupClient) DeleteTags(ctx context.Context, input *ec2.DeleteTagsInput, opts ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)

DeleteTags mocks DeleteTagsInput method

func (*MockSecurityGroupClient) DescribeSecurityGroups

func (m *MockSecurityGroupClient) DescribeSecurityGroups(ctx context.Context, input *ec2.DescribeSecurityGroupsInput, opts ...func(*ec2.Options)) (*ec2.DescribeSecurityGroupsOutput, error)

DescribeSecurityGroups mocks DescribeSecurityGroups method

func (*MockSecurityGroupClient) RevokeSecurityGroupEgress

func (m *MockSecurityGroupClient) RevokeSecurityGroupEgress(ctx context.Context, input *ec2.RevokeSecurityGroupEgressInput, opts ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupEgressOutput, error)

RevokeSecurityGroupEgress mocks RevokeSecurityGroupEgress method

func (*MockSecurityGroupClient) RevokeSecurityGroupIngress

func (m *MockSecurityGroupClient) RevokeSecurityGroupIngress(ctx context.Context, input *ec2.RevokeSecurityGroupIngressInput, opts ...func(*ec2.Options)) (*ec2.RevokeSecurityGroupIngressOutput, error)

RevokeSecurityGroupIngress mocks RevokeSecurityGroupIngress method

type MockSecurityGroupRuleClient added in v0.30.0

type MockSecurityGroupRuleClient struct {
	MockDescribe func(ctx context.Context, params *ec2.DescribeSecurityGroupRulesInput, optFns []func(*ec2.Options)) (*ec2.DescribeSecurityGroupRulesOutput, error)
	MockModify   func(ctx context.Context, params *ec2.ModifySecurityGroupRulesInput, optFns []func(*ec2.Options)) (*ec2.ModifySecurityGroupRulesOutput, error)

	MockAuthorizeIngress func(ctx context.Context, input *ec2.AuthorizeSecurityGroupIngressInput, opts []func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupIngressOutput, error)
	MockAuthorizeEgress  func(ctx context.Context, input *ec2.AuthorizeSecurityGroupEgressInput, opts []func(*ec2.Options)) (*ec2.AuthorizeSecurityGroupEgressOutput, error)
	MockRevokeIngress    func(ctx context.Context, input *ec2.RevokeSecurityGroupIngressInput, opts []func(*ec2.Options)) (*ec2.RevokeSecurityGroupIngressOutput, error)
	MockRevokeEgress     func(ctx context.Context, input *ec2.RevokeSecurityGroupEgressInput, opts []func(*ec2.Options)) (*ec2.RevokeSecurityGroupEgressOutput, error)
}

MockSecurityGroupRuleClient is a type that implements all the methods for SecurityGroupClient interface

func (*MockSecurityGroupRuleClient) AuthorizeSecurityGroupEgress added in v0.30.0

AuthorizeSecurityGroupEgress mocks AuthorizeSecurityGroupEgress method

func (*MockSecurityGroupRuleClient) AuthorizeSecurityGroupIngress added in v0.30.0

AuthorizeSecurityGroupIngress mocks AuthorizeSecurityGroupIngress method

func (*MockSecurityGroupRuleClient) DescribeSecurityGroupRules added in v0.30.0

DescribeSecurityGroupRules mocks DescribeSecurityGroupRules method

func (*MockSecurityGroupRuleClient) ModifySecurityGroupRules added in v0.30.0

ModifySecurityGroupRules mocks ModifySecurityGroupRules method

func (*MockSecurityGroupRuleClient) RevokeSecurityGroupEgress added in v0.30.0

RevokeSecurityGroupEgress mocks RevokeSecurityGroupEgress method

func (*MockSecurityGroupRuleClient) RevokeSecurityGroupIngress added in v0.30.0

RevokeSecurityGroupIngress mocks RevokeSecurityGroupIngress method

type MockSubnetClient

type MockSubnetClient struct {
	MockCreate     func(ctx context.Context, input *ec2.CreateSubnetInput, opts []func(*ec2.Options)) (*ec2.CreateSubnetOutput, error)
	MockDelete     func(ctx context.Context, input *ec2.DeleteSubnetInput, opts []func(*ec2.Options)) (*ec2.DeleteSubnetOutput, error)
	MockDescribe   func(ctx context.Context, input *ec2.DescribeSubnetsInput, opts []func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)
	MockModify     func(ctx context.Context, input *ec2.ModifySubnetAttributeInput, opts []func(*ec2.Options)) (*ec2.ModifySubnetAttributeOutput, error)
	MockCreateTags func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
	MockDeleteTags func(ctx context.Context, input *ec2.DeleteTagsInput, opts []func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)
}

MockSubnetClient is a type that implements all the methods for SubnetClient interface

func (*MockSubnetClient) CreateSubnet

func (m *MockSubnetClient) CreateSubnet(ctx context.Context, input *ec2.CreateSubnetInput, opts ...func(*ec2.Options)) (*ec2.CreateSubnetOutput, error)

CreateSubnet mocks CreateSubnet method

func (*MockSubnetClient) CreateTags

func (m *MockSubnetClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockSubnetClient) DeleteSubnet

func (m *MockSubnetClient) DeleteSubnet(ctx context.Context, input *ec2.DeleteSubnetInput, opts ...func(*ec2.Options)) (*ec2.DeleteSubnetOutput, error)

DeleteSubnet mocks DeleteSubnet method

func (*MockSubnetClient) DeleteTags

func (m *MockSubnetClient) DeleteTags(ctx context.Context, input *ec2.DeleteTagsInput, opts ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)

DeleteTags mocks DeleteTags method

func (*MockSubnetClient) DescribeSubnets

func (m *MockSubnetClient) DescribeSubnets(ctx context.Context, input *ec2.DescribeSubnetsInput, opts ...func(*ec2.Options)) (*ec2.DescribeSubnetsOutput, error)

DescribeSubnets mocks DescribeSubnets method

func (*MockSubnetClient) ModifySubnetAttribute

func (m *MockSubnetClient) ModifySubnetAttribute(ctx context.Context, input *ec2.ModifySubnetAttributeInput, opts ...func(*ec2.Options)) (*ec2.ModifySubnetAttributeOutput, error)

ModifySubnetAttribute mocks ModifySubnetAttributeInput method

type MockVPCCIDRBlockClient

type MockVPCCIDRBlockClient struct {
	MockDescribe     func(ctx context.Context, input *ec2.DescribeVpcsInput, opts []func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)
	MockAssociate    func(ctx context.Context, input *ec2.AssociateVpcCidrBlockInput, opts []func(*ec2.Options)) (*ec2.AssociateVpcCidrBlockOutput, error)
	MockDisassociate func(ctx context.Context, input *ec2.DisassociateVpcCidrBlockInput, opts []func(*ec2.Options)) (*ec2.DisassociateVpcCidrBlockOutput, error)
}

MockVPCCIDRBlockClient is a type that implements all the methods for MockVPCCIDRBlockClient interface

func (*MockVPCCIDRBlockClient) AssociateVpcCidrBlock

func (m *MockVPCCIDRBlockClient) AssociateVpcCidrBlock(ctx context.Context, input *ec2.AssociateVpcCidrBlockInput, opts ...func(*ec2.Options)) (*ec2.AssociateVpcCidrBlockOutput, error)

AssociateVpcCidrBlock mocks AssociateVpcCidrBlockmethod

func (*MockVPCCIDRBlockClient) DescribeVpcs

func (m *MockVPCCIDRBlockClient) DescribeVpcs(ctx context.Context, input *ec2.DescribeVpcsInput, opts ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)

DescribeVpcs mocks DescribeVpcs method

func (*MockVPCCIDRBlockClient) DisassociateVpcCidrBlock

func (m *MockVPCCIDRBlockClient) DisassociateVpcCidrBlock(ctx context.Context, input *ec2.DisassociateVpcCidrBlockInput, opts ...func(*ec2.Options)) (*ec2.DisassociateVpcCidrBlockOutput, error)

DisassociateVpcCidrBlock mocks DisassociateVpcCidrBlock method

type MockVPCClient

type MockVPCClient struct {
	MockCreate               func(ctx context.Context, input *ec2.CreateVpcInput, opts []func(*ec2.Options)) (*ec2.CreateVpcOutput, error)
	MockDelete               func(ctx context.Context, input *ec2.DeleteVpcInput, opts []func(*ec2.Options)) (*ec2.DeleteVpcOutput, error)
	MockDescribe             func(ctx context.Context, input *ec2.DescribeVpcsInput, opts []func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)
	MockModifyAttribute      func(ctx context.Context, input *ec2.ModifyVpcAttributeInput, opts []func(*ec2.Options)) (*ec2.ModifyVpcAttributeOutput, error)
	MockModifyTenancy        func(ctx context.Context, input *ec2.ModifyVpcTenancyInput, opts []func(*ec2.Options)) (*ec2.ModifyVpcTenancyOutput, error)
	MockCreateTags           func(ctx context.Context, input *ec2.CreateTagsInput, opts []func(*ec2.Options)) (*ec2.CreateTagsOutput, error)
	MockDeleteTags           func(ctx context.Context, input *ec2.DeleteTagsInput, opts []func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)
	MockDescribeVpcAttribute func(ctx context.Context, input *ec2.DescribeVpcAttributeInput, opts []func(*ec2.Options)) (*ec2.DescribeVpcAttributeOutput, error)
}

MockVPCClient is a type that implements all the methods for VPCClient interface

func (*MockVPCClient) CreateTags

func (m *MockVPCClient) CreateTags(ctx context.Context, input *ec2.CreateTagsInput, opts ...func(*ec2.Options)) (*ec2.CreateTagsOutput, error)

CreateTags mocks CreateTags method

func (*MockVPCClient) CreateVpc

func (m *MockVPCClient) CreateVpc(ctx context.Context, input *ec2.CreateVpcInput, opts ...func(*ec2.Options)) (*ec2.CreateVpcOutput, error)

CreateVpc mocks CreateVpc method

func (*MockVPCClient) DeleteTags

func (m *MockVPCClient) DeleteTags(ctx context.Context, input *ec2.DeleteTagsInput, opts ...func(*ec2.Options)) (*ec2.DeleteTagsOutput, error)

DeleteTags mocks DeleteTags method

func (*MockVPCClient) DeleteVpc

func (m *MockVPCClient) DeleteVpc(ctx context.Context, input *ec2.DeleteVpcInput, opts ...func(*ec2.Options)) (*ec2.DeleteVpcOutput, error)

DeleteVpc mocks DeleteVpc method

func (*MockVPCClient) DescribeVpcAttribute

func (m *MockVPCClient) DescribeVpcAttribute(ctx context.Context, input *ec2.DescribeVpcAttributeInput, opts ...func(*ec2.Options)) (*ec2.DescribeVpcAttributeOutput, error)

DescribeVpcAttribute mocks DescribeVpcAttribute method

func (*MockVPCClient) DescribeVpcs

func (m *MockVPCClient) DescribeVpcs(ctx context.Context, input *ec2.DescribeVpcsInput, opts ...func(*ec2.Options)) (*ec2.DescribeVpcsOutput, error)

DescribeVpcs mocks DescribeVpcs method

func (*MockVPCClient) ModifyVpcAttribute

func (m *MockVPCClient) ModifyVpcAttribute(ctx context.Context, input *ec2.ModifyVpcAttributeInput, opts ...func(*ec2.Options)) (*ec2.ModifyVpcAttributeOutput, error)

ModifyVpcAttribute mocks ModifyVpcAttribute method

func (*MockVPCClient) ModifyVpcTenancy

func (m *MockVPCClient) ModifyVpcTenancy(ctx context.Context, input *ec2.ModifyVpcTenancyInput, opts ...func(*ec2.Options)) (*ec2.ModifyVpcTenancyOutput, error)

ModifyVpcTenancy mocks ModifyVpcTenancy method

type MockVPCEndpointClient

type MockVPCEndpointClient struct {
	ec2iface.EC2API

	MockCreateVpcEndpointWithContext    func(context.Context, *ec2.CreateVpcEndpointInput, ...request.Option) (*ec2.CreateVpcEndpointOutput, error)
	MockDeleteVpcEndpoints              func(*ec2.DeleteVpcEndpointsInput) (*ec2.DeleteVpcEndpointsOutput, error)
	MockModifyVpcEndpointWithContext    func(context.Context, *ec2.ModifyVpcEndpointInput, ...request.Option) (*ec2.ModifyVpcEndpointOutput, error)
	MockDescribeVpcEndpoints            func(*ec2.DescribeVpcEndpointsInput) (*ec2.DescribeVpcEndpointsOutput, error)
	MockDescribeVpcEndpointsWithContext func(context.Context, *ec2.DescribeVpcEndpointsInput, ...request.Option) (*ec2.DescribeVpcEndpointsOutput, error)
}

MockVPCEndpointClient for testing

func (*MockVPCEndpointClient) CreateVpcEndpointWithContext

func (m *MockVPCEndpointClient) CreateVpcEndpointWithContext(ctx context.Context, input *ec2.CreateVpcEndpointInput, req ...request.Option) (*ec2.CreateVpcEndpointOutput, error)

CreateVpcEndpointWithContext mocks CreateVpcEndpointWithContext

func (*MockVPCEndpointClient) DeleteVpcEndpoints

DeleteVpcEndpoints mocks DeleteVpcEndpoints

func (*MockVPCEndpointClient) DescribeVpcEndpoints

DescribeVpcEndpoints mocks DescribeVpcEndpoints

func (*MockVPCEndpointClient) DescribeVpcEndpointsWithContext

func (m *MockVPCEndpointClient) DescribeVpcEndpointsWithContext(ctx context.Context, input *ec2.DescribeVpcEndpointsInput, req ...request.Option) (*ec2.DescribeVpcEndpointsOutput, error)

DescribeVpcEndpointsWithContext mocks DescribeVpcEndpointsWithContext

func (*MockVPCEndpointClient) ModifyVpcEndpointWithContext

func (m *MockVPCEndpointClient) ModifyVpcEndpointWithContext(ctx context.Context, input *ec2.ModifyVpcEndpointInput, req ...request.Option) (*ec2.ModifyVpcEndpointOutput, error)

ModifyVpcEndpointWithContext mocks ModifyVpcEndpointWithContext

Jump to

Keyboard shortcuts

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