github.com/openshift/installer@v1.4.17/pkg/asset/installconfig/vsphere/mock/authmanager_generated.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: ./permissions.go 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 types "github.com/vmware/govmomi/vim25/types" 13 ) 14 15 // MockAuthManager is a mock of AuthManager interface. 16 type MockAuthManager struct { 17 ctrl *gomock.Controller 18 recorder *MockAuthManagerMockRecorder 19 } 20 21 // MockAuthManagerMockRecorder is the mock recorder for MockAuthManager. 22 type MockAuthManagerMockRecorder struct { 23 mock *MockAuthManager 24 } 25 26 // NewMockAuthManager creates a new mock instance. 27 func NewMockAuthManager(ctrl *gomock.Controller) *MockAuthManager { 28 mock := &MockAuthManager{ctrl: ctrl} 29 mock.recorder = &MockAuthManagerMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockAuthManager) EXPECT() *MockAuthManagerMockRecorder { 35 return m.recorder 36 } 37 38 // FetchUserPrivilegeOnEntities mocks base method. 39 func (m *MockAuthManager) FetchUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string) ([]types.UserPrivilegeResult, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "FetchUserPrivilegeOnEntities", ctx, entities, userName) 42 ret0, _ := ret[0].([]types.UserPrivilegeResult) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // FetchUserPrivilegeOnEntities indicates an expected call of FetchUserPrivilegeOnEntities. 48 func (mr *MockAuthManagerMockRecorder) FetchUserPrivilegeOnEntities(ctx, entities, userName interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FetchUserPrivilegeOnEntities", reflect.TypeOf((*MockAuthManager)(nil).FetchUserPrivilegeOnEntities), ctx, entities, userName) 51 } 52 53 // Properties mocks base method. 54 func (m *MockAuthManager) Properties(ctx context.Context, r types.ManagedObjectReference, ps []string, dst interface{}) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Properties", ctx, r, ps, dst) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // Properties indicates an expected call of Properties. 62 func (mr *MockAuthManagerMockRecorder) Properties(ctx, r, ps, dst interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Properties", reflect.TypeOf((*MockAuthManager)(nil).Properties), ctx, r, ps, dst) 65 } 66 67 // Reference mocks base method. 68 func (m *MockAuthManager) Reference() types.ManagedObjectReference { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Reference") 71 ret0, _ := ret[0].(types.ManagedObjectReference) 72 return ret0 73 } 74 75 // Reference indicates an expected call of Reference. 76 func (mr *MockAuthManagerMockRecorder) Reference() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Reference", reflect.TypeOf((*MockAuthManager)(nil).Reference)) 79 } 80 81 // MockSessionManager is a mock of SessionManager interface. 82 type MockSessionManager struct { 83 ctrl *gomock.Controller 84 recorder *MockSessionManagerMockRecorder 85 } 86 87 // MockSessionManagerMockRecorder is the mock recorder for MockSessionManager. 88 type MockSessionManagerMockRecorder struct { 89 mock *MockSessionManager 90 } 91 92 // NewMockSessionManager creates a new mock instance. 93 func NewMockSessionManager(ctrl *gomock.Controller) *MockSessionManager { 94 mock := &MockSessionManager{ctrl: ctrl} 95 mock.recorder = &MockSessionManagerMockRecorder{mock} 96 return mock 97 } 98 99 // EXPECT returns an object that allows the caller to indicate expected use. 100 func (m *MockSessionManager) EXPECT() *MockSessionManagerMockRecorder { 101 return m.recorder 102 } 103 104 // UserSession mocks base method. 105 func (m *MockSessionManager) UserSession(ctx context.Context) (*types.UserSession, error) { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "UserSession", ctx) 108 ret0, _ := ret[0].(*types.UserSession) 109 ret1, _ := ret[1].(error) 110 return ret0, ret1 111 } 112 113 // UserSession indicates an expected call of UserSession. 114 func (mr *MockSessionManagerMockRecorder) UserSession(ctx interface{}) *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UserSession", reflect.TypeOf((*MockSessionManager)(nil).UserSession), ctx) 117 }