mocks

package
v0.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 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) AddUserToGroup added in v0.12.0

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

AddUserToGroup mocks base method.

func (*MockGovcClient) CreateCategoryForVM

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

CreateCategoryForVM mocks base method.

func (*MockGovcClient) CreateGroup added in v0.12.0

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

CreateGroup mocks base method.

func (*MockGovcClient) CreateLibrary

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

CreateLibrary mocks base method.

func (*MockGovcClient) CreateRole added in v0.12.0

func (m *MockGovcClient) CreateRole(ctx context.Context, name string, privileges []string) error

CreateRole mocks base method.

func (*MockGovcClient) CreateTag

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

CreateTag mocks base method.

func (*MockGovcClient) CreateUser added in v0.12.0

func (m *MockGovcClient) CreateUser(ctx context.Context, username, password string) error

CreateUser 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, datastore, network, resourcePool string, resizeBRDisk 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) GroupExists added in v0.12.0

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

GroupExists 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) ([]executables.Tag, error)

ListTags mocks base method.

func (*MockGovcClient) RoleExists added in v0.12.0

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

RoleExists mocks base method.

func (*MockGovcClient) SearchTemplate

func (m *MockGovcClient) SearchTemplate(ctx context.Context, datacenter, template string) (string, error)

SearchTemplate mocks base method.

func (*MockGovcClient) SetGroupRoleOnObject added in v0.12.0

func (m *MockGovcClient) SetGroupRoleOnObject(ctx context.Context, principal, role, object, domain string) error

SetGroupRoleOnObject mocks base method.

func (*MockGovcClient) UserExists added in v0.12.0

func (m *MockGovcClient) UserExists(ctx context.Context, username string) (bool, error)

UserExists 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) AddUserToGroup added in v0.12.0

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

AddUserToGroup indicates an expected call of AddUserToGroup.

func (*MockGovcClientMockRecorder) CreateCategoryForVM

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

CreateCategoryForVM indicates an expected call of CreateCategoryForVM.

func (*MockGovcClientMockRecorder) CreateGroup added in v0.12.0

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

CreateGroup indicates an expected call of CreateGroup.

func (*MockGovcClientMockRecorder) CreateLibrary

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

CreateLibrary indicates an expected call of CreateLibrary.

func (*MockGovcClientMockRecorder) CreateRole added in v0.12.0

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

CreateRole indicates an expected call of CreateRole.

func (*MockGovcClientMockRecorder) CreateTag

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

CreateTag indicates an expected call of CreateTag.

func (*MockGovcClientMockRecorder) CreateUser added in v0.12.0

func (mr *MockGovcClientMockRecorder) CreateUser(ctx, username, password interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

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, datastore, network, resourcePool, resizeBRDisk 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) GroupExists added in v0.12.0

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

GroupExists indicates an expected call of GroupExists.

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) RoleExists added in v0.12.0

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

RoleExists indicates an expected call of RoleExists.

func (*MockGovcClientMockRecorder) SearchTemplate

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

SearchTemplate indicates an expected call of SearchTemplate.

func (*MockGovcClientMockRecorder) SetGroupRoleOnObject added in v0.12.0

func (mr *MockGovcClientMockRecorder) SetGroupRoleOnObject(ctx, principal, role, object, domain interface{}) *gomock.Call

SetGroupRoleOnObject indicates an expected call of SetGroupRoleOnObject.

func (*MockGovcClientMockRecorder) UserExists added in v0.12.0

func (mr *MockGovcClientMockRecorder) UserExists(ctx, username interface{}) *gomock.Call

UserExists indicates an expected call of UserExists.

Jump to

Keyboard shortcuts

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