github.com/verrazzano/verrazzano@v1.7.1/application-operator/mocks/controller_manager_mock.go (about) 1 // Copyright (c) 2021, 2023, Oracle and/or its affiliates. 2 // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 // 4 5 // Code generated by MockGen. DO NOT EDIT. 6 // Source: sigs.k8s.io/controller-runtime (interfaces: Manager) 7 8 // Package mocks is a generated GoMock package. 9 package mocks 10 11 import ( 12 context "context" 13 http "net/http" 14 reflect "reflect" 15 16 logr "github.com/go-logr/logr" 17 gomock "github.com/golang/mock/gomock" 18 meta "k8s.io/apimachinery/pkg/api/meta" 19 runtime "k8s.io/apimachinery/pkg/runtime" 20 rest "k8s.io/client-go/rest" 21 record "k8s.io/client-go/tools/record" 22 cache "sigs.k8s.io/controller-runtime/pkg/cache" 23 client "sigs.k8s.io/controller-runtime/pkg/client" 24 v1alpha1 "sigs.k8s.io/controller-runtime/pkg/config/v1alpha1" 25 healthz "sigs.k8s.io/controller-runtime/pkg/healthz" 26 manager "sigs.k8s.io/controller-runtime/pkg/manager" 27 webhook "sigs.k8s.io/controller-runtime/pkg/webhook" 28 ) 29 30 // MockManager is a mock of Manager interface. 31 type MockManager struct { 32 ctrl *gomock.Controller 33 recorder *MockManagerMockRecorder 34 } 35 36 // MockManagerMockRecorder is the mock recorder for MockManager. 37 type MockManagerMockRecorder struct { 38 mock *MockManager 39 } 40 41 // NewMockManager creates a new mock instance. 42 func NewMockManager(ctrl *gomock.Controller) *MockManager { 43 mock := &MockManager{ctrl: ctrl} 44 mock.recorder = &MockManagerMockRecorder{mock} 45 return mock 46 } 47 48 // EXPECT returns an object that allows the caller to indicate expected use. 49 func (m *MockManager) EXPECT() *MockManagerMockRecorder { 50 return m.recorder 51 } 52 53 // Add mocks base method. 54 func (m *MockManager) Add(arg0 manager.Runnable) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Add", arg0) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // Add indicates an expected call of Add. 62 func (mr *MockManagerMockRecorder) Add(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockManager)(nil).Add), arg0) 65 } 66 67 // AddHealthzCheck mocks base method. 68 func (m *MockManager) AddHealthzCheck(arg0 string, arg1 healthz.Checker) error { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "AddHealthzCheck", arg0, arg1) 71 ret0, _ := ret[0].(error) 72 return ret0 73 } 74 75 // AddHealthzCheck indicates an expected call of AddHealthzCheck. 76 func (mr *MockManagerMockRecorder) AddHealthzCheck(arg0, arg1 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddHealthzCheck", reflect.TypeOf((*MockManager)(nil).AddHealthzCheck), arg0, arg1) 79 } 80 81 // AddMetricsExtraHandler mocks base method. 82 func (m *MockManager) AddMetricsExtraHandler(arg0 string, arg1 http.Handler) error { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "AddMetricsExtraHandler", arg0, arg1) 85 ret0, _ := ret[0].(error) 86 return ret0 87 } 88 89 // AddMetricsExtraHandler indicates an expected call of AddMetricsExtraHandler. 90 func (mr *MockManagerMockRecorder) AddMetricsExtraHandler(arg0, arg1 interface{}) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddMetricsExtraHandler", reflect.TypeOf((*MockManager)(nil).AddMetricsExtraHandler), arg0, arg1) 93 } 94 95 // AddReadyzCheck mocks base method. 96 func (m *MockManager) AddReadyzCheck(arg0 string, arg1 healthz.Checker) error { 97 m.ctrl.T.Helper() 98 ret := m.ctrl.Call(m, "AddReadyzCheck", arg0, arg1) 99 ret0, _ := ret[0].(error) 100 return ret0 101 } 102 103 // AddReadyzCheck indicates an expected call of AddReadyzCheck. 104 func (mr *MockManagerMockRecorder) AddReadyzCheck(arg0, arg1 interface{}) *gomock.Call { 105 mr.mock.ctrl.T.Helper() 106 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddReadyzCheck", reflect.TypeOf((*MockManager)(nil).AddReadyzCheck), arg0, arg1) 107 } 108 109 // Elected mocks base method. 110 func (m *MockManager) Elected() <-chan struct{} { 111 m.ctrl.T.Helper() 112 ret := m.ctrl.Call(m, "Elected") 113 ret0, _ := ret[0].(<-chan struct{}) 114 return ret0 115 } 116 117 // Elected indicates an expected call of Elected. 118 func (mr *MockManagerMockRecorder) Elected() *gomock.Call { 119 mr.mock.ctrl.T.Helper() 120 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Elected", reflect.TypeOf((*MockManager)(nil).Elected)) 121 } 122 123 // GetAPIReader mocks base method. 124 func (m *MockManager) GetAPIReader() client.Reader { 125 m.ctrl.T.Helper() 126 ret := m.ctrl.Call(m, "GetAPIReader") 127 ret0, _ := ret[0].(client.Reader) 128 return ret0 129 } 130 131 // GetAPIReader indicates an expected call of GetAPIReader. 132 func (mr *MockManagerMockRecorder) GetAPIReader() *gomock.Call { 133 mr.mock.ctrl.T.Helper() 134 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAPIReader", reflect.TypeOf((*MockManager)(nil).GetAPIReader)) 135 } 136 137 // GetCache mocks base method. 138 func (m *MockManager) GetCache() cache.Cache { 139 m.ctrl.T.Helper() 140 ret := m.ctrl.Call(m, "GetCache") 141 ret0, _ := ret[0].(cache.Cache) 142 return ret0 143 } 144 145 // GetCache indicates an expected call of GetCache. 146 func (mr *MockManagerMockRecorder) GetCache() *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCache", reflect.TypeOf((*MockManager)(nil).GetCache)) 149 } 150 151 // GetClient mocks base method. 152 func (m *MockManager) GetClient() client.Client { 153 m.ctrl.T.Helper() 154 ret := m.ctrl.Call(m, "GetClient") 155 ret0, _ := ret[0].(client.Client) 156 return ret0 157 } 158 159 // GetClient indicates an expected call of GetClient. 160 func (mr *MockManagerMockRecorder) GetClient() *gomock.Call { 161 mr.mock.ctrl.T.Helper() 162 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockManager)(nil).GetClient)) 163 } 164 165 // GetConfig mocks base method. 166 func (m *MockManager) GetConfig() *rest.Config { 167 m.ctrl.T.Helper() 168 ret := m.ctrl.Call(m, "GetConfig") 169 ret0, _ := ret[0].(*rest.Config) 170 return ret0 171 } 172 173 // GetConfig indicates an expected call of GetConfig. 174 func (mr *MockManagerMockRecorder) GetConfig() *gomock.Call { 175 mr.mock.ctrl.T.Helper() 176 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockManager)(nil).GetConfig)) 177 } 178 179 // GetControllerOptions mocks base method. 180 func (m *MockManager) GetControllerOptions() v1alpha1.ControllerConfigurationSpec { 181 m.ctrl.T.Helper() 182 ret := m.ctrl.Call(m, "GetControllerOptions") 183 ret0, _ := ret[0].(v1alpha1.ControllerConfigurationSpec) 184 return ret0 185 } 186 187 // GetControllerOptions indicates an expected call of GetControllerOptions. 188 func (mr *MockManagerMockRecorder) GetControllerOptions() *gomock.Call { 189 mr.mock.ctrl.T.Helper() 190 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetControllerOptions", reflect.TypeOf((*MockManager)(nil).GetControllerOptions)) 191 } 192 193 // GetEventRecorderFor mocks base method. 194 func (m *MockManager) GetEventRecorderFor(arg0 string) record.EventRecorder { 195 m.ctrl.T.Helper() 196 ret := m.ctrl.Call(m, "GetEventRecorderFor", arg0) 197 ret0, _ := ret[0].(record.EventRecorder) 198 return ret0 199 } 200 201 // GetEventRecorderFor indicates an expected call of GetEventRecorderFor. 202 func (mr *MockManagerMockRecorder) GetEventRecorderFor(arg0 interface{}) *gomock.Call { 203 mr.mock.ctrl.T.Helper() 204 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEventRecorderFor", reflect.TypeOf((*MockManager)(nil).GetEventRecorderFor), arg0) 205 } 206 207 // GetFieldIndexer mocks base method. 208 func (m *MockManager) GetFieldIndexer() client.FieldIndexer { 209 m.ctrl.T.Helper() 210 ret := m.ctrl.Call(m, "GetFieldIndexer") 211 ret0, _ := ret[0].(client.FieldIndexer) 212 return ret0 213 } 214 215 // GetFieldIndexer indicates an expected call of GetFieldIndexer. 216 func (mr *MockManagerMockRecorder) GetFieldIndexer() *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFieldIndexer", reflect.TypeOf((*MockManager)(nil).GetFieldIndexer)) 219 } 220 221 // GetLogger mocks base method. 222 func (m *MockManager) GetLogger() logr.Logger { 223 m.ctrl.T.Helper() 224 ret := m.ctrl.Call(m, "GetLogger") 225 ret0, _ := ret[0].(logr.Logger) 226 return ret0 227 } 228 229 // GetLogger indicates an expected call of GetLogger. 230 func (mr *MockManagerMockRecorder) GetLogger() *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLogger", reflect.TypeOf((*MockManager)(nil).GetLogger)) 233 } 234 235 // GetRESTMapper mocks base method. 236 func (m *MockManager) GetRESTMapper() meta.RESTMapper { 237 m.ctrl.T.Helper() 238 ret := m.ctrl.Call(m, "GetRESTMapper") 239 ret0, _ := ret[0].(meta.RESTMapper) 240 return ret0 241 } 242 243 // GetRESTMapper indicates an expected call of GetRESTMapper. 244 func (mr *MockManagerMockRecorder) GetRESTMapper() *gomock.Call { 245 mr.mock.ctrl.T.Helper() 246 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRESTMapper", reflect.TypeOf((*MockManager)(nil).GetRESTMapper)) 247 } 248 249 // GetScheme mocks base method. 250 func (m *MockManager) GetScheme() *runtime.Scheme { 251 m.ctrl.T.Helper() 252 ret := m.ctrl.Call(m, "GetScheme") 253 ret0, _ := ret[0].(*runtime.Scheme) 254 return ret0 255 } 256 257 // GetScheme indicates an expected call of GetScheme. 258 func (mr *MockManagerMockRecorder) GetScheme() *gomock.Call { 259 mr.mock.ctrl.T.Helper() 260 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScheme", reflect.TypeOf((*MockManager)(nil).GetScheme)) 261 } 262 263 // GetWebhookServer mocks base method. 264 func (m *MockManager) GetWebhookServer() *webhook.Server { 265 m.ctrl.T.Helper() 266 ret := m.ctrl.Call(m, "GetWebhookServer") 267 ret0, _ := ret[0].(*webhook.Server) 268 return ret0 269 } 270 271 // GetWebhookServer indicates an expected call of GetWebhookServer. 272 func (mr *MockManagerMockRecorder) GetWebhookServer() *gomock.Call { 273 mr.mock.ctrl.T.Helper() 274 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWebhookServer", reflect.TypeOf((*MockManager)(nil).GetWebhookServer)) 275 } 276 277 // SetFields mocks base method. 278 func (m *MockManager) SetFields(arg0 interface{}) error { 279 m.ctrl.T.Helper() 280 ret := m.ctrl.Call(m, "SetFields", arg0) 281 ret0, _ := ret[0].(error) 282 return ret0 283 } 284 285 // SetFields indicates an expected call of SetFields. 286 func (mr *MockManagerMockRecorder) SetFields(arg0 interface{}) *gomock.Call { 287 mr.mock.ctrl.T.Helper() 288 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFields", reflect.TypeOf((*MockManager)(nil).SetFields), arg0) 289 } 290 291 // Start mocks base method. 292 func (m *MockManager) Start(arg0 context.Context) error { 293 m.ctrl.T.Helper() 294 ret := m.ctrl.Call(m, "Start", arg0) 295 ret0, _ := ret[0].(error) 296 return ret0 297 } 298 299 // Start indicates an expected call of Start. 300 func (mr *MockManagerMockRecorder) Start(arg0 interface{}) *gomock.Call { 301 mr.mock.ctrl.T.Helper() 302 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockManager)(nil).Start), arg0) 303 }