Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
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
- type MockTagManager
- func (m *MockTagManager) EXPECT() *MockTagManagerMockRecorder
- func (m *MockTagManager) GetAttachedTags(ctx context.Context, ref mo.Reference) ([]tags.Tag, error)
- func (m *MockTagManager) GetAttachedTagsOnObjects(ctx context.Context, objectID []mo.Reference) ([]tags.AttachedTags, error)
- func (m *MockTagManager) GetCategories(ctx context.Context) ([]tags.Category, error)
- func (m *MockTagManager) GetCategory(ctx context.Context, id string) (*tags.Category, error)
- func (m *MockTagManager) GetTagsForCategory(ctx context.Context, id string) ([]tags.Tag, error)
- func (m *MockTagManager) ListCategories(ctx context.Context) ([]string, error)
- type MockTagManagerMockRecorder
- func (mr *MockTagManagerMockRecorder) GetAttachedTags(ctx, ref interface{}) *gomock.Call
- func (mr *MockTagManagerMockRecorder) GetAttachedTagsOnObjects(ctx, objectID interface{}) *gomock.Call
- func (mr *MockTagManagerMockRecorder) GetCategories(ctx interface{}) *gomock.Call
- func (mr *MockTagManagerMockRecorder) GetCategory(ctx, id interface{}) *gomock.Call
- func (mr *MockTagManagerMockRecorder) GetTagsForCategory(ctx, id interface{}) *gomock.Call
- func (mr *MockTagManagerMockRecorder) ListCategories(ctx interface{}) *gomock.Call
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.
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
func (m *MockTagManager) EXPECT() *MockTagManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTagManager) GetAttachedTags ¶ added in v0.9.153
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
GetCategories mocks base method.
func (*MockTagManager) GetCategory ¶ added in v0.9.153
GetCategory mocks base method.
func (*MockTagManager) GetTagsForCategory ¶ added in v0.9.153
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.