mock

package
v0.9.153 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(server *simulator.Server) (*vim25.Client, *session.Manager, error)

GetClient returns a vim25 client which connects to and trusts the simulator

func GetFinder

func GetFinder(server *simulator.Server) (*find.Finder, error)

GetFinder returns an object finder

func StartSimulator

func StartSimulator(setVersionToSupported bool) (*simulator.Server, error)

StartSimulator starts an instance of the simulator which listens on 127.0.0.1. Call GetClient to retrieve a vim25.client which will connect to and trust this simulator

Types

type MockAuthManager

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

MockAuthManager is a mock of AuthManager interface.

func NewMockAuthManager

func NewMockAuthManager(ctrl *gomock.Controller) *MockAuthManager

NewMockAuthManager creates a new mock instance.

func (*MockAuthManager) EXPECT

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

func (*MockAuthManager) FetchUserPrivilegeOnEntities

func (m *MockAuthManager) FetchUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string) ([]types.UserPrivilegeResult, error)

FetchUserPrivilegeOnEntities mocks base method.

func (*MockAuthManager) Properties

func (m *MockAuthManager) Properties(ctx context.Context, r types.ManagedObjectReference, ps []string, dst interface{}) error

Properties mocks base method.

func (*MockAuthManager) Reference

Reference mocks base method.

type MockAuthManagerMockRecorder

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

MockAuthManagerMockRecorder is the mock recorder for MockAuthManager.

func (*MockAuthManagerMockRecorder) FetchUserPrivilegeOnEntities

func (mr *MockAuthManagerMockRecorder) FetchUserPrivilegeOnEntities(ctx, entities, userName interface{}) *gomock.Call

FetchUserPrivilegeOnEntities indicates an expected call of FetchUserPrivilegeOnEntities.

func (*MockAuthManagerMockRecorder) Properties

func (mr *MockAuthManagerMockRecorder) Properties(ctx, r, ps, dst interface{}) *gomock.Call

Properties indicates an expected call of Properties.

func (*MockAuthManagerMockRecorder) Reference

func (mr *MockAuthManagerMockRecorder) Reference() *gomock.Call

Reference indicates an expected call of Reference.

type MockSessionManager

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

MockSessionManager is a mock of SessionManager interface.

func NewMockSessionManager

func NewMockSessionManager(ctrl *gomock.Controller) *MockSessionManager

NewMockSessionManager creates a new mock instance.

func (*MockSessionManager) EXPECT

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

func (*MockSessionManager) UserSession

func (m *MockSessionManager) UserSession(ctx context.Context) (*types.UserSession, error)

UserSession mocks base method.

type MockSessionManagerMockRecorder

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

MockSessionManagerMockRecorder is the mock recorder for MockSessionManager.

func (*MockSessionManagerMockRecorder) UserSession

func (mr *MockSessionManagerMockRecorder) UserSession(ctx interface{}) *gomock.Call

UserSession indicates an expected call of UserSession.

type MockTagManager added in v0.9.153

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

MockTagManager is a mock of TagManager interface.

func NewMockTagManager added in v0.9.153

func NewMockTagManager(ctrl *gomock.Controller) *MockTagManager

NewMockTagManager creates a new mock instance.

func (*MockTagManager) EXPECT added in v0.9.153

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

func (*MockTagManager) GetAttachedTags added in v0.9.153

func (m *MockTagManager) GetAttachedTags(ctx context.Context, ref mo.Reference) ([]tags.Tag, error)

GetAttachedTags mocks base method.

func (*MockTagManager) GetAttachedTagsOnObjects added in v0.9.153

func (m *MockTagManager) GetAttachedTagsOnObjects(ctx context.Context, objectID []mo.Reference) ([]tags.AttachedTags, error)

GetAttachedTagsOnObjects mocks base method.

func (*MockTagManager) GetCategories added in v0.9.153

func (m *MockTagManager) GetCategories(ctx context.Context) ([]tags.Category, error)

GetCategories mocks base method.

func (*MockTagManager) GetCategory added in v0.9.153

func (m *MockTagManager) GetCategory(ctx context.Context, id string) (*tags.Category, error)

GetCategory mocks base method.

func (*MockTagManager) GetTagsForCategory added in v0.9.153

func (m *MockTagManager) GetTagsForCategory(ctx context.Context, id string) ([]tags.Tag, error)

GetTagsForCategory mocks base method.

func (*MockTagManager) ListCategories added in v0.9.153

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

ListCategories mocks base method.

type MockTagManagerMockRecorder added in v0.9.153

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

MockTagManagerMockRecorder is the mock recorder for MockTagManager.

func (*MockTagManagerMockRecorder) GetAttachedTags added in v0.9.153

func (mr *MockTagManagerMockRecorder) GetAttachedTags(ctx, ref interface{}) *gomock.Call

GetAttachedTags indicates an expected call of GetAttachedTags.

func (*MockTagManagerMockRecorder) GetAttachedTagsOnObjects added in v0.9.153

func (mr *MockTagManagerMockRecorder) GetAttachedTagsOnObjects(ctx, objectID interface{}) *gomock.Call

GetAttachedTagsOnObjects indicates an expected call of GetAttachedTagsOnObjects.

func (*MockTagManagerMockRecorder) GetCategories added in v0.9.153

func (mr *MockTagManagerMockRecorder) GetCategories(ctx interface{}) *gomock.Call

GetCategories indicates an expected call of GetCategories.

func (*MockTagManagerMockRecorder) GetCategory added in v0.9.153

func (mr *MockTagManagerMockRecorder) GetCategory(ctx, id interface{}) *gomock.Call

GetCategory indicates an expected call of GetCategory.

func (*MockTagManagerMockRecorder) GetTagsForCategory added in v0.9.153

func (mr *MockTagManagerMockRecorder) GetTagsForCategory(ctx, id interface{}) *gomock.Call

GetTagsForCategory indicates an expected call of GetTagsForCategory.

func (*MockTagManagerMockRecorder) ListCategories added in v0.9.153

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

ListCategories indicates an expected call of ListCategories.

Jump to

Keyboard shortcuts

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