testing

package
v0.0.0-...-774bb41 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, arg3 bool) (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) BCCBatchAddIP

func (m *MockInterface) BCCBatchAddIP(arg0 context.Context, arg1 *api.BatchAddIpArgs) (*api.BatchAddIpResponse, error)

BCCBatchAddIP mocks base method.

func (*MockInterface) BCCBatchDelIP

func (m *MockInterface) BCCBatchDelIP(arg0 context.Context, arg1 *api.BatchDelIpArgs) error

BCCBatchDelIP mocks base method.

func (*MockInterface) BatchAddHpcEniPrivateIP

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

BatchAddPrivateIP mocks base method.

func (*MockInterface) BatchAddPrivateIpCrossSubnet

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

BatchAddPrivateIpCrossSubnet mocks base method.

func (*MockInterface) BatchDeleteHpcEniPrivateIP

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, arg3 bool) error

BatchDeletePrivateIP mocks base method.

func (*MockInterface) BindENIPublicIP

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

BindENIPublicIP 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, arg3 bool) 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) DescribeVPC

func (m *MockInterface) DescribeVPC(arg0 context.Context, arg1 string) (*vpc.ShowVPCModel, error)

DescribeVPC mocks base method.

func (*MockInterface) DetachENI

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

DetachENI mocks base method.

func (*MockInterface) DirectEIP

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

DirectEIP 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) GetENIQuota

func (m *MockInterface) GetENIQuota(arg0 context.Context, arg1 string) (*eni.EniQuoteInfo, error)

GetENIQuota mocks base method.

func (*MockInterface) GetHPCEniID

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

GetHPCEniID mocks base method.

func (*MockInterface) ListAclEntrys

func (m *MockInterface) ListAclEntrys(arg0 context.Context, arg1 string) ([]vpc.AclEntry, error)

ListAclEntrys mocks base method.

func (*MockInterface) ListBCCInstanceEni

func (m *MockInterface) ListBCCInstanceEni(arg0 context.Context, arg1 string) ([]api.Eni, error)

ListBCCInstanceEni mocks base method.

func (*MockInterface) ListEIPs

func (m *MockInterface) ListEIPs(arg0 context.Context, arg1 eip.ListEipArgs) ([]eip.EipModel, error)

ListEIPs 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

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

ListERIs mocks base method.

func (*MockInterface) ListEsg

func (m *MockInterface) ListEsg(arg0 context.Context, arg1 string) ([]esg.EnterpriseSecurityGroup, error)

ListEsg 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.

func (*MockInterface) UnBindENIPublicIP

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

UnBindENIPublicIP mocks base method.

func (*MockInterface) UnDirectEIP

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

UnDirectEIP 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, arg3 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) BCCBatchAddIP

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

BCCBatchAddIP indicates an expected call of BCCBatchAddIP.

func (*MockInterfaceMockRecorder) BCCBatchDelIP

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

BCCBatchDelIP indicates an expected call of BCCBatchDelIP.

func (*MockInterfaceMockRecorder) BatchAddHpcEniPrivateIP

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, arg4 interface{}) *gomock.Call

BatchAddPrivateIP indicates an expected call of BatchAddPrivateIP.

func (*MockInterfaceMockRecorder) BatchAddPrivateIpCrossSubnet

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

BatchAddPrivateIpCrossSubnet indicates an expected call of BatchAddPrivateIpCrossSubnet.

func (*MockInterfaceMockRecorder) BatchDeleteHpcEniPrivateIP

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, arg3 interface{}) *gomock.Call

BatchDeletePrivateIP indicates an expected call of BatchDeletePrivateIP.

func (*MockInterfaceMockRecorder) BindENIPublicIP

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

BindENIPublicIP indicates an expected call of BindENIPublicIP.

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, arg3 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) DescribeVPC

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

DescribeVPC indicates an expected call of DescribeVPC.

func (*MockInterfaceMockRecorder) DetachENI

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

DetachENI indicates an expected call of DetachENI.

func (*MockInterfaceMockRecorder) DirectEIP

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

DirectEIP indicates an expected call of DirectEIP.

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

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

GetENIQuota indicates an expected call of GetENIQuota.

func (*MockInterfaceMockRecorder) GetHPCEniID

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

GetHPCEniID indicates an expected call of GetHPCEniID.

func (*MockInterfaceMockRecorder) ListAclEntrys

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

ListAclEntrys indicates an expected call of ListAclEntrys.

func (*MockInterfaceMockRecorder) ListBCCInstanceEni

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

ListBCCInstanceEni indicates an expected call of ListBCCInstanceEni.

func (*MockInterfaceMockRecorder) ListEIPs

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

ListEIPs indicates an expected call of ListEIPs.

func (*MockInterfaceMockRecorder) ListENIs

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

ListENIs indicates an expected call of ListENIs.

func (*MockInterfaceMockRecorder) ListERIs

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

ListERIs indicates an expected call of ListERIs.

func (*MockInterfaceMockRecorder) ListEsg

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

ListEsg indicates an expected call of ListEsg.

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.

func (*MockInterfaceMockRecorder) UnBindENIPublicIP

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

UnBindENIPublicIP indicates an expected call of UnBindENIPublicIP.

func (*MockInterfaceMockRecorder) UnDirectEIP

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

UnDirectEIP indicates an expected call of UnDirectEIP.

Jump to

Keyboard shortcuts

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