Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- func GetClient(server *simulator.Server) (*vim25.Client, *session.Manager, error)
- func GetFinder(server *simulator.Server) (*find.Finder, error)
- func StartSimulator() *simulator.Server
- type MockAuthManager
- func (m *MockAuthManager) EXPECT() *MockAuthManagerMockRecorder
- func (m *MockAuthManager) FetchUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string) ([]types.UserPrivilegeResult, error)
- func (m *MockAuthManager) Properties(ctx context.Context, r types.ManagedObjectReference, ps []string, ...) error
- func (m *MockAuthManager) Reference() types.ManagedObjectReference
- type MockAuthManagerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartSimulator ¶
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 ¶
func (m *MockAuthManager) EXPECT() *MockAuthManagerMockRecorder
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 ¶
func (m *MockAuthManager) Reference() types.ManagedObjectReference
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.