mock

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 14 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() *simulator.Server

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.

Jump to

Keyboard shortcuts

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