fake

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 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 added in v0.18.0

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 added in v0.20.0

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

AllocateAddress mocks AllocateAddress method

func (*MockAddressClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockAddressClient) DescribeAddresses added in v0.20.0

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

DescribeAddresses mocks DescribeAddresses method

func (*MockAddressClient) ReleaseAddress added in v0.20.0

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

ReleaseAddress mocks ReleaseAddress method

type MockInstanceClient added in v0.20.0

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 added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockInstanceClient) DescribeInstanceAttribute added in v0.20.0

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

DescribeInstanceAttribute mocks DescribeInstanceAttribute method

func (*MockInstanceClient) DescribeInstances added in v0.20.0

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

DescribeInstances mocks DescribeInstances method

func (*MockInstanceClient) ModifyInstanceAttribute added in v0.20.0

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

ModifyInstanceAttribute mocks ModifyInstanceAttribute method

func (*MockInstanceClient) RunInstances added in v0.20.0

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

RunInstances mocks RunInstances method

func (*MockInstanceClient) TerminateInstances added in v0.20.0

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 added in v0.20.0

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

AttachInternetGateway mocks AttachInternetGateway method

func (*MockInternetGatewayClient) CreateInternetGateway added in v0.20.0

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

CreateInternetGateway mocks CreateInternetGateway method

func (*MockInternetGatewayClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockInternetGatewayClient) DeleteInternetGateway added in v0.20.0

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

DeleteInternetGateway mocks DeleteInternetGateway method

func (*MockInternetGatewayClient) DescribeInternetGateways added in v0.20.0

DescribeInternetGateways mocks DescribeInternetGateways method

func (*MockInternetGatewayClient) DetachInternetGateway added in v0.20.0

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

DetachInternetGateway mocks DetachInternetGateway

type MockNatGatewayClient added in v0.13.0

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 added in v0.20.0

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

CreateNatGateway mocks CreateNatGateway method

func (*MockNatGatewayClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockNatGatewayClient) DeleteNatGateway added in v0.20.0

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

DeleteNatGateway mocks DeleteNatGateway method

func (*MockNatGatewayClient) DeleteTags added in v0.20.0

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

DeleteTags mocks DeleteTags method

func (*MockNatGatewayClient) DescribeNatGateways added in v0.20.0

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 added in v0.20.0

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

AssociateRouteTable mocks AssociateRouteTable method

func (*MockRouteTableClient) CreateRoute added in v0.20.0

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

CreateRoute mocks CreateRoute method

func (*MockRouteTableClient) CreateRouteTable added in v0.20.0

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

CreateRouteTable mocks CreateRouteTable method

func (*MockRouteTableClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockRouteTableClient) DeleteRoute added in v0.20.0

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

DeleteRoute mocks DeleteRoute method

func (*MockRouteTableClient) DeleteRouteTable added in v0.20.0

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

DeleteRouteTable mocks DeleteRouteTable method

func (*MockRouteTableClient) DeleteTags added in v0.20.0

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

DeleteTags mocks DeleteTags method

func (*MockRouteTableClient) DescribeRouteTables added in v0.20.0

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

DescribeRouteTables mocks DescribeRouteTables method

func (*MockRouteTableClient) DisassociateRouteTable added in v0.20.0

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 added in v0.20.0

AuthorizeSecurityGroupEgress mocks AuthorizeSecurityGroupEgress method

func (*MockSecurityGroupClient) AuthorizeSecurityGroupIngress added in v0.20.0

AuthorizeSecurityGroupIngress mocks AuthorizeSecurityGroupIngress method

func (*MockSecurityGroupClient) CreateSecurityGroup added in v0.20.0

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

CreateSecurityGroup mocks CreateSecurityGroup method

func (*MockSecurityGroupClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTagsInput method

func (*MockSecurityGroupClient) DeleteSecurityGroup added in v0.20.0

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

DeleteSecurityGroup mocks DeleteSecurityGroup method

func (*MockSecurityGroupClient) DeleteTags added in v0.20.0

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

DeleteTags mocks DeleteTagsInput method

func (*MockSecurityGroupClient) DescribeSecurityGroups added in v0.20.0

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

DescribeSecurityGroups mocks DescribeSecurityGroups method

func (*MockSecurityGroupClient) RevokeSecurityGroupEgress added in v0.20.0

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

RevokeSecurityGroupEgress mocks RevokeSecurityGroupEgress method

func (*MockSecurityGroupClient) RevokeSecurityGroupIngress added in v0.21.2

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

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 added in v0.20.0

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

CreateSubnet mocks CreateSubnet method

func (*MockSubnetClient) CreateTags added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockSubnetClient) DeleteSubnet added in v0.20.0

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

DeleteSubnet mocks DeleteSubnet method

func (*MockSubnetClient) DeleteTags added in v0.25.0

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

DeleteTags mocks DeleteTags method

func (*MockSubnetClient) DescribeSubnets added in v0.20.0

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

DescribeSubnets mocks DescribeSubnets method

func (*MockSubnetClient) ModifySubnetAttribute added in v0.20.0

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

ModifySubnetAttribute mocks ModifySubnetAttributeInput method

type MockVPCCIDRBlockClient added in v0.18.0

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 added in v0.20.0

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

AssociateVpcCidrBlock mocks AssociateVpcCidrBlockmethod

func (*MockVPCCIDRBlockClient) DescribeVpcs added in v0.20.0

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

DescribeVpcs mocks DescribeVpcs method

func (*MockVPCCIDRBlockClient) DisassociateVpcCidrBlock added in v0.20.0

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 added in v0.20.0

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

CreateTags mocks CreateTags method

func (*MockVPCClient) CreateVpc added in v0.20.0

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

CreateVpc mocks CreateVpc method

func (*MockVPCClient) DeleteTags added in v0.25.0

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

DeleteTags mocks DeleteTags method

func (*MockVPCClient) DeleteVpc added in v0.20.0

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

DeleteVpc mocks DeleteVpc method

func (*MockVPCClient) DescribeVpcAttribute added in v0.20.0

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

DescribeVpcAttribute mocks DescribeVpcAttribute method

func (*MockVPCClient) DescribeVpcs added in v0.20.0

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

DescribeVpcs mocks DescribeVpcs method

func (*MockVPCClient) ModifyVpcAttribute added in v0.20.0

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

ModifyVpcAttribute mocks ModifyVpcAttribute method

func (*MockVPCClient) ModifyVpcTenancy added in v0.20.0

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

ModifyVpcTenancy mocks ModifyVpcTenancy method

type MockVPCEndpointClient added in v0.23.0

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 added in v0.23.0

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

CreateVpcEndpointWithContext mocks CreateVpcEndpointWithContext

func (*MockVPCEndpointClient) DeleteVpcEndpoints added in v0.23.0

DeleteVpcEndpoints mocks DeleteVpcEndpoints

func (*MockVPCEndpointClient) DescribeVpcEndpoints added in v0.23.0

DescribeVpcEndpoints mocks DescribeVpcEndpoints

func (*MockVPCEndpointClient) DescribeVpcEndpointsWithContext added in v0.23.0

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

DescribeVpcEndpointsWithContext mocks DescribeVpcEndpointsWithContext

func (*MockVPCEndpointClient) ModifyVpcEndpointWithContext added in v0.23.0

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