mock

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

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.

Jump to

Keyboard shortcuts

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