testing

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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) (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) BatchAddHpcEniPrivateIP added in v1.5.4

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) ([]string, error)

func (*FakeBceCloud) BatchAddPrivateIpCrossSubnet

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

func (*FakeBceCloud) BatchDeleteHpcEniPrivateIP added in v1.5.4

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) error

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) 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) 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) GetHPCEniID added in v1.5.4

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

func (*FakeBceCloud) ListENIs

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

func (*FakeBceCloud) ListERIs added in v1.6.12

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)

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(arg0 context.Context, arg1, arg2 string) (string, error)

AddPrivateIP mocks base method.

func (*MockInterface) AttachENI

func (m *MockInterface) AttachENI(arg0 context.Context, arg1 *eni.EniInstance) error

AttachENI mocks base method.

func (*MockInterface) BBCBatchAddIP

func (m *MockInterface) BBCBatchAddIP(arg0 context.Context, arg1 *bbc.BatchAddIpArgs) (*bbc.BatchAddIpResponse, error)

BBCBatchAddIP mocks base method.

func (*MockInterface) BBCBatchAddIPCrossSubnet

func (m *MockInterface) BBCBatchAddIPCrossSubnet(arg0 context.Context, arg1 *bbc.BatchAddIpCrossSubnetArgs) (*bbc.BatchAddIpResponse, error)

BBCBatchAddIPCrossSubnet mocks base method.

func (*MockInterface) BBCBatchDelIP

func (m *MockInterface) BBCBatchDelIP(arg0 context.Context, arg1 *bbc.BatchDelIpArgs) error

BBCBatchDelIP mocks base method.

func (*MockInterface) BatchAddHpcEniPrivateIP added in v1.5.4

func (m *MockInterface) BatchAddHpcEniPrivateIP(arg0 context.Context, arg1 *hpc.EniBatchPrivateIPArgs) (*hpc.BatchAddPrivateIPResult, error)

BatchAddHpcEniPrivateIP mocks base method.

func (*MockInterface) BatchAddPrivateIP

func (m *MockInterface) BatchAddPrivateIP(arg0 context.Context, arg1 []string, arg2 int, arg3 string) ([]string, error)

BatchAddPrivateIP mocks base method.

func (*MockInterface) BatchAddPrivateIpCrossSubnet

func (m *MockInterface) BatchAddPrivateIpCrossSubnet(arg0 context.Context, arg1, arg2 string, arg3 []string, arg4 int) ([]string, error)

BatchAddPrivateIpCrossSubnet mocks base method.

func (*MockInterface) BatchDeleteHpcEniPrivateIP added in v1.5.4

func (m *MockInterface) BatchDeleteHpcEniPrivateIP(arg0 context.Context, arg1 *hpc.EniBatchDeleteIPArgs) error

BatchDeleteHpcEniPrivateIP mocks base method.

func (*MockInterface) BatchDeletePrivateIP

func (m *MockInterface) BatchDeletePrivateIP(arg0 context.Context, arg1 []string, arg2 string) error

BatchDeletePrivateIP mocks base method.

func (*MockInterface) CreateENI

func (m *MockInterface) CreateENI(arg0 context.Context, arg1 *eni.CreateEniArgs) (string, error)

CreateENI mocks base method.

func (*MockInterface) CreateRouteRule

func (m *MockInterface) CreateRouteRule(arg0 context.Context, arg1 *vpc.CreateRouteRuleArgs) (string, error)

CreateRouteRule mocks base method.

func (*MockInterface) DeleteENI

func (m *MockInterface) DeleteENI(arg0 context.Context, arg1 string) error

DeleteENI mocks base method.

func (*MockInterface) DeletePrivateIP

func (m *MockInterface) DeletePrivateIP(arg0 context.Context, arg1, arg2 string) error

DeletePrivateIP mocks base method.

func (*MockInterface) DeleteRouteRule

func (m *MockInterface) DeleteRouteRule(arg0 context.Context, arg1 string) error

DeleteRouteRule mocks base method.

func (*MockInterface) DescribeSubnet

func (m *MockInterface) DescribeSubnet(arg0 context.Context, arg1 string) (*vpc.Subnet, error)

DescribeSubnet mocks base method.

func (*MockInterface) DetachENI

func (m *MockInterface) DetachENI(arg0 context.Context, arg1 *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(arg0 context.Context, arg1 string) (*bbc.InstanceModel, error)

GetBBCInstanceDetail mocks base method.

func (*MockInterface) GetBBCInstanceENI

func (m *MockInterface) GetBBCInstanceENI(arg0 context.Context, arg1 string) (*bbc.GetInstanceEniResult, error)

GetBBCInstanceENI mocks base method.

func (*MockInterface) GetBCCInstanceDetail

func (m *MockInterface) GetBCCInstanceDetail(arg0 context.Context, arg1 string) (*api.InstanceModel, error)

GetBCCInstanceDetail mocks base method.

func (*MockInterface) GetHPCEniID added in v1.5.4

func (m *MockInterface) GetHPCEniID(arg0 context.Context, arg1 string) (*hpc.EniList, error)

GetHPCEniID mocks base method.

func (*MockInterface) ListENIs

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

ListENIs mocks base method.

func (*MockInterface) ListERIs added in v1.6.12

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

ListERIs mocks base method.

func (*MockInterface) ListRouteTable

func (m *MockInterface) ListRouteTable(arg0 context.Context, arg1, arg2 string) ([]vpc.RouteRule, error)

ListRouteTable mocks base method.

func (*MockInterface) ListSecurityGroup

func (m *MockInterface) ListSecurityGroup(arg0 context.Context, arg1, arg2 string) ([]api.SecurityGroupModel, error)

ListSecurityGroup mocks base method.

func (*MockInterface) ListSubnets

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

ListSubnets mocks base method.

func (*MockInterface) StatENI

func (m *MockInterface) StatENI(arg0 context.Context, arg1 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(arg0, arg1, arg2 interface{}) *gomock.Call

AddPrivateIP indicates an expected call of AddPrivateIP.

func (*MockInterfaceMockRecorder) AttachENI

func (mr *MockInterfaceMockRecorder) AttachENI(arg0, arg1 interface{}) *gomock.Call

AttachENI indicates an expected call of AttachENI.

func (*MockInterfaceMockRecorder) BBCBatchAddIP

func (mr *MockInterfaceMockRecorder) BBCBatchAddIP(arg0, arg1 interface{}) *gomock.Call

BBCBatchAddIP indicates an expected call of BBCBatchAddIP.

func (*MockInterfaceMockRecorder) BBCBatchAddIPCrossSubnet

func (mr *MockInterfaceMockRecorder) BBCBatchAddIPCrossSubnet(arg0, arg1 interface{}) *gomock.Call

BBCBatchAddIPCrossSubnet indicates an expected call of BBCBatchAddIPCrossSubnet.

func (*MockInterfaceMockRecorder) BBCBatchDelIP

func (mr *MockInterfaceMockRecorder) BBCBatchDelIP(arg0, arg1 interface{}) *gomock.Call

BBCBatchDelIP indicates an expected call of BBCBatchDelIP.

func (*MockInterfaceMockRecorder) BatchAddHpcEniPrivateIP added in v1.5.4

func (mr *MockInterfaceMockRecorder) BatchAddHpcEniPrivateIP(arg0, arg1 interface{}) *gomock.Call

BatchAddHpcEniPrivateIP indicates an expected call of BatchAddHpcEniPrivateIP.

func (*MockInterfaceMockRecorder) BatchAddPrivateIP

func (mr *MockInterfaceMockRecorder) BatchAddPrivateIP(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

BatchAddPrivateIP indicates an expected call of BatchAddPrivateIP.

func (*MockInterfaceMockRecorder) BatchAddPrivateIpCrossSubnet

func (mr *MockInterfaceMockRecorder) BatchAddPrivateIpCrossSubnet(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

BatchAddPrivateIpCrossSubnet indicates an expected call of BatchAddPrivateIpCrossSubnet.

func (*MockInterfaceMockRecorder) BatchDeleteHpcEniPrivateIP added in v1.5.4

func (mr *MockInterfaceMockRecorder) BatchDeleteHpcEniPrivateIP(arg0, arg1 interface{}) *gomock.Call

BatchDeleteHpcEniPrivateIP indicates an expected call of BatchDeleteHpcEniPrivateIP.

func (*MockInterfaceMockRecorder) BatchDeletePrivateIP

func (mr *MockInterfaceMockRecorder) BatchDeletePrivateIP(arg0, arg1, arg2 interface{}) *gomock.Call

BatchDeletePrivateIP indicates an expected call of BatchDeletePrivateIP.

func (*MockInterfaceMockRecorder) CreateENI

func (mr *MockInterfaceMockRecorder) CreateENI(arg0, arg1 interface{}) *gomock.Call

CreateENI indicates an expected call of CreateENI.

func (*MockInterfaceMockRecorder) CreateRouteRule

func (mr *MockInterfaceMockRecorder) CreateRouteRule(arg0, arg1 interface{}) *gomock.Call

CreateRouteRule indicates an expected call of CreateRouteRule.

func (*MockInterfaceMockRecorder) DeleteENI

func (mr *MockInterfaceMockRecorder) DeleteENI(arg0, arg1 interface{}) *gomock.Call

DeleteENI indicates an expected call of DeleteENI.

func (*MockInterfaceMockRecorder) DeletePrivateIP

func (mr *MockInterfaceMockRecorder) DeletePrivateIP(arg0, arg1, arg2 interface{}) *gomock.Call

DeletePrivateIP indicates an expected call of DeletePrivateIP.

func (*MockInterfaceMockRecorder) DeleteRouteRule

func (mr *MockInterfaceMockRecorder) DeleteRouteRule(arg0, arg1 interface{}) *gomock.Call

DeleteRouteRule indicates an expected call of DeleteRouteRule.

func (*MockInterfaceMockRecorder) DescribeSubnet

func (mr *MockInterfaceMockRecorder) DescribeSubnet(arg0, arg1 interface{}) *gomock.Call

DescribeSubnet indicates an expected call of DescribeSubnet.

func (*MockInterfaceMockRecorder) DetachENI

func (mr *MockInterfaceMockRecorder) DetachENI(arg0, arg1 interface{}) *gomock.Call

DetachENI indicates an expected call of DetachENI.

func (*MockInterfaceMockRecorder) GetBBCInstanceDetail

func (mr *MockInterfaceMockRecorder) GetBBCInstanceDetail(arg0, arg1 interface{}) *gomock.Call

GetBBCInstanceDetail indicates an expected call of GetBBCInstanceDetail.

func (*MockInterfaceMockRecorder) GetBBCInstanceENI

func (mr *MockInterfaceMockRecorder) GetBBCInstanceENI(arg0, arg1 interface{}) *gomock.Call

GetBBCInstanceENI indicates an expected call of GetBBCInstanceENI.

func (*MockInterfaceMockRecorder) GetBCCInstanceDetail

func (mr *MockInterfaceMockRecorder) GetBCCInstanceDetail(arg0, arg1 interface{}) *gomock.Call

GetBCCInstanceDetail indicates an expected call of GetBCCInstanceDetail.

func (*MockInterfaceMockRecorder) GetHPCEniID added in v1.5.4

func (mr *MockInterfaceMockRecorder) GetHPCEniID(arg0, arg1 interface{}) *gomock.Call

GetHPCEniID indicates an expected call of GetHPCEniID.

func (*MockInterfaceMockRecorder) ListENIs

func (mr *MockInterfaceMockRecorder) ListENIs(arg0, arg1 interface{}) *gomock.Call

ListENIs indicates an expected call of ListENIs.

func (*MockInterfaceMockRecorder) ListERIs added in v1.6.12

func (mr *MockInterfaceMockRecorder) ListERIs(arg0, arg1 interface{}) *gomock.Call

ListERIs indicates an expected call of ListERIs.

func (*MockInterfaceMockRecorder) ListRouteTable

func (mr *MockInterfaceMockRecorder) ListRouteTable(arg0, arg1, arg2 interface{}) *gomock.Call

ListRouteTable indicates an expected call of ListRouteTable.

func (*MockInterfaceMockRecorder) ListSecurityGroup

func (mr *MockInterfaceMockRecorder) ListSecurityGroup(arg0, arg1, arg2 interface{}) *gomock.Call

ListSecurityGroup indicates an expected call of ListSecurityGroup.

func (*MockInterfaceMockRecorder) ListSubnets

func (mr *MockInterfaceMockRecorder) ListSubnets(arg0, arg1 interface{}) *gomock.Call

ListSubnets indicates an expected call of ListSubnets.

func (*MockInterfaceMockRecorder) StatENI

func (mr *MockInterfaceMockRecorder) StatENI(arg0, arg1 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