Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAPI
- func (m *MockAPI) DeleteCnsVolumes(ctx context.Context, volume types.CnsVolume) error
- func (m *MockAPI) DeleteFolder(ctx context.Context, f mo.Folder) error
- func (m *MockAPI) DeleteHostZoneObjects(ctx context.Context, infraID string) error
- func (m *MockAPI) DeleteStoragePolicy(ctx context.Context, policyName string) error
- func (m *MockAPI) DeleteTag(ctx context.Context, id string) error
- func (m *MockAPI) DeleteTagCategory(ctx context.Context, id string) error
- func (m *MockAPI) DeleteVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetCnsVolumes(ctx context.Context, infraID string) ([]types.CnsVolume, error)
- func (m *MockAPI) GetVCenterName() string
- func (m *MockAPI) ListFolders(ctx context.Context, tagID string) ([]mo.Folder, error)
- func (m *MockAPI) ListVirtualMachines(ctx context.Context, tagID string) ([]mo.VirtualMachine, error)
- func (m *MockAPI) Logout()
- func (m *MockAPI) StopVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) DeleteCnsVolumes(ctx, volume any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteFolder(ctx, f any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteHostZoneObjects(ctx, infraID any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteStoragePolicy(ctx, policyName any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteTag(ctx, id any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteTagCategory(ctx, id any) *gomock.Call
- func (mr *MockAPIMockRecorder) DeleteVirtualMachine(ctx, vmMO any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetCnsVolumes(ctx, infraID any) *gomock.Call
- func (mr *MockAPIMockRecorder) GetVCenterName() *gomock.Call
- func (mr *MockAPIMockRecorder) ListFolders(ctx, tagID any) *gomock.Call
- func (mr *MockAPIMockRecorder) ListVirtualMachines(ctx, tagID any) *gomock.Call
- func (mr *MockAPIMockRecorder) Logout() *gomock.Call
- func (mr *MockAPIMockRecorder) StopVirtualMachine(ctx, vmMO any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) DeleteCnsVolumes ¶
DeleteCnsVolumes mocks base method.
func (*MockAPI) DeleteFolder ¶
DeleteFolder mocks base method.
func (*MockAPI) DeleteHostZoneObjects ¶
DeleteHostZoneObjects mocks base method.
func (*MockAPI) DeleteStoragePolicy ¶
DeleteStoragePolicy mocks base method.
func (*MockAPI) DeleteTagCategory ¶
DeleteTagCategory mocks base method.
func (*MockAPI) DeleteVirtualMachine ¶
DeleteVirtualMachine mocks base method.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetCnsVolumes ¶
GetCnsVolumes mocks base method.
func (*MockAPI) GetVCenterName ¶
GetVCenterName mocks base method.
func (*MockAPI) ListFolders ¶
ListFolders mocks base method.
func (*MockAPI) ListVirtualMachines ¶
func (m *MockAPI) ListVirtualMachines(ctx context.Context, tagID string) ([]mo.VirtualMachine, error)
ListVirtualMachines mocks base method.
func (*MockAPI) StopVirtualMachine ¶
StopVirtualMachine mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) DeleteCnsVolumes ¶
func (mr *MockAPIMockRecorder) DeleteCnsVolumes(ctx, volume any) *gomock.Call
DeleteCnsVolumes indicates an expected call of DeleteCnsVolumes.
func (*MockAPIMockRecorder) DeleteFolder ¶
func (mr *MockAPIMockRecorder) DeleteFolder(ctx, f any) *gomock.Call
DeleteFolder indicates an expected call of DeleteFolder.
func (*MockAPIMockRecorder) DeleteHostZoneObjects ¶
func (mr *MockAPIMockRecorder) DeleteHostZoneObjects(ctx, infraID any) *gomock.Call
DeleteHostZoneObjects indicates an expected call of DeleteHostZoneObjects.
func (*MockAPIMockRecorder) DeleteStoragePolicy ¶
func (mr *MockAPIMockRecorder) DeleteStoragePolicy(ctx, policyName any) *gomock.Call
DeleteStoragePolicy indicates an expected call of DeleteStoragePolicy.
func (*MockAPIMockRecorder) DeleteTag ¶
func (mr *MockAPIMockRecorder) DeleteTag(ctx, id any) *gomock.Call
DeleteTag indicates an expected call of DeleteTag.
func (*MockAPIMockRecorder) DeleteTagCategory ¶
func (mr *MockAPIMockRecorder) DeleteTagCategory(ctx, id any) *gomock.Call
DeleteTagCategory indicates an expected call of DeleteTagCategory.
func (*MockAPIMockRecorder) DeleteVirtualMachine ¶
func (mr *MockAPIMockRecorder) DeleteVirtualMachine(ctx, vmMO any) *gomock.Call
DeleteVirtualMachine indicates an expected call of DeleteVirtualMachine.
func (*MockAPIMockRecorder) GetCnsVolumes ¶
func (mr *MockAPIMockRecorder) GetCnsVolumes(ctx, infraID any) *gomock.Call
GetCnsVolumes indicates an expected call of GetCnsVolumes.
func (*MockAPIMockRecorder) GetVCenterName ¶
func (mr *MockAPIMockRecorder) GetVCenterName() *gomock.Call
GetVCenterName indicates an expected call of GetVCenterName.
func (*MockAPIMockRecorder) ListFolders ¶
func (mr *MockAPIMockRecorder) ListFolders(ctx, tagID any) *gomock.Call
ListFolders indicates an expected call of ListFolders.
func (*MockAPIMockRecorder) ListVirtualMachines ¶
func (mr *MockAPIMockRecorder) ListVirtualMachines(ctx, tagID any) *gomock.Call
ListVirtualMachines indicates an expected call of ListVirtualMachines.
func (*MockAPIMockRecorder) Logout ¶
func (mr *MockAPIMockRecorder) Logout() *gomock.Call
Logout indicates an expected call of Logout.
func (*MockAPIMockRecorder) StopVirtualMachine ¶
func (mr *MockAPIMockRecorder) StopVirtualMachine(ctx, vmMO any) *gomock.Call
StopVirtualMachine indicates an expected call of StopVirtualMachine.