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(setVersionToSupported bool) (*simulator.Server, error)
- 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
- type MockSessionManager
- type MockSessionManagerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
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 ¶
func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder
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.