testing

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFakeBceCloud

func NewFakeBceCloud() cloud.Interface

Types

type FakeBceCloud

type FakeBceCloud struct {
	// contains filtered or unexported fields
}

func (*FakeBceCloud) AddPrivateIP

func (fake *FakeBceCloud) AddPrivateIP(ctx context.Context, privateIP string, eniID string, isIpv6 bool) (string, error)

func (*FakeBceCloud) AttachENI

func (fake *FakeBceCloud) AttachENI(ctx context.Context, args *eni.EniInstance) error

func (*FakeBceCloud) BBCBatchAddIP

func (fake *FakeBceCloud) BBCBatchAddIP(ctx context.Context, args *bbc.BatchAddIpArgs) (*bbc.BatchAddIpResponse, error)

func (*FakeBceCloud) BBCBatchAddIPCrossSubnet

func (fake *FakeBceCloud) BBCBatchAddIPCrossSubnet(ctx context.Context, args *bbc.BatchAddIpCrossSubnetArgs) (*bbc.BatchAddIpResponse, error)

func (*FakeBceCloud) BBCBatchDelIP

func (fake *FakeBceCloud) BBCBatchDelIP(ctx context.Context, args *bbc.BatchDelIpArgs) error

func (*FakeBceCloud) BCCBatchAddIP

BCCBatchAddIP implements cloud.Interface.

func (*FakeBceCloud) BCCBatchDelIP

func (*FakeBceCloud) BCCBatchDelIP(ctx context.Context, args *bccapi.BatchDelIpArgs) error

BCCBatchDelIP implements cloud.Interface.

func (*FakeBceCloud) BatchAddHpcEniPrivateIP

func (fake *FakeBceCloud) BatchAddHpcEniPrivateIP(ctx context.Context, args *hpc.EniBatchPrivateIPArgs) (*hpc.BatchAddPrivateIPResult, error)

func (*FakeBceCloud) BatchAddPrivateIP

func (fake *FakeBceCloud) BatchAddPrivateIP(ctx context.Context, privateIPs []string, count int, eniID string, isIpv6 bool) ([]string, error)

func (*FakeBceCloud) BatchAddPrivateIpCrossSubnet

func (fake *FakeBceCloud) BatchAddPrivateIpCrossSubnet(ctx context.Context, eniID, subnetID string, privateIPs []string, count int, isIpv6 bool) ([]string, error)

func (*FakeBceCloud) BatchDeleteHpcEniPrivateIP

func (fake *FakeBceCloud) BatchDeleteHpcEniPrivateIP(ctx context.Context, args *hpc.EniBatchDeleteIPArgs) error

func (*FakeBceCloud) BatchDeletePrivateIP

func (fake *FakeBceCloud) BatchDeletePrivateIP(ctx context.Context, privateIPs []string, eniID string, isIpv6 bool) error

func (*FakeBceCloud) BindENIPublicIP

func (*FakeBceCloud) BindENIPublicIP(ctx context.Context, privateIP string, publicIP string, eniID string) error

BindENIPublicIP implements cloud.Interface

func (*FakeBceCloud) CreateENI

func (fake *FakeBceCloud) CreateENI(ctx context.Context, args *eni.CreateEniArgs) (string, error)

func (*FakeBceCloud) CreateRouteRule

func (fake *FakeBceCloud) CreateRouteRule(ctx context.Context, args *vpc.CreateRouteRuleArgs) (string, error)

func (*FakeBceCloud) DeleteENI

func (fake *FakeBceCloud) DeleteENI(ctx context.Context, eniID string) error

func (*FakeBceCloud) DeletePrivateIP

func (fake *FakeBceCloud) DeletePrivateIP(ctx context.Context, privateIP string, eniID string, isIpv6 bool) error

func (*FakeBceCloud) DeleteRouteRule

func (fake *FakeBceCloud) DeleteRouteRule(ctx context.Context, routeID string) error

func (*FakeBceCloud) DescribeSubnet

func (fake *FakeBceCloud) DescribeSubnet(ctx context.Context, subnetID string) (*vpc.Subnet, error)

func (*FakeBceCloud) DetachENI

func (fake *FakeBceCloud) DetachENI(ctx context.Context, args *eni.EniInstance) error

func (*FakeBceCloud) DirectEIP

func (*FakeBceCloud) DirectEIP(ctx context.Context, eip string) error

DirectEIP implements cloud.Interface

func (*FakeBceCloud) GetBBCInstanceDetail

func (fake *FakeBceCloud) GetBBCInstanceDetail(ctx context.Context, instanceID string) (*bbc.InstanceModel, error)

func (*FakeBceCloud) GetBBCInstanceENI

func (fake *FakeBceCloud) GetBBCInstanceENI(ctx context.Context, instanceID string) (*bbc.GetInstanceEniResult, error)

func (*FakeBceCloud) GetBCCInstanceDetail

func (fake *FakeBceCloud) GetBCCInstanceDetail(ctx context.Context, instanceID string) (*bccapi.InstanceModel, error)

func (*FakeBceCloud) GetENIQuota

func (*FakeBceCloud) GetENIQuota(ctx context.Context, instanceID string) (*eni.EniQuoteInfo, error)

GetENIQuota implements cloud.Interface.

func (*FakeBceCloud) GetHPCEniID

func (fake *FakeBceCloud) GetHPCEniID(ctx context.Context, instanceID string) (*hpc.EniList, error)

func (*FakeBceCloud) ListBCCInstanceEni

func (*FakeBceCloud) ListBCCInstanceEni(ctx context.Context, instanceID string) ([]bccapi.Eni, error)

ListBCCInstanceEni implements cloud.Interface.

func (*FakeBceCloud) ListEIPs

func (*FakeBceCloud) ListEIPs(ctx context.Context, args eip.ListEipArgs) ([]eip.EipModel, error)

ListEIPs implements cloud.Interface

func (*FakeBceCloud) ListENIs

func (fake *FakeBceCloud) ListENIs(ctx context.Context, args eni.ListEniArgs) ([]eni.Eni, error)

func (*FakeBceCloud) ListERIs

func (fake *FakeBceCloud) ListERIs(ctx context.Context, args eni.ListEniArgs) ([]eni.Eni, error)

func (*FakeBceCloud) ListRouteTable

func (fake *FakeBceCloud) ListRouteTable(ctx context.Context, vpcID string, routeTableID string) ([]vpc.RouteRule, error)

func (*FakeBceCloud) ListSecurityGroup

func (fake *FakeBceCloud) ListSecurityGroup(ctx context.Context, vpcID, instanceID string) ([]bccapi.SecurityGroupModel, error)

func (*FakeBceCloud) ListSubnets

func (fake *FakeBceCloud) ListSubnets(ctx context.Context, args *vpc.ListSubnetArgs) ([]vpc.Subnet, error)

func (*FakeBceCloud) StatENI

func (fake *FakeBceCloud) StatENI(ctx context.Context, eniID string) (*eni.Eni, error)

func (*FakeBceCloud) UnBindENIPublicIP

func (*FakeBceCloud) UnBindENIPublicIP(ctx context.Context, publicIP string, eniID string) error

UnBindENIPublicIP implements cloud.Interface

func (*FakeBceCloud) UnDirectEIP

func (*FakeBceCloud) UnDirectEIP(ctx context.Context, eip string) error

UnDirectEIP implements cloud.Interface

type MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance

func (*MockInterface) AddPrivateIP

func (m *MockInterface) AddPrivateIP(ctx context.Context, privateIP, eniID string) (string, error)

AddPrivateIP mocks base method

func (*MockInterface) AttachENI

func (m *MockInterface) AttachENI(ctx context.Context, args *eni.EniInstance) error

AttachENI mocks base method

func (*MockInterface) BBCBatchAddIP

func (m *MockInterface) BBCBatchAddIP(ctx context.Context, args *bbc.BatchAddIpArgs) (*bbc.BatchAddIpResponse, error)

BBCBatchAddIP mocks base method

func (*MockInterface) BBCBatchAddIPCrossSubnet

func (m *MockInterface) BBCBatchAddIPCrossSubnet(ctx context.Context, args *bbc.BatchAddIpCrossSubnetArgs) (*bbc.BatchAddIpResponse, error)

BBCBatchAddIPCrossSubnet mocks base method

func (*MockInterface) BBCBatchDelIP

func (m *MockInterface) BBCBatchDelIP(ctx context.Context, args *bbc.BatchDelIpArgs) error

BBCBatchDelIP mocks base method

func (*MockInterface) BatchAddHpcEniPrivateIP

func (m *MockInterface) BatchAddHpcEniPrivateIP(ctx context.Context, args *hpc.EniBatchPrivateIPArgs) (*hpc.BatchAddPrivateIPResult, error)

BatchAddHpcEniPrivateIP mocks base method

func (*MockInterface) BatchAddPrivateIP

func (m *MockInterface) BatchAddPrivateIP(ctx context.Context, privateIPs []string, count int, eniID string) ([]string, error)

BatchAddPrivateIP mocks base method

func (*MockInterface) BatchAddPrivateIpCrossSubnet

func (m *MockInterface) BatchAddPrivateIpCrossSubnet(ctx context.Context, eniID, subnetID string, privateIPs []string, count int) ([]string, error)

BatchAddPrivateIpCrossSubnet mocks base method

func (*MockInterface) BatchDeleteHpcEniPrivateIP

func (m *MockInterface) BatchDeleteHpcEniPrivateIP(ctx context.Context, args *hpc.EniBatchDeleteIPArgs) error

BatchDeleteHpcEniPrivateIP mocks base method

func (*MockInterface) BatchDeletePrivateIP

func (m *MockInterface) BatchDeletePrivateIP(ctx context.Context, privateIPs []string, eniID string) error

BatchDeletePrivateIP mocks base method

func (*MockInterface) CreateENI

func (m *MockInterface) CreateENI(ctx context.Context, args *eni.CreateEniArgs) (string, error)

CreateENI mocks base method

func (*MockInterface) CreateRouteRule

func (m *MockInterface) CreateRouteRule(ctx context.Context, args *vpc.CreateRouteRuleArgs) (string, error)

CreateRouteRule mocks base method

func (*MockInterface) DeleteENI

func (m *MockInterface) DeleteENI(ctx context.Context, eniID string) error

DeleteENI mocks base method

func (*MockInterface) DeletePrivateIP

func (m *MockInterface) DeletePrivateIP(ctx context.Context, privateIP, eniID string) error

DeletePrivateIP mocks base method

func (*MockInterface) DeleteRouteRule

func (m *MockInterface) DeleteRouteRule(ctx context.Context, routeID string) error

DeleteRouteRule mocks base method

func (*MockInterface) DescribeSubnet

func (m *MockInterface) DescribeSubnet(ctx context.Context, subnetID string) (*vpc.Subnet, error)

DescribeSubnet mocks base method

func (*MockInterface) DetachENI

func (m *MockInterface) DetachENI(ctx context.Context, args *eni.EniInstance) error

DetachENI mocks base method

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInterface) GetBBCInstanceDetail

func (m *MockInterface) GetBBCInstanceDetail(ctx context.Context, instanceID string) (*bbc.InstanceModel, error)

GetBBCInstanceDetail mocks base method

func (*MockInterface) GetBBCInstanceENI

func (m *MockInterface) GetBBCInstanceENI(ctx context.Context, instanceID string) (*bbc.GetInstanceEniResult, error)

GetBBCInstanceENI mocks base method

func (*MockInterface) GetBCCInstanceDetail

func (m *MockInterface) GetBCCInstanceDetail(ctx context.Context, instanceID string) (*api.InstanceModel, error)

GetBCCInstanceDetail mocks base method

func (*MockInterface) GetHPCEniID

func (m *MockInterface) GetHPCEniID(ctx context.Context, instanceID string) (*hpc.EniList, error)

GetHPCEniID mocks base method

func (*MockInterface) ListENIs

func (m *MockInterface) ListENIs(ctx context.Context, args eni.ListEniArgs) ([]eni.Eni, error)

ListENIs mocks base method

func (*MockInterface) ListERIs

func (m *MockInterface) ListERIs(ctx context.Context, args eni.ListEniArgs) ([]eni.Eni, error)

ListERIs mocks base method

func (*MockInterface) ListRouteTable

func (m *MockInterface) ListRouteTable(ctx context.Context, vpcID, routeTableID string) ([]vpc.RouteRule, error)

ListRouteTable mocks base method

func (*MockInterface) ListSecurityGroup

func (m *MockInterface) ListSecurityGroup(ctx context.Context, vpcID, instanceID string) ([]api.SecurityGroupModel, error)

ListSecurityGroup mocks base method

func (*MockInterface) ListSubnets

func (m *MockInterface) ListSubnets(ctx context.Context, args *vpc.ListSubnetArgs) ([]vpc.Subnet, error)

ListSubnets mocks base method

func (*MockInterface) StatENI

func (m *MockInterface) StatENI(ctx context.Context, eniID string) (*eni.Eni, error)

StatENI mocks base method

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface

func (*MockInterfaceMockRecorder) AddPrivateIP

func (mr *MockInterfaceMockRecorder) AddPrivateIP(ctx, privateIP, eniID interface{}) *gomock.Call

AddPrivateIP indicates an expected call of AddPrivateIP

func (*MockInterfaceMockRecorder) AttachENI

func (mr *MockInterfaceMockRecorder) AttachENI(ctx, args interface{}) *gomock.Call

AttachENI indicates an expected call of AttachENI

func (*MockInterfaceMockRecorder) BBCBatchAddIP

func (mr *MockInterfaceMockRecorder) BBCBatchAddIP(ctx, args interface{}) *gomock.Call

BBCBatchAddIP indicates an expected call of BBCBatchAddIP

func (*MockInterfaceMockRecorder) BBCBatchAddIPCrossSubnet

func (mr *MockInterfaceMockRecorder) BBCBatchAddIPCrossSubnet(ctx, args interface{}) *gomock.Call

BBCBatchAddIPCrossSubnet indicates an expected call of BBCBatchAddIPCrossSubnet

func (*MockInterfaceMockRecorder) BBCBatchDelIP

func (mr *MockInterfaceMockRecorder) BBCBatchDelIP(ctx, args interface{}) *gomock.Call

BBCBatchDelIP indicates an expected call of BBCBatchDelIP

func (*MockInterfaceMockRecorder) BatchAddHpcEniPrivateIP

func (mr *MockInterfaceMockRecorder) BatchAddHpcEniPrivateIP(ctx, args interface{}) *gomock.Call

BatchAddHpcEniPrivateIP indicates an expected call of BatchAddHpcEniPrivateIP

func (*MockInterfaceMockRecorder) BatchAddPrivateIP

func (mr *MockInterfaceMockRecorder) BatchAddPrivateIP(ctx, privateIPs, count, eniID interface{}) *gomock.Call

BatchAddPrivateIP indicates an expected call of BatchAddPrivateIP

func (*MockInterfaceMockRecorder) BatchAddPrivateIpCrossSubnet

func (mr *MockInterfaceMockRecorder) BatchAddPrivateIpCrossSubnet(ctx, eniID, subnetID, privateIPs, count interface{}) *gomock.Call

BatchAddPrivateIpCrossSubnet indicates an expected call of BatchAddPrivateIpCrossSubnet

func (*MockInterfaceMockRecorder) BatchDeleteHpcEniPrivateIP

func (mr *MockInterfaceMockRecorder) BatchDeleteHpcEniPrivateIP(ctx, args interface{}) *gomock.Call

BatchDeleteHpcEniPrivateIP indicates an expected call of BatchDeleteHpcEniPrivateIP

func (*MockInterfaceMockRecorder) BatchDeletePrivateIP

func (mr *MockInterfaceMockRecorder) BatchDeletePrivateIP(ctx, privateIPs, eniID interface{}) *gomock.Call

BatchDeletePrivateIP indicates an expected call of BatchDeletePrivateIP

func (*MockInterfaceMockRecorder) CreateENI

func (mr *MockInterfaceMockRecorder) CreateENI(ctx, args interface{}) *gomock.Call

CreateENI indicates an expected call of CreateENI

func (*MockInterfaceMockRecorder) CreateRouteRule

func (mr *MockInterfaceMockRecorder) CreateRouteRule(ctx, args interface{}) *gomock.Call

CreateRouteRule indicates an expected call of CreateRouteRule

func (*MockInterfaceMockRecorder) DeleteENI

func (mr *MockInterfaceMockRecorder) DeleteENI(ctx, eniID interface{}) *gomock.Call

DeleteENI indicates an expected call of DeleteENI

func (*MockInterfaceMockRecorder) DeletePrivateIP

func (mr *MockInterfaceMockRecorder) DeletePrivateIP(ctx, privateIP, eniID interface{}) *gomock.Call

DeletePrivateIP indicates an expected call of DeletePrivateIP

func (*MockInterfaceMockRecorder) DeleteRouteRule

func (mr *MockInterfaceMockRecorder) DeleteRouteRule(ctx, routeID interface{}) *gomock.Call

DeleteRouteRule indicates an expected call of DeleteRouteRule

func (*MockInterfaceMockRecorder) DescribeSubnet

func (mr *MockInterfaceMockRecorder) DescribeSubnet(ctx, subnetID interface{}) *gomock.Call

DescribeSubnet indicates an expected call of DescribeSubnet

func (*MockInterfaceMockRecorder) DetachENI

func (mr *MockInterfaceMockRecorder) DetachENI(ctx, args interface{}) *gomock.Call

DetachENI indicates an expected call of DetachENI

func (*MockInterfaceMockRecorder) GetBBCInstanceDetail

func (mr *MockInterfaceMockRecorder) GetBBCInstanceDetail(ctx, instanceID interface{}) *gomock.Call

GetBBCInstanceDetail indicates an expected call of GetBBCInstanceDetail

func (*MockInterfaceMockRecorder) GetBBCInstanceENI

func (mr *MockInterfaceMockRecorder) GetBBCInstanceENI(ctx, instanceID interface{}) *gomock.Call

GetBBCInstanceENI indicates an expected call of GetBBCInstanceENI

func (*MockInterfaceMockRecorder) GetBCCInstanceDetail

func (mr *MockInterfaceMockRecorder) GetBCCInstanceDetail(ctx, instanceID interface{}) *gomock.Call

GetBCCInstanceDetail indicates an expected call of GetBCCInstanceDetail

func (*MockInterfaceMockRecorder) GetHPCEniID

func (mr *MockInterfaceMockRecorder) GetHPCEniID(ctx, instanceID interface{}) *gomock.Call

GetHPCEniID indicates an expected call of GetHPCEniID

func (*MockInterfaceMockRecorder) ListENIs

func (mr *MockInterfaceMockRecorder) ListENIs(ctx, args interface{}) *gomock.Call

ListENIs indicates an expected call of ListENIs

func (*MockInterfaceMockRecorder) ListERIs

func (mr *MockInterfaceMockRecorder) ListERIs(ctx, args interface{}) *gomock.Call

ListERIs indicates an expected call of ListERIs

func (*MockInterfaceMockRecorder) ListRouteTable

func (mr *MockInterfaceMockRecorder) ListRouteTable(ctx, vpcID, routeTableID interface{}) *gomock.Call

ListRouteTable indicates an expected call of ListRouteTable

func (*MockInterfaceMockRecorder) ListSecurityGroup

func (mr *MockInterfaceMockRecorder) ListSecurityGroup(ctx, vpcID, instanceID interface{}) *gomock.Call

ListSecurityGroup indicates an expected call of ListSecurityGroup

func (*MockInterfaceMockRecorder) ListSubnets

func (mr *MockInterfaceMockRecorder) ListSubnets(ctx, args interface{}) *gomock.Call

ListSubnets indicates an expected call of ListSubnets

func (*MockInterfaceMockRecorder) StatENI

func (mr *MockInterfaceMockRecorder) StatENI(ctx, eniID interface{}) *gomock.Call

StatENI indicates an expected call of StatENI

Jump to

Keyboard shortcuts

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