mock

package
v0.90.16 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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

func (m *MockAPI) DeleteFolder(ctx context.Context, f mo.Folder) error

DeleteFolder mocks base method.

func (*MockAPI) DeleteStoragePolicy

func (m *MockAPI) DeleteStoragePolicy(ctx context.Context, policyName string) error

DeleteStoragePolicy mocks base method.

func (*MockAPI) DeleteTag

func (m *MockAPI) DeleteTag(ctx context.Context, id string) error

DeleteTag mocks base method.

func (*MockAPI) DeleteTagCategory

func (m *MockAPI) DeleteTagCategory(ctx context.Context, id string) error

DeleteTagCategory mocks base method.

func (*MockAPI) DeleteVirtualMachine

func (m *MockAPI) DeleteVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error

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

func (m *MockAPI) ListFolders(ctx context.Context, tagID string) ([]mo.Folder, error)

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

func (m *MockAPI) Logout()

Logout mocks base method.

func (*MockAPI) StopVirtualMachine

func (m *MockAPI) StopVirtualMachine(ctx context.Context, vmMO mo.VirtualMachine) error

StopVirtualMachine mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) DeleteFolder

func (mr *MockAPIMockRecorder) DeleteFolder(ctx, f interface{}) *gomock.Call

DeleteFolder indicates an expected call of DeleteFolder.

func (*MockAPIMockRecorder) DeleteStoragePolicy

func (mr *MockAPIMockRecorder) DeleteStoragePolicy(ctx, policyName interface{}) *gomock.Call

DeleteStoragePolicy indicates an expected call of DeleteStoragePolicy.

func (*MockAPIMockRecorder) DeleteTag

func (mr *MockAPIMockRecorder) DeleteTag(ctx, id interface{}) *gomock.Call

DeleteTag indicates an expected call of DeleteTag.

func (*MockAPIMockRecorder) DeleteTagCategory

func (mr *MockAPIMockRecorder) DeleteTagCategory(ctx, id interface{}) *gomock.Call

DeleteTagCategory indicates an expected call of DeleteTagCategory.

func (*MockAPIMockRecorder) DeleteVirtualMachine

func (mr *MockAPIMockRecorder) DeleteVirtualMachine(ctx, vmMO interface{}) *gomock.Call

DeleteVirtualMachine indicates an expected call of DeleteVirtualMachine.

func (*MockAPIMockRecorder) ListFolders

func (mr *MockAPIMockRecorder) ListFolders(ctx, tagID interface{}) *gomock.Call

ListFolders indicates an expected call of ListFolders.

func (*MockAPIMockRecorder) ListVirtualMachines

func (mr *MockAPIMockRecorder) ListVirtualMachines(ctx, tagID interface{}) *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 interface{}) *gomock.Call

StopVirtualMachine indicates an expected call of StopVirtualMachine.

Jump to

Keyboard shortcuts

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