mocks

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockGovcClient

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

MockGovcClient is a mock of GovcClient interface.

func NewMockGovcClient

func NewMockGovcClient(ctrl *gomock.Controller) *MockGovcClient

NewMockGovcClient creates a new mock instance.

func (*MockGovcClient) AddTag

func (m *MockGovcClient) AddTag(ctx context.Context, path, tag string) error

AddTag mocks base method.

func (*MockGovcClient) CreateCategoryForVM

func (m *MockGovcClient) CreateCategoryForVM(ctx context.Context, name string) error

CreateCategoryForVM mocks base method.

func (*MockGovcClient) CreateLibrary

func (m *MockGovcClient) CreateLibrary(ctx context.Context, datastore, library string) error

CreateLibrary mocks base method.

func (*MockGovcClient) CreateTag

func (m *MockGovcClient) CreateTag(ctx context.Context, tag, category string) error

CreateTag mocks base method.

func (*MockGovcClient) DeleteLibraryElement added in v0.6.0

func (m *MockGovcClient) DeleteLibraryElement(ctx context.Context, element string) error

DeleteLibraryElement mocks base method.

func (*MockGovcClient) DeployTemplateFromLibrary

func (m *MockGovcClient) DeployTemplateFromLibrary(ctx context.Context, templateDir, templateName, library, datacenter, resourcePool string, resizeDisk2 bool) error

DeployTemplateFromLibrary mocks base method.

func (*MockGovcClient) EXPECT

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

func (*MockGovcClient) GetLibraryElementContentVersion added in v0.6.0

func (m *MockGovcClient) GetLibraryElementContentVersion(ctx context.Context, element string) (string, error)

GetLibraryElementContentVersion mocks base method.

func (*MockGovcClient) ImportTemplate

func (m *MockGovcClient) ImportTemplate(ctx context.Context, library, ovaURL, name string) error

ImportTemplate mocks base method.

func (*MockGovcClient) LibraryElementExists

func (m *MockGovcClient) LibraryElementExists(ctx context.Context, library string) (bool, error)

LibraryElementExists mocks base method.

func (*MockGovcClient) ListCategories

func (m *MockGovcClient) ListCategories(ctx context.Context) ([]string, error)

ListCategories mocks base method.

func (*MockGovcClient) ListTags

func (m *MockGovcClient) ListTags(ctx context.Context) ([]string, error)

ListTags mocks base method.

func (*MockGovcClient) SearchTemplate

func (m *MockGovcClient) SearchTemplate(ctx context.Context, datacenter string, machineConfig *v1alpha1.VSphereMachineConfig) (string, error)

SearchTemplate mocks base method.

type MockGovcClientMockRecorder

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

MockGovcClientMockRecorder is the mock recorder for MockGovcClient.

func (*MockGovcClientMockRecorder) AddTag

func (mr *MockGovcClientMockRecorder) AddTag(ctx, path, tag interface{}) *gomock.Call

AddTag indicates an expected call of AddTag.

func (*MockGovcClientMockRecorder) CreateCategoryForVM

func (mr *MockGovcClientMockRecorder) CreateCategoryForVM(ctx, name interface{}) *gomock.Call

CreateCategoryForVM indicates an expected call of CreateCategoryForVM.

func (*MockGovcClientMockRecorder) CreateLibrary

func (mr *MockGovcClientMockRecorder) CreateLibrary(ctx, datastore, library interface{}) *gomock.Call

CreateLibrary indicates an expected call of CreateLibrary.

func (*MockGovcClientMockRecorder) CreateTag

func (mr *MockGovcClientMockRecorder) CreateTag(ctx, tag, category interface{}) *gomock.Call

CreateTag indicates an expected call of CreateTag.

func (*MockGovcClientMockRecorder) DeleteLibraryElement added in v0.6.0

func (mr *MockGovcClientMockRecorder) DeleteLibraryElement(ctx, element interface{}) *gomock.Call

DeleteLibraryElement indicates an expected call of DeleteLibraryElement.

func (*MockGovcClientMockRecorder) DeployTemplateFromLibrary

func (mr *MockGovcClientMockRecorder) DeployTemplateFromLibrary(ctx, templateDir, templateName, library, datacenter, resourcePool, resizeDisk2 interface{}) *gomock.Call

DeployTemplateFromLibrary indicates an expected call of DeployTemplateFromLibrary.

func (*MockGovcClientMockRecorder) GetLibraryElementContentVersion added in v0.6.0

func (mr *MockGovcClientMockRecorder) GetLibraryElementContentVersion(ctx, element interface{}) *gomock.Call

GetLibraryElementContentVersion indicates an expected call of GetLibraryElementContentVersion.

func (*MockGovcClientMockRecorder) ImportTemplate

func (mr *MockGovcClientMockRecorder) ImportTemplate(ctx, library, ovaURL, name interface{}) *gomock.Call

ImportTemplate indicates an expected call of ImportTemplate.

func (*MockGovcClientMockRecorder) LibraryElementExists

func (mr *MockGovcClientMockRecorder) LibraryElementExists(ctx, library interface{}) *gomock.Call

LibraryElementExists indicates an expected call of LibraryElementExists.

func (*MockGovcClientMockRecorder) ListCategories

func (mr *MockGovcClientMockRecorder) ListCategories(ctx interface{}) *gomock.Call

ListCategories indicates an expected call of ListCategories.

func (*MockGovcClientMockRecorder) ListTags

func (mr *MockGovcClientMockRecorder) ListTags(ctx interface{}) *gomock.Call

ListTags indicates an expected call of ListTags.

func (*MockGovcClientMockRecorder) SearchTemplate

func (mr *MockGovcClientMockRecorder) SearchTemplate(ctx, datacenter, machineConfig interface{}) *gomock.Call

SearchTemplate indicates an expected call of SearchTemplate.

Jump to

Keyboard shortcuts

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