github.com/polarismesh/polaris@v1.17.8/cache/mock/cache_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: api/types.go
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	api "github.com/polarismesh/polaris/cache/api"
    12  	model "github.com/polarismesh/polaris/common/model"
    13  	store "github.com/polarismesh/polaris/store"
    14  	security "github.com/polarismesh/specification/source/go/api/v1/security"
    15  	service_manage "github.com/polarismesh/specification/source/go/api/v1/service_manage"
    16  	traffic_manage "github.com/polarismesh/specification/source/go/api/v1/traffic_manage"
    17  )
    18  
    19  // MockCache is a mock of Cache interface.
    20  type MockCache struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockCacheMockRecorder
    23  }
    24  
    25  // MockCacheMockRecorder is the mock recorder for MockCache.
    26  type MockCacheMockRecorder struct {
    27  	mock *MockCache
    28  }
    29  
    30  // NewMockCache creates a new mock instance.
    31  func NewMockCache(ctrl *gomock.Controller) *MockCache {
    32  	mock := &MockCache{ctrl: ctrl}
    33  	mock.recorder = &MockCacheMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockCache) EXPECT() *MockCacheMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // AddListener mocks base method.
    43  func (m *MockCache) AddListener(listeners []api.Listener) {
    44  	m.ctrl.T.Helper()
    45  	m.ctrl.Call(m, "AddListener", listeners)
    46  }
    47  
    48  // AddListener indicates an expected call of AddListener.
    49  func (mr *MockCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockCache)(nil).AddListener), listeners)
    52  }
    53  
    54  // Clear mocks base method.
    55  func (m *MockCache) Clear() error {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "Clear")
    58  	ret0, _ := ret[0].(error)
    59  	return ret0
    60  }
    61  
    62  // Clear indicates an expected call of Clear.
    63  func (mr *MockCacheMockRecorder) Clear() *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockCache)(nil).Clear))
    66  }
    67  
    68  // Initialize mocks base method.
    69  func (m *MockCache) Initialize(c map[string]interface{}) error {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "Initialize", c)
    72  	ret0, _ := ret[0].(error)
    73  	return ret0
    74  }
    75  
    76  // Initialize indicates an expected call of Initialize.
    77  func (mr *MockCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
    78  	mr.mock.ctrl.T.Helper()
    79  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockCache)(nil).Initialize), c)
    80  }
    81  
    82  // Name mocks base method.
    83  func (m *MockCache) Name() string {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "Name")
    86  	ret0, _ := ret[0].(string)
    87  	return ret0
    88  }
    89  
    90  // Name indicates an expected call of Name.
    91  func (mr *MockCacheMockRecorder) Name() *gomock.Call {
    92  	mr.mock.ctrl.T.Helper()
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockCache)(nil).Name))
    94  }
    95  
    96  // Update mocks base method.
    97  func (m *MockCache) Update() error {
    98  	m.ctrl.T.Helper()
    99  	ret := m.ctrl.Call(m, "Update")
   100  	ret0, _ := ret[0].(error)
   101  	return ret0
   102  }
   103  
   104  // Update indicates an expected call of Update.
   105  func (mr *MockCacheMockRecorder) Update() *gomock.Call {
   106  	mr.mock.ctrl.T.Helper()
   107  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCache)(nil).Update))
   108  }
   109  
   110  // MockCacheManager is a mock of CacheManager interface.
   111  type MockCacheManager struct {
   112  	ctrl     *gomock.Controller
   113  	recorder *MockCacheManagerMockRecorder
   114  }
   115  
   116  // MockCacheManagerMockRecorder is the mock recorder for MockCacheManager.
   117  type MockCacheManagerMockRecorder struct {
   118  	mock *MockCacheManager
   119  }
   120  
   121  // NewMockCacheManager creates a new mock instance.
   122  func NewMockCacheManager(ctrl *gomock.Controller) *MockCacheManager {
   123  	mock := &MockCacheManager{ctrl: ctrl}
   124  	mock.recorder = &MockCacheManagerMockRecorder{mock}
   125  	return mock
   126  }
   127  
   128  // EXPECT returns an object that allows the caller to indicate expected use.
   129  func (m *MockCacheManager) EXPECT() *MockCacheManagerMockRecorder {
   130  	return m.recorder
   131  }
   132  
   133  // GetCacher mocks base method.
   134  func (m *MockCacheManager) GetCacher(cacheIndex api.CacheIndex) api.Cache {
   135  	m.ctrl.T.Helper()
   136  	ret := m.ctrl.Call(m, "GetCacher", cacheIndex)
   137  	ret0, _ := ret[0].(api.Cache)
   138  	return ret0
   139  }
   140  
   141  // GetCacher indicates an expected call of GetCacher.
   142  func (mr *MockCacheManagerMockRecorder) GetCacher(cacheIndex interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCacher", reflect.TypeOf((*MockCacheManager)(nil).GetCacher), cacheIndex)
   145  }
   146  
   147  // RegisterCacher mocks base method.
   148  func (m *MockCacheManager) RegisterCacher(cacheIndex api.CacheIndex, item api.Cache) {
   149  	m.ctrl.T.Helper()
   150  	m.ctrl.Call(m, "RegisterCacher", cacheIndex, item)
   151  }
   152  
   153  // RegisterCacher indicates an expected call of RegisterCacher.
   154  func (mr *MockCacheManagerMockRecorder) RegisterCacher(cacheIndex, item interface{}) *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterCacher", reflect.TypeOf((*MockCacheManager)(nil).RegisterCacher), cacheIndex, item)
   157  }
   158  
   159  // MockNamespaceCache is a mock of NamespaceCache interface.
   160  type MockNamespaceCache struct {
   161  	ctrl     *gomock.Controller
   162  	recorder *MockNamespaceCacheMockRecorder
   163  }
   164  
   165  // MockNamespaceCacheMockRecorder is the mock recorder for MockNamespaceCache.
   166  type MockNamespaceCacheMockRecorder struct {
   167  	mock *MockNamespaceCache
   168  }
   169  
   170  // NewMockNamespaceCache creates a new mock instance.
   171  func NewMockNamespaceCache(ctrl *gomock.Controller) *MockNamespaceCache {
   172  	mock := &MockNamespaceCache{ctrl: ctrl}
   173  	mock.recorder = &MockNamespaceCacheMockRecorder{mock}
   174  	return mock
   175  }
   176  
   177  // EXPECT returns an object that allows the caller to indicate expected use.
   178  func (m *MockNamespaceCache) EXPECT() *MockNamespaceCacheMockRecorder {
   179  	return m.recorder
   180  }
   181  
   182  // AddListener mocks base method.
   183  func (m *MockNamespaceCache) AddListener(listeners []api.Listener) {
   184  	m.ctrl.T.Helper()
   185  	m.ctrl.Call(m, "AddListener", listeners)
   186  }
   187  
   188  // AddListener indicates an expected call of AddListener.
   189  func (mr *MockNamespaceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockNamespaceCache)(nil).AddListener), listeners)
   192  }
   193  
   194  // Clear mocks base method.
   195  func (m *MockNamespaceCache) Clear() error {
   196  	m.ctrl.T.Helper()
   197  	ret := m.ctrl.Call(m, "Clear")
   198  	ret0, _ := ret[0].(error)
   199  	return ret0
   200  }
   201  
   202  // Clear indicates an expected call of Clear.
   203  func (mr *MockNamespaceCacheMockRecorder) Clear() *gomock.Call {
   204  	mr.mock.ctrl.T.Helper()
   205  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockNamespaceCache)(nil).Clear))
   206  }
   207  
   208  // GetNamespace mocks base method.
   209  func (m *MockNamespaceCache) GetNamespace(id string) *model.Namespace {
   210  	m.ctrl.T.Helper()
   211  	ret := m.ctrl.Call(m, "GetNamespace", id)
   212  	ret0, _ := ret[0].(*model.Namespace)
   213  	return ret0
   214  }
   215  
   216  // GetNamespace indicates an expected call of GetNamespace.
   217  func (mr *MockNamespaceCacheMockRecorder) GetNamespace(id interface{}) *gomock.Call {
   218  	mr.mock.ctrl.T.Helper()
   219  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockNamespaceCache)(nil).GetNamespace), id)
   220  }
   221  
   222  // GetNamespaceList mocks base method.
   223  func (m *MockNamespaceCache) GetNamespaceList() []*model.Namespace {
   224  	m.ctrl.T.Helper()
   225  	ret := m.ctrl.Call(m, "GetNamespaceList")
   226  	ret0, _ := ret[0].([]*model.Namespace)
   227  	return ret0
   228  }
   229  
   230  // GetNamespaceList indicates an expected call of GetNamespaceList.
   231  func (mr *MockNamespaceCacheMockRecorder) GetNamespaceList() *gomock.Call {
   232  	mr.mock.ctrl.T.Helper()
   233  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceList", reflect.TypeOf((*MockNamespaceCache)(nil).GetNamespaceList))
   234  }
   235  
   236  // GetNamespacesByName mocks base method.
   237  func (m *MockNamespaceCache) GetNamespacesByName(names []string) []*model.Namespace {
   238  	m.ctrl.T.Helper()
   239  	ret := m.ctrl.Call(m, "GetNamespacesByName", names)
   240  	ret0, _ := ret[0].([]*model.Namespace)
   241  	return ret0
   242  }
   243  
   244  // GetNamespacesByName indicates an expected call of GetNamespacesByName.
   245  func (mr *MockNamespaceCacheMockRecorder) GetNamespacesByName(names interface{}) *gomock.Call {
   246  	mr.mock.ctrl.T.Helper()
   247  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespacesByName", reflect.TypeOf((*MockNamespaceCache)(nil).GetNamespacesByName), names)
   248  }
   249  
   250  // Initialize mocks base method.
   251  func (m *MockNamespaceCache) Initialize(c map[string]interface{}) error {
   252  	m.ctrl.T.Helper()
   253  	ret := m.ctrl.Call(m, "Initialize", c)
   254  	ret0, _ := ret[0].(error)
   255  	return ret0
   256  }
   257  
   258  // Initialize indicates an expected call of Initialize.
   259  func (mr *MockNamespaceCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
   260  	mr.mock.ctrl.T.Helper()
   261  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockNamespaceCache)(nil).Initialize), c)
   262  }
   263  
   264  // Name mocks base method.
   265  func (m *MockNamespaceCache) Name() string {
   266  	m.ctrl.T.Helper()
   267  	ret := m.ctrl.Call(m, "Name")
   268  	ret0, _ := ret[0].(string)
   269  	return ret0
   270  }
   271  
   272  // Name indicates an expected call of Name.
   273  func (mr *MockNamespaceCacheMockRecorder) Name() *gomock.Call {
   274  	mr.mock.ctrl.T.Helper()
   275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockNamespaceCache)(nil).Name))
   276  }
   277  
   278  // Update mocks base method.
   279  func (m *MockNamespaceCache) Update() error {
   280  	m.ctrl.T.Helper()
   281  	ret := m.ctrl.Call(m, "Update")
   282  	ret0, _ := ret[0].(error)
   283  	return ret0
   284  }
   285  
   286  // Update indicates an expected call of Update.
   287  func (mr *MockNamespaceCacheMockRecorder) Update() *gomock.Call {
   288  	mr.mock.ctrl.T.Helper()
   289  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockNamespaceCache)(nil).Update))
   290  }
   291  
   292  // MockServiceCache is a mock of ServiceCache interface.
   293  type MockServiceCache struct {
   294  	ctrl     *gomock.Controller
   295  	recorder *MockServiceCacheMockRecorder
   296  }
   297  
   298  // MockServiceCacheMockRecorder is the mock recorder for MockServiceCache.
   299  type MockServiceCacheMockRecorder struct {
   300  	mock *MockServiceCache
   301  }
   302  
   303  // NewMockServiceCache creates a new mock instance.
   304  func NewMockServiceCache(ctrl *gomock.Controller) *MockServiceCache {
   305  	mock := &MockServiceCache{ctrl: ctrl}
   306  	mock.recorder = &MockServiceCacheMockRecorder{mock}
   307  	return mock
   308  }
   309  
   310  // EXPECT returns an object that allows the caller to indicate expected use.
   311  func (m *MockServiceCache) EXPECT() *MockServiceCacheMockRecorder {
   312  	return m.recorder
   313  }
   314  
   315  // AddListener mocks base method.
   316  func (m *MockServiceCache) AddListener(listeners []api.Listener) {
   317  	m.ctrl.T.Helper()
   318  	m.ctrl.Call(m, "AddListener", listeners)
   319  }
   320  
   321  // AddListener indicates an expected call of AddListener.
   322  func (mr *MockServiceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
   323  	mr.mock.ctrl.T.Helper()
   324  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockServiceCache)(nil).AddListener), listeners)
   325  }
   326  
   327  // CleanNamespace mocks base method.
   328  func (m *MockServiceCache) CleanNamespace(namespace string) {
   329  	m.ctrl.T.Helper()
   330  	m.ctrl.Call(m, "CleanNamespace", namespace)
   331  }
   332  
   333  // CleanNamespace indicates an expected call of CleanNamespace.
   334  func (mr *MockServiceCacheMockRecorder) CleanNamespace(namespace interface{}) *gomock.Call {
   335  	mr.mock.ctrl.T.Helper()
   336  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanNamespace", reflect.TypeOf((*MockServiceCache)(nil).CleanNamespace), namespace)
   337  }
   338  
   339  // Clear mocks base method.
   340  func (m *MockServiceCache) Clear() error {
   341  	m.ctrl.T.Helper()
   342  	ret := m.ctrl.Call(m, "Clear")
   343  	ret0, _ := ret[0].(error)
   344  	return ret0
   345  }
   346  
   347  // Clear indicates an expected call of Clear.
   348  func (mr *MockServiceCacheMockRecorder) Clear() *gomock.Call {
   349  	mr.mock.ctrl.T.Helper()
   350  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockServiceCache)(nil).Clear))
   351  }
   352  
   353  // GetAliasFor mocks base method.
   354  func (m *MockServiceCache) GetAliasFor(name, namespace string) *model.Service {
   355  	m.ctrl.T.Helper()
   356  	ret := m.ctrl.Call(m, "GetAliasFor", name, namespace)
   357  	ret0, _ := ret[0].(*model.Service)
   358  	return ret0
   359  }
   360  
   361  // GetAliasFor indicates an expected call of GetAliasFor.
   362  func (mr *MockServiceCacheMockRecorder) GetAliasFor(name, namespace interface{}) *gomock.Call {
   363  	mr.mock.ctrl.T.Helper()
   364  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAliasFor", reflect.TypeOf((*MockServiceCache)(nil).GetAliasFor), name, namespace)
   365  }
   366  
   367  // GetAllNamespaces mocks base method.
   368  func (m *MockServiceCache) GetAllNamespaces() []string {
   369  	m.ctrl.T.Helper()
   370  	ret := m.ctrl.Call(m, "GetAllNamespaces")
   371  	ret0, _ := ret[0].([]string)
   372  	return ret0
   373  }
   374  
   375  // GetAllNamespaces indicates an expected call of GetAllNamespaces.
   376  func (mr *MockServiceCacheMockRecorder) GetAllNamespaces() *gomock.Call {
   377  	mr.mock.ctrl.T.Helper()
   378  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllNamespaces", reflect.TypeOf((*MockServiceCache)(nil).GetAllNamespaces))
   379  }
   380  
   381  // GetNamespaceCntInfo mocks base method.
   382  func (m *MockServiceCache) GetNamespaceCntInfo(namespace string) model.NamespaceServiceCount {
   383  	m.ctrl.T.Helper()
   384  	ret := m.ctrl.Call(m, "GetNamespaceCntInfo", namespace)
   385  	ret0, _ := ret[0].(model.NamespaceServiceCount)
   386  	return ret0
   387  }
   388  
   389  // GetNamespaceCntInfo indicates an expected call of GetNamespaceCntInfo.
   390  func (mr *MockServiceCacheMockRecorder) GetNamespaceCntInfo(namespace interface{}) *gomock.Call {
   391  	mr.mock.ctrl.T.Helper()
   392  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespaceCntInfo", reflect.TypeOf((*MockServiceCache)(nil).GetNamespaceCntInfo), namespace)
   393  }
   394  
   395  // GetRevisionWorker mocks base method.
   396  func (m *MockServiceCache) GetRevisionWorker() api.ServiceRevisionWorker {
   397  	m.ctrl.T.Helper()
   398  	ret := m.ctrl.Call(m, "GetRevisionWorker")
   399  	ret0, _ := ret[0].(api.ServiceRevisionWorker)
   400  	return ret0
   401  }
   402  
   403  // GetRevisionWorker indicates an expected call of GetRevisionWorker.
   404  func (mr *MockServiceCacheMockRecorder) GetRevisionWorker() *gomock.Call {
   405  	mr.mock.ctrl.T.Helper()
   406  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRevisionWorker", reflect.TypeOf((*MockServiceCache)(nil).GetRevisionWorker))
   407  }
   408  
   409  // GetServiceByCl5Name mocks base method.
   410  func (m *MockServiceCache) GetServiceByCl5Name(cl5Name string) *model.Service {
   411  	m.ctrl.T.Helper()
   412  	ret := m.ctrl.Call(m, "GetServiceByCl5Name", cl5Name)
   413  	ret0, _ := ret[0].(*model.Service)
   414  	return ret0
   415  }
   416  
   417  // GetServiceByCl5Name indicates an expected call of GetServiceByCl5Name.
   418  func (mr *MockServiceCacheMockRecorder) GetServiceByCl5Name(cl5Name interface{}) *gomock.Call {
   419  	mr.mock.ctrl.T.Helper()
   420  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByCl5Name", reflect.TypeOf((*MockServiceCache)(nil).GetServiceByCl5Name), cl5Name)
   421  }
   422  
   423  // GetServiceByID mocks base method.
   424  func (m *MockServiceCache) GetServiceByID(id string) *model.Service {
   425  	m.ctrl.T.Helper()
   426  	ret := m.ctrl.Call(m, "GetServiceByID", id)
   427  	ret0, _ := ret[0].(*model.Service)
   428  	return ret0
   429  }
   430  
   431  // GetServiceByID indicates an expected call of GetServiceByID.
   432  func (mr *MockServiceCacheMockRecorder) GetServiceByID(id interface{}) *gomock.Call {
   433  	mr.mock.ctrl.T.Helper()
   434  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByID", reflect.TypeOf((*MockServiceCache)(nil).GetServiceByID), id)
   435  }
   436  
   437  // GetServiceByName mocks base method.
   438  func (m *MockServiceCache) GetServiceByName(name, namespace string) *model.Service {
   439  	m.ctrl.T.Helper()
   440  	ret := m.ctrl.Call(m, "GetServiceByName", name, namespace)
   441  	ret0, _ := ret[0].(*model.Service)
   442  	return ret0
   443  }
   444  
   445  // GetServiceByName indicates an expected call of GetServiceByName.
   446  func (mr *MockServiceCacheMockRecorder) GetServiceByName(name, namespace interface{}) *gomock.Call {
   447  	mr.mock.ctrl.T.Helper()
   448  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceByName", reflect.TypeOf((*MockServiceCache)(nil).GetServiceByName), name, namespace)
   449  }
   450  
   451  // GetServicesByFilter mocks base method.
   452  func (m *MockServiceCache) GetServicesByFilter(serviceFilters *api.ServiceArgs, instanceFilters *store.InstanceArgs, offset, limit uint32) (uint32, []*model.EnhancedService, error) {
   453  	m.ctrl.T.Helper()
   454  	ret := m.ctrl.Call(m, "GetServicesByFilter", serviceFilters, instanceFilters, offset, limit)
   455  	ret0, _ := ret[0].(uint32)
   456  	ret1, _ := ret[1].([]*model.EnhancedService)
   457  	ret2, _ := ret[2].(error)
   458  	return ret0, ret1, ret2
   459  }
   460  
   461  // GetServicesByFilter indicates an expected call of GetServicesByFilter.
   462  func (mr *MockServiceCacheMockRecorder) GetServicesByFilter(serviceFilters, instanceFilters, offset, limit interface{}) *gomock.Call {
   463  	mr.mock.ctrl.T.Helper()
   464  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesByFilter", reflect.TypeOf((*MockServiceCache)(nil).GetServicesByFilter), serviceFilters, instanceFilters, offset, limit)
   465  }
   466  
   467  // GetServicesCount mocks base method.
   468  func (m *MockServiceCache) GetServicesCount() int {
   469  	m.ctrl.T.Helper()
   470  	ret := m.ctrl.Call(m, "GetServicesCount")
   471  	ret0, _ := ret[0].(int)
   472  	return ret0
   473  }
   474  
   475  // GetServicesCount indicates an expected call of GetServicesCount.
   476  func (mr *MockServiceCacheMockRecorder) GetServicesCount() *gomock.Call {
   477  	mr.mock.ctrl.T.Helper()
   478  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicesCount", reflect.TypeOf((*MockServiceCache)(nil).GetServicesCount))
   479  }
   480  
   481  // Initialize mocks base method.
   482  func (m *MockServiceCache) Initialize(c map[string]interface{}) error {
   483  	m.ctrl.T.Helper()
   484  	ret := m.ctrl.Call(m, "Initialize", c)
   485  	ret0, _ := ret[0].(error)
   486  	return ret0
   487  }
   488  
   489  // Initialize indicates an expected call of Initialize.
   490  func (mr *MockServiceCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
   491  	mr.mock.ctrl.T.Helper()
   492  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockServiceCache)(nil).Initialize), c)
   493  }
   494  
   495  // IteratorServices mocks base method.
   496  func (m *MockServiceCache) IteratorServices(iterProc api.ServiceIterProc) error {
   497  	m.ctrl.T.Helper()
   498  	ret := m.ctrl.Call(m, "IteratorServices", iterProc)
   499  	ret0, _ := ret[0].(error)
   500  	return ret0
   501  }
   502  
   503  // IteratorServices indicates an expected call of IteratorServices.
   504  func (mr *MockServiceCacheMockRecorder) IteratorServices(iterProc interface{}) *gomock.Call {
   505  	mr.mock.ctrl.T.Helper()
   506  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorServices", reflect.TypeOf((*MockServiceCache)(nil).IteratorServices), iterProc)
   507  }
   508  
   509  // ListAllServices mocks base method.
   510  func (m *MockServiceCache) ListAllServices() (string, []*model.Service) {
   511  	m.ctrl.T.Helper()
   512  	ret := m.ctrl.Call(m, "ListAllServices")
   513  	ret0, _ := ret[0].(string)
   514  	ret1, _ := ret[1].([]*model.Service)
   515  	return ret0, ret1
   516  }
   517  
   518  // ListAllServices indicates an expected call of ListAllServices.
   519  func (mr *MockServiceCacheMockRecorder) ListAllServices() *gomock.Call {
   520  	mr.mock.ctrl.T.Helper()
   521  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAllServices", reflect.TypeOf((*MockServiceCache)(nil).ListAllServices))
   522  }
   523  
   524  // ListServiceAlias mocks base method.
   525  func (m *MockServiceCache) ListServiceAlias(namespace, name string) []*model.Service {
   526  	m.ctrl.T.Helper()
   527  	ret := m.ctrl.Call(m, "ListServiceAlias", namespace, name)
   528  	ret0, _ := ret[0].([]*model.Service)
   529  	return ret0
   530  }
   531  
   532  // ListServiceAlias indicates an expected call of ListServiceAlias.
   533  func (mr *MockServiceCacheMockRecorder) ListServiceAlias(namespace, name interface{}) *gomock.Call {
   534  	mr.mock.ctrl.T.Helper()
   535  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServiceAlias", reflect.TypeOf((*MockServiceCache)(nil).ListServiceAlias), namespace, name)
   536  }
   537  
   538  // ListServices mocks base method.
   539  func (m *MockServiceCache) ListServices(ns string) (string, []*model.Service) {
   540  	m.ctrl.T.Helper()
   541  	ret := m.ctrl.Call(m, "ListServices", ns)
   542  	ret0, _ := ret[0].(string)
   543  	ret1, _ := ret[1].([]*model.Service)
   544  	return ret0, ret1
   545  }
   546  
   547  // ListServices indicates an expected call of ListServices.
   548  func (mr *MockServiceCacheMockRecorder) ListServices(ns interface{}) *gomock.Call {
   549  	mr.mock.ctrl.T.Helper()
   550  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListServices", reflect.TypeOf((*MockServiceCache)(nil).ListServices), ns)
   551  }
   552  
   553  // Name mocks base method.
   554  func (m *MockServiceCache) Name() string {
   555  	m.ctrl.T.Helper()
   556  	ret := m.ctrl.Call(m, "Name")
   557  	ret0, _ := ret[0].(string)
   558  	return ret0
   559  }
   560  
   561  // Name indicates an expected call of Name.
   562  func (mr *MockServiceCacheMockRecorder) Name() *gomock.Call {
   563  	mr.mock.ctrl.T.Helper()
   564  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockServiceCache)(nil).Name))
   565  }
   566  
   567  // Update mocks base method.
   568  func (m *MockServiceCache) Update() error {
   569  	m.ctrl.T.Helper()
   570  	ret := m.ctrl.Call(m, "Update")
   571  	ret0, _ := ret[0].(error)
   572  	return ret0
   573  }
   574  
   575  // Update indicates an expected call of Update.
   576  func (mr *MockServiceCacheMockRecorder) Update() *gomock.Call {
   577  	mr.mock.ctrl.T.Helper()
   578  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockServiceCache)(nil).Update))
   579  }
   580  
   581  // MockServiceRevisionWorker is a mock of ServiceRevisionWorker interface.
   582  type MockServiceRevisionWorker struct {
   583  	ctrl     *gomock.Controller
   584  	recorder *MockServiceRevisionWorkerMockRecorder
   585  }
   586  
   587  // MockServiceRevisionWorkerMockRecorder is the mock recorder for MockServiceRevisionWorker.
   588  type MockServiceRevisionWorkerMockRecorder struct {
   589  	mock *MockServiceRevisionWorker
   590  }
   591  
   592  // NewMockServiceRevisionWorker creates a new mock instance.
   593  func NewMockServiceRevisionWorker(ctrl *gomock.Controller) *MockServiceRevisionWorker {
   594  	mock := &MockServiceRevisionWorker{ctrl: ctrl}
   595  	mock.recorder = &MockServiceRevisionWorkerMockRecorder{mock}
   596  	return mock
   597  }
   598  
   599  // EXPECT returns an object that allows the caller to indicate expected use.
   600  func (m *MockServiceRevisionWorker) EXPECT() *MockServiceRevisionWorkerMockRecorder {
   601  	return m.recorder
   602  }
   603  
   604  // GetServiceInstanceRevision mocks base method.
   605  func (m *MockServiceRevisionWorker) GetServiceInstanceRevision(serviceID string) string {
   606  	m.ctrl.T.Helper()
   607  	ret := m.ctrl.Call(m, "GetServiceInstanceRevision", serviceID)
   608  	ret0, _ := ret[0].(string)
   609  	return ret0
   610  }
   611  
   612  // GetServiceInstanceRevision indicates an expected call of GetServiceInstanceRevision.
   613  func (mr *MockServiceRevisionWorkerMockRecorder) GetServiceInstanceRevision(serviceID interface{}) *gomock.Call {
   614  	mr.mock.ctrl.T.Helper()
   615  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceInstanceRevision", reflect.TypeOf((*MockServiceRevisionWorker)(nil).GetServiceInstanceRevision), serviceID)
   616  }
   617  
   618  // GetServiceRevisionCount mocks base method.
   619  func (m *MockServiceRevisionWorker) GetServiceRevisionCount() int {
   620  	m.ctrl.T.Helper()
   621  	ret := m.ctrl.Call(m, "GetServiceRevisionCount")
   622  	ret0, _ := ret[0].(int)
   623  	return ret0
   624  }
   625  
   626  // GetServiceRevisionCount indicates an expected call of GetServiceRevisionCount.
   627  func (mr *MockServiceRevisionWorkerMockRecorder) GetServiceRevisionCount() *gomock.Call {
   628  	mr.mock.ctrl.T.Helper()
   629  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServiceRevisionCount", reflect.TypeOf((*MockServiceRevisionWorker)(nil).GetServiceRevisionCount))
   630  }
   631  
   632  // Notify mocks base method.
   633  func (m *MockServiceRevisionWorker) Notify(serviceID string, valid bool) {
   634  	m.ctrl.T.Helper()
   635  	m.ctrl.Call(m, "Notify", serviceID, valid)
   636  }
   637  
   638  // Notify indicates an expected call of Notify.
   639  func (mr *MockServiceRevisionWorkerMockRecorder) Notify(serviceID, valid interface{}) *gomock.Call {
   640  	mr.mock.ctrl.T.Helper()
   641  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockServiceRevisionWorker)(nil).Notify), serviceID, valid)
   642  }
   643  
   644  // MockInstanceCache is a mock of InstanceCache interface.
   645  type MockInstanceCache struct {
   646  	ctrl     *gomock.Controller
   647  	recorder *MockInstanceCacheMockRecorder
   648  }
   649  
   650  // MockInstanceCacheMockRecorder is the mock recorder for MockInstanceCache.
   651  type MockInstanceCacheMockRecorder struct {
   652  	mock *MockInstanceCache
   653  }
   654  
   655  // NewMockInstanceCache creates a new mock instance.
   656  func NewMockInstanceCache(ctrl *gomock.Controller) *MockInstanceCache {
   657  	mock := &MockInstanceCache{ctrl: ctrl}
   658  	mock.recorder = &MockInstanceCacheMockRecorder{mock}
   659  	return mock
   660  }
   661  
   662  // EXPECT returns an object that allows the caller to indicate expected use.
   663  func (m *MockInstanceCache) EXPECT() *MockInstanceCacheMockRecorder {
   664  	return m.recorder
   665  }
   666  
   667  // AddListener mocks base method.
   668  func (m *MockInstanceCache) AddListener(listeners []api.Listener) {
   669  	m.ctrl.T.Helper()
   670  	m.ctrl.Call(m, "AddListener", listeners)
   671  }
   672  
   673  // AddListener indicates an expected call of AddListener.
   674  func (mr *MockInstanceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
   675  	mr.mock.ctrl.T.Helper()
   676  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockInstanceCache)(nil).AddListener), listeners)
   677  }
   678  
   679  // Clear mocks base method.
   680  func (m *MockInstanceCache) Clear() error {
   681  	m.ctrl.T.Helper()
   682  	ret := m.ctrl.Call(m, "Clear")
   683  	ret0, _ := ret[0].(error)
   684  	return ret0
   685  }
   686  
   687  // Clear indicates an expected call of Clear.
   688  func (mr *MockInstanceCacheMockRecorder) Clear() *gomock.Call {
   689  	mr.mock.ctrl.T.Helper()
   690  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockInstanceCache)(nil).Clear))
   691  }
   692  
   693  // GetInstance mocks base method.
   694  func (m *MockInstanceCache) GetInstance(instanceID string) *model.Instance {
   695  	m.ctrl.T.Helper()
   696  	ret := m.ctrl.Call(m, "GetInstance", instanceID)
   697  	ret0, _ := ret[0].(*model.Instance)
   698  	return ret0
   699  }
   700  
   701  // GetInstance indicates an expected call of GetInstance.
   702  func (mr *MockInstanceCacheMockRecorder) GetInstance(instanceID interface{}) *gomock.Call {
   703  	mr.mock.ctrl.T.Helper()
   704  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstance", reflect.TypeOf((*MockInstanceCache)(nil).GetInstance), instanceID)
   705  }
   706  
   707  // GetInstanceLabels mocks base method.
   708  func (m *MockInstanceCache) GetInstanceLabels(serviceID string) *service_manage.InstanceLabels {
   709  	m.ctrl.T.Helper()
   710  	ret := m.ctrl.Call(m, "GetInstanceLabels", serviceID)
   711  	ret0, _ := ret[0].(*service_manage.InstanceLabels)
   712  	return ret0
   713  }
   714  
   715  // GetInstanceLabels indicates an expected call of GetInstanceLabels.
   716  func (mr *MockInstanceCacheMockRecorder) GetInstanceLabels(serviceID interface{}) *gomock.Call {
   717  	mr.mock.ctrl.T.Helper()
   718  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstanceLabels", reflect.TypeOf((*MockInstanceCache)(nil).GetInstanceLabels), serviceID)
   719  }
   720  
   721  // GetInstancesByServiceID mocks base method.
   722  func (m *MockInstanceCache) GetInstancesByServiceID(serviceID string) []*model.Instance {
   723  	m.ctrl.T.Helper()
   724  	ret := m.ctrl.Call(m, "GetInstancesByServiceID", serviceID)
   725  	ret0, _ := ret[0].([]*model.Instance)
   726  	return ret0
   727  }
   728  
   729  // GetInstancesByServiceID indicates an expected call of GetInstancesByServiceID.
   730  func (mr *MockInstanceCacheMockRecorder) GetInstancesByServiceID(serviceID interface{}) *gomock.Call {
   731  	mr.mock.ctrl.T.Helper()
   732  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesByServiceID", reflect.TypeOf((*MockInstanceCache)(nil).GetInstancesByServiceID), serviceID)
   733  }
   734  
   735  // GetInstancesCount mocks base method.
   736  func (m *MockInstanceCache) GetInstancesCount() int {
   737  	m.ctrl.T.Helper()
   738  	ret := m.ctrl.Call(m, "GetInstancesCount")
   739  	ret0, _ := ret[0].(int)
   740  	return ret0
   741  }
   742  
   743  // GetInstancesCount indicates an expected call of GetInstancesCount.
   744  func (mr *MockInstanceCacheMockRecorder) GetInstancesCount() *gomock.Call {
   745  	mr.mock.ctrl.T.Helper()
   746  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesCount", reflect.TypeOf((*MockInstanceCache)(nil).GetInstancesCount))
   747  }
   748  
   749  // GetInstancesCountByServiceID mocks base method.
   750  func (m *MockInstanceCache) GetInstancesCountByServiceID(serviceID string) model.InstanceCount {
   751  	m.ctrl.T.Helper()
   752  	ret := m.ctrl.Call(m, "GetInstancesCountByServiceID", serviceID)
   753  	ret0, _ := ret[0].(model.InstanceCount)
   754  	return ret0
   755  }
   756  
   757  // GetInstancesCountByServiceID indicates an expected call of GetInstancesCountByServiceID.
   758  func (mr *MockInstanceCacheMockRecorder) GetInstancesCountByServiceID(serviceID interface{}) *gomock.Call {
   759  	mr.mock.ctrl.T.Helper()
   760  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInstancesCountByServiceID", reflect.TypeOf((*MockInstanceCache)(nil).GetInstancesCountByServiceID), serviceID)
   761  }
   762  
   763  // GetServicePorts mocks base method.
   764  func (m *MockInstanceCache) GetServicePorts(serviceID string) []*model.ServicePort {
   765  	m.ctrl.T.Helper()
   766  	ret := m.ctrl.Call(m, "GetServicePorts", serviceID)
   767  	ret0, _ := ret[0].([]*model.ServicePort)
   768  	return ret0
   769  }
   770  
   771  // GetServicePorts indicates an expected call of GetServicePorts.
   772  func (mr *MockInstanceCacheMockRecorder) GetServicePorts(serviceID interface{}) *gomock.Call {
   773  	mr.mock.ctrl.T.Helper()
   774  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetServicePorts", reflect.TypeOf((*MockInstanceCache)(nil).GetServicePorts), serviceID)
   775  }
   776  
   777  // Initialize mocks base method.
   778  func (m *MockInstanceCache) Initialize(c map[string]interface{}) error {
   779  	m.ctrl.T.Helper()
   780  	ret := m.ctrl.Call(m, "Initialize", c)
   781  	ret0, _ := ret[0].(error)
   782  	return ret0
   783  }
   784  
   785  // Initialize indicates an expected call of Initialize.
   786  func (mr *MockInstanceCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
   787  	mr.mock.ctrl.T.Helper()
   788  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockInstanceCache)(nil).Initialize), c)
   789  }
   790  
   791  // IteratorInstances mocks base method.
   792  func (m *MockInstanceCache) IteratorInstances(iterProc api.InstanceIterProc) error {
   793  	m.ctrl.T.Helper()
   794  	ret := m.ctrl.Call(m, "IteratorInstances", iterProc)
   795  	ret0, _ := ret[0].(error)
   796  	return ret0
   797  }
   798  
   799  // IteratorInstances indicates an expected call of IteratorInstances.
   800  func (mr *MockInstanceCacheMockRecorder) IteratorInstances(iterProc interface{}) *gomock.Call {
   801  	mr.mock.ctrl.T.Helper()
   802  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorInstances", reflect.TypeOf((*MockInstanceCache)(nil).IteratorInstances), iterProc)
   803  }
   804  
   805  // IteratorInstancesWithService mocks base method.
   806  func (m *MockInstanceCache) IteratorInstancesWithService(serviceID string, iterProc api.InstanceIterProc) error {
   807  	m.ctrl.T.Helper()
   808  	ret := m.ctrl.Call(m, "IteratorInstancesWithService", serviceID, iterProc)
   809  	ret0, _ := ret[0].(error)
   810  	return ret0
   811  }
   812  
   813  // IteratorInstancesWithService indicates an expected call of IteratorInstancesWithService.
   814  func (mr *MockInstanceCacheMockRecorder) IteratorInstancesWithService(serviceID, iterProc interface{}) *gomock.Call {
   815  	mr.mock.ctrl.T.Helper()
   816  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorInstancesWithService", reflect.TypeOf((*MockInstanceCache)(nil).IteratorInstancesWithService), serviceID, iterProc)
   817  }
   818  
   819  // Name mocks base method.
   820  func (m *MockInstanceCache) Name() string {
   821  	m.ctrl.T.Helper()
   822  	ret := m.ctrl.Call(m, "Name")
   823  	ret0, _ := ret[0].(string)
   824  	return ret0
   825  }
   826  
   827  // Name indicates an expected call of Name.
   828  func (mr *MockInstanceCacheMockRecorder) Name() *gomock.Call {
   829  	mr.mock.ctrl.T.Helper()
   830  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockInstanceCache)(nil).Name))
   831  }
   832  
   833  // QueryInstances mocks base method.
   834  func (m *MockInstanceCache) QueryInstances(filter, metaFilter map[string]string, offset, limit uint32) (uint32, []*model.Instance, error) {
   835  	m.ctrl.T.Helper()
   836  	ret := m.ctrl.Call(m, "QueryInstances", filter, metaFilter, offset, limit)
   837  	ret0, _ := ret[0].(uint32)
   838  	ret1, _ := ret[1].([]*model.Instance)
   839  	ret2, _ := ret[2].(error)
   840  	return ret0, ret1, ret2
   841  }
   842  
   843  // QueryInstances indicates an expected call of QueryInstances.
   844  func (mr *MockInstanceCacheMockRecorder) QueryInstances(filter, metaFilter, offset, limit interface{}) *gomock.Call {
   845  	mr.mock.ctrl.T.Helper()
   846  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryInstances", reflect.TypeOf((*MockInstanceCache)(nil).QueryInstances), filter, metaFilter, offset, limit)
   847  }
   848  
   849  // Update mocks base method.
   850  func (m *MockInstanceCache) Update() error {
   851  	m.ctrl.T.Helper()
   852  	ret := m.ctrl.Call(m, "Update")
   853  	ret0, _ := ret[0].(error)
   854  	return ret0
   855  }
   856  
   857  // Update indicates an expected call of Update.
   858  func (mr *MockInstanceCacheMockRecorder) Update() *gomock.Call {
   859  	mr.mock.ctrl.T.Helper()
   860  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockInstanceCache)(nil).Update))
   861  }
   862  
   863  // MockFaultDetectCache is a mock of FaultDetectCache interface.
   864  type MockFaultDetectCache struct {
   865  	ctrl     *gomock.Controller
   866  	recorder *MockFaultDetectCacheMockRecorder
   867  }
   868  
   869  // MockFaultDetectCacheMockRecorder is the mock recorder for MockFaultDetectCache.
   870  type MockFaultDetectCacheMockRecorder struct {
   871  	mock *MockFaultDetectCache
   872  }
   873  
   874  // NewMockFaultDetectCache creates a new mock instance.
   875  func NewMockFaultDetectCache(ctrl *gomock.Controller) *MockFaultDetectCache {
   876  	mock := &MockFaultDetectCache{ctrl: ctrl}
   877  	mock.recorder = &MockFaultDetectCacheMockRecorder{mock}
   878  	return mock
   879  }
   880  
   881  // EXPECT returns an object that allows the caller to indicate expected use.
   882  func (m *MockFaultDetectCache) EXPECT() *MockFaultDetectCacheMockRecorder {
   883  	return m.recorder
   884  }
   885  
   886  // AddListener mocks base method.
   887  func (m *MockFaultDetectCache) AddListener(listeners []api.Listener) {
   888  	m.ctrl.T.Helper()
   889  	m.ctrl.Call(m, "AddListener", listeners)
   890  }
   891  
   892  // AddListener indicates an expected call of AddListener.
   893  func (mr *MockFaultDetectCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
   894  	mr.mock.ctrl.T.Helper()
   895  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockFaultDetectCache)(nil).AddListener), listeners)
   896  }
   897  
   898  // Clear mocks base method.
   899  func (m *MockFaultDetectCache) Clear() error {
   900  	m.ctrl.T.Helper()
   901  	ret := m.ctrl.Call(m, "Clear")
   902  	ret0, _ := ret[0].(error)
   903  	return ret0
   904  }
   905  
   906  // Clear indicates an expected call of Clear.
   907  func (mr *MockFaultDetectCacheMockRecorder) Clear() *gomock.Call {
   908  	mr.mock.ctrl.T.Helper()
   909  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockFaultDetectCache)(nil).Clear))
   910  }
   911  
   912  // GetFaultDetectConfig mocks base method.
   913  func (m *MockFaultDetectCache) GetFaultDetectConfig(svcName, namespace string) *model.ServiceWithFaultDetectRules {
   914  	m.ctrl.T.Helper()
   915  	ret := m.ctrl.Call(m, "GetFaultDetectConfig", svcName, namespace)
   916  	ret0, _ := ret[0].(*model.ServiceWithFaultDetectRules)
   917  	return ret0
   918  }
   919  
   920  // GetFaultDetectConfig indicates an expected call of GetFaultDetectConfig.
   921  func (mr *MockFaultDetectCacheMockRecorder) GetFaultDetectConfig(svcName, namespace interface{}) *gomock.Call {
   922  	mr.mock.ctrl.T.Helper()
   923  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFaultDetectConfig", reflect.TypeOf((*MockFaultDetectCache)(nil).GetFaultDetectConfig), svcName, namespace)
   924  }
   925  
   926  // Initialize mocks base method.
   927  func (m *MockFaultDetectCache) Initialize(c map[string]interface{}) error {
   928  	m.ctrl.T.Helper()
   929  	ret := m.ctrl.Call(m, "Initialize", c)
   930  	ret0, _ := ret[0].(error)
   931  	return ret0
   932  }
   933  
   934  // Initialize indicates an expected call of Initialize.
   935  func (mr *MockFaultDetectCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
   936  	mr.mock.ctrl.T.Helper()
   937  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockFaultDetectCache)(nil).Initialize), c)
   938  }
   939  
   940  // Name mocks base method.
   941  func (m *MockFaultDetectCache) Name() string {
   942  	m.ctrl.T.Helper()
   943  	ret := m.ctrl.Call(m, "Name")
   944  	ret0, _ := ret[0].(string)
   945  	return ret0
   946  }
   947  
   948  // Name indicates an expected call of Name.
   949  func (mr *MockFaultDetectCacheMockRecorder) Name() *gomock.Call {
   950  	mr.mock.ctrl.T.Helper()
   951  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockFaultDetectCache)(nil).Name))
   952  }
   953  
   954  // Update mocks base method.
   955  func (m *MockFaultDetectCache) Update() error {
   956  	m.ctrl.T.Helper()
   957  	ret := m.ctrl.Call(m, "Update")
   958  	ret0, _ := ret[0].(error)
   959  	return ret0
   960  }
   961  
   962  // Update indicates an expected call of Update.
   963  func (mr *MockFaultDetectCacheMockRecorder) Update() *gomock.Call {
   964  	mr.mock.ctrl.T.Helper()
   965  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockFaultDetectCache)(nil).Update))
   966  }
   967  
   968  // MockRoutingConfigCache is a mock of RoutingConfigCache interface.
   969  type MockRoutingConfigCache struct {
   970  	ctrl     *gomock.Controller
   971  	recorder *MockRoutingConfigCacheMockRecorder
   972  }
   973  
   974  // MockRoutingConfigCacheMockRecorder is the mock recorder for MockRoutingConfigCache.
   975  type MockRoutingConfigCacheMockRecorder struct {
   976  	mock *MockRoutingConfigCache
   977  }
   978  
   979  // NewMockRoutingConfigCache creates a new mock instance.
   980  func NewMockRoutingConfigCache(ctrl *gomock.Controller) *MockRoutingConfigCache {
   981  	mock := &MockRoutingConfigCache{ctrl: ctrl}
   982  	mock.recorder = &MockRoutingConfigCacheMockRecorder{mock}
   983  	return mock
   984  }
   985  
   986  // EXPECT returns an object that allows the caller to indicate expected use.
   987  func (m *MockRoutingConfigCache) EXPECT() *MockRoutingConfigCacheMockRecorder {
   988  	return m.recorder
   989  }
   990  
   991  // AddListener mocks base method.
   992  func (m *MockRoutingConfigCache) AddListener(listeners []api.Listener) {
   993  	m.ctrl.T.Helper()
   994  	m.ctrl.Call(m, "AddListener", listeners)
   995  }
   996  
   997  // AddListener indicates an expected call of AddListener.
   998  func (mr *MockRoutingConfigCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
   999  	mr.mock.ctrl.T.Helper()
  1000  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockRoutingConfigCache)(nil).AddListener), listeners)
  1001  }
  1002  
  1003  // Clear mocks base method.
  1004  func (m *MockRoutingConfigCache) Clear() error {
  1005  	m.ctrl.T.Helper()
  1006  	ret := m.ctrl.Call(m, "Clear")
  1007  	ret0, _ := ret[0].(error)
  1008  	return ret0
  1009  }
  1010  
  1011  // Clear indicates an expected call of Clear.
  1012  func (mr *MockRoutingConfigCacheMockRecorder) Clear() *gomock.Call {
  1013  	mr.mock.ctrl.T.Helper()
  1014  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockRoutingConfigCache)(nil).Clear))
  1015  }
  1016  
  1017  // GetRouterConfig mocks base method.
  1018  func (m *MockRoutingConfigCache) GetRouterConfig(id, service, namespace string) (*traffic_manage.Routing, error) {
  1019  	m.ctrl.T.Helper()
  1020  	ret := m.ctrl.Call(m, "GetRouterConfig", id, service, namespace)
  1021  	ret0, _ := ret[0].(*traffic_manage.Routing)
  1022  	ret1, _ := ret[1].(error)
  1023  	return ret0, ret1
  1024  }
  1025  
  1026  // GetRouterConfig indicates an expected call of GetRouterConfig.
  1027  func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfig(id, service, namespace interface{}) *gomock.Call {
  1028  	mr.mock.ctrl.T.Helper()
  1029  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouterConfig", reflect.TypeOf((*MockRoutingConfigCache)(nil).GetRouterConfig), id, service, namespace)
  1030  }
  1031  
  1032  // GetRouterConfigV2 mocks base method.
  1033  func (m *MockRoutingConfigCache) GetRouterConfigV2(id, service, namespace string) (*traffic_manage.Routing, error) {
  1034  	m.ctrl.T.Helper()
  1035  	ret := m.ctrl.Call(m, "GetRouterConfigV2", id, service, namespace)
  1036  	ret0, _ := ret[0].(*traffic_manage.Routing)
  1037  	ret1, _ := ret[1].(error)
  1038  	return ret0, ret1
  1039  }
  1040  
  1041  // GetRouterConfigV2 indicates an expected call of GetRouterConfigV2.
  1042  func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfigV2(id, service, namespace interface{}) *gomock.Call {
  1043  	mr.mock.ctrl.T.Helper()
  1044  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouterConfigV2", reflect.TypeOf((*MockRoutingConfigCache)(nil).GetRouterConfigV2), id, service, namespace)
  1045  }
  1046  
  1047  // GetRoutingConfigCount mocks base method.
  1048  func (m *MockRoutingConfigCache) GetRoutingConfigCount() int {
  1049  	m.ctrl.T.Helper()
  1050  	ret := m.ctrl.Call(m, "GetRoutingConfigCount")
  1051  	ret0, _ := ret[0].(int)
  1052  	return ret0
  1053  }
  1054  
  1055  // GetRoutingConfigCount indicates an expected call of GetRoutingConfigCount.
  1056  func (mr *MockRoutingConfigCacheMockRecorder) GetRoutingConfigCount() *gomock.Call {
  1057  	mr.mock.ctrl.T.Helper()
  1058  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRoutingConfigCount", reflect.TypeOf((*MockRoutingConfigCache)(nil).GetRoutingConfigCount))
  1059  }
  1060  
  1061  // Initialize mocks base method.
  1062  func (m *MockRoutingConfigCache) Initialize(c map[string]interface{}) error {
  1063  	m.ctrl.T.Helper()
  1064  	ret := m.ctrl.Call(m, "Initialize", c)
  1065  	ret0, _ := ret[0].(error)
  1066  	return ret0
  1067  }
  1068  
  1069  // Initialize indicates an expected call of Initialize.
  1070  func (mr *MockRoutingConfigCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1071  	mr.mock.ctrl.T.Helper()
  1072  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockRoutingConfigCache)(nil).Initialize), c)
  1073  }
  1074  
  1075  // IsConvertFromV1 mocks base method.
  1076  func (m *MockRoutingConfigCache) IsConvertFromV1(id string) (string, bool) {
  1077  	m.ctrl.T.Helper()
  1078  	ret := m.ctrl.Call(m, "IsConvertFromV1", id)
  1079  	ret0, _ := ret[0].(string)
  1080  	ret1, _ := ret[1].(bool)
  1081  	return ret0, ret1
  1082  }
  1083  
  1084  // IsConvertFromV1 indicates an expected call of IsConvertFromV1.
  1085  func (mr *MockRoutingConfigCacheMockRecorder) IsConvertFromV1(id interface{}) *gomock.Call {
  1086  	mr.mock.ctrl.T.Helper()
  1087  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsConvertFromV1", reflect.TypeOf((*MockRoutingConfigCache)(nil).IsConvertFromV1), id)
  1088  }
  1089  
  1090  // IteratorRouterRule mocks base method.
  1091  func (m *MockRoutingConfigCache) IteratorRouterRule(iterProc api.RouterRuleIterProc) {
  1092  	m.ctrl.T.Helper()
  1093  	m.ctrl.Call(m, "IteratorRouterRule", iterProc)
  1094  }
  1095  
  1096  // IteratorRouterRule indicates an expected call of IteratorRouterRule.
  1097  func (mr *MockRoutingConfigCacheMockRecorder) IteratorRouterRule(iterProc interface{}) *gomock.Call {
  1098  	mr.mock.ctrl.T.Helper()
  1099  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorRouterRule", reflect.TypeOf((*MockRoutingConfigCache)(nil).IteratorRouterRule), iterProc)
  1100  }
  1101  
  1102  // ListRouterRule mocks base method.
  1103  func (m *MockRoutingConfigCache) ListRouterRule(service, namespace string) []*model.ExtendRouterConfig {
  1104  	m.ctrl.T.Helper()
  1105  	ret := m.ctrl.Call(m, "ListRouterRule", service, namespace)
  1106  	ret0, _ := ret[0].([]*model.ExtendRouterConfig)
  1107  	return ret0
  1108  }
  1109  
  1110  // ListRouterRule indicates an expected call of ListRouterRule.
  1111  func (mr *MockRoutingConfigCacheMockRecorder) ListRouterRule(service, namespace interface{}) *gomock.Call {
  1112  	mr.mock.ctrl.T.Helper()
  1113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListRouterRule", reflect.TypeOf((*MockRoutingConfigCache)(nil).ListRouterRule), service, namespace)
  1114  }
  1115  
  1116  // Name mocks base method.
  1117  func (m *MockRoutingConfigCache) Name() string {
  1118  	m.ctrl.T.Helper()
  1119  	ret := m.ctrl.Call(m, "Name")
  1120  	ret0, _ := ret[0].(string)
  1121  	return ret0
  1122  }
  1123  
  1124  // Name indicates an expected call of Name.
  1125  func (mr *MockRoutingConfigCacheMockRecorder) Name() *gomock.Call {
  1126  	mr.mock.ctrl.T.Helper()
  1127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockRoutingConfigCache)(nil).Name))
  1128  }
  1129  
  1130  // QueryRoutingConfigsV2 mocks base method.
  1131  func (m *MockRoutingConfigCache) QueryRoutingConfigsV2(args *api.RoutingArgs) (uint32, []*model.ExtendRouterConfig, error) {
  1132  	m.ctrl.T.Helper()
  1133  	ret := m.ctrl.Call(m, "QueryRoutingConfigsV2", args)
  1134  	ret0, _ := ret[0].(uint32)
  1135  	ret1, _ := ret[1].([]*model.ExtendRouterConfig)
  1136  	ret2, _ := ret[2].(error)
  1137  	return ret0, ret1, ret2
  1138  }
  1139  
  1140  // QueryRoutingConfigsV2 indicates an expected call of QueryRoutingConfigsV2.
  1141  func (mr *MockRoutingConfigCacheMockRecorder) QueryRoutingConfigsV2(args interface{}) *gomock.Call {
  1142  	mr.mock.ctrl.T.Helper()
  1143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryRoutingConfigsV2", reflect.TypeOf((*MockRoutingConfigCache)(nil).QueryRoutingConfigsV2), args)
  1144  }
  1145  
  1146  // Update mocks base method.
  1147  func (m *MockRoutingConfigCache) Update() error {
  1148  	m.ctrl.T.Helper()
  1149  	ret := m.ctrl.Call(m, "Update")
  1150  	ret0, _ := ret[0].(error)
  1151  	return ret0
  1152  }
  1153  
  1154  // Update indicates an expected call of Update.
  1155  func (mr *MockRoutingConfigCacheMockRecorder) Update() *gomock.Call {
  1156  	mr.mock.ctrl.T.Helper()
  1157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRoutingConfigCache)(nil).Update))
  1158  }
  1159  
  1160  // MockRateLimitCache is a mock of RateLimitCache interface.
  1161  type MockRateLimitCache struct {
  1162  	ctrl     *gomock.Controller
  1163  	recorder *MockRateLimitCacheMockRecorder
  1164  }
  1165  
  1166  // MockRateLimitCacheMockRecorder is the mock recorder for MockRateLimitCache.
  1167  type MockRateLimitCacheMockRecorder struct {
  1168  	mock *MockRateLimitCache
  1169  }
  1170  
  1171  // NewMockRateLimitCache creates a new mock instance.
  1172  func NewMockRateLimitCache(ctrl *gomock.Controller) *MockRateLimitCache {
  1173  	mock := &MockRateLimitCache{ctrl: ctrl}
  1174  	mock.recorder = &MockRateLimitCacheMockRecorder{mock}
  1175  	return mock
  1176  }
  1177  
  1178  // EXPECT returns an object that allows the caller to indicate expected use.
  1179  func (m *MockRateLimitCache) EXPECT() *MockRateLimitCacheMockRecorder {
  1180  	return m.recorder
  1181  }
  1182  
  1183  // AddListener mocks base method.
  1184  func (m *MockRateLimitCache) AddListener(listeners []api.Listener) {
  1185  	m.ctrl.T.Helper()
  1186  	m.ctrl.Call(m, "AddListener", listeners)
  1187  }
  1188  
  1189  // AddListener indicates an expected call of AddListener.
  1190  func (mr *MockRateLimitCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1191  	mr.mock.ctrl.T.Helper()
  1192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockRateLimitCache)(nil).AddListener), listeners)
  1193  }
  1194  
  1195  // Clear mocks base method.
  1196  func (m *MockRateLimitCache) Clear() error {
  1197  	m.ctrl.T.Helper()
  1198  	ret := m.ctrl.Call(m, "Clear")
  1199  	ret0, _ := ret[0].(error)
  1200  	return ret0
  1201  }
  1202  
  1203  // Clear indicates an expected call of Clear.
  1204  func (mr *MockRateLimitCacheMockRecorder) Clear() *gomock.Call {
  1205  	mr.mock.ctrl.T.Helper()
  1206  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockRateLimitCache)(nil).Clear))
  1207  }
  1208  
  1209  // GetRateLimitRules mocks base method.
  1210  func (m *MockRateLimitCache) GetRateLimitRules(serviceKey model.ServiceKey) ([]*model.RateLimit, string) {
  1211  	m.ctrl.T.Helper()
  1212  	ret := m.ctrl.Call(m, "GetRateLimitRules", serviceKey)
  1213  	ret0, _ := ret[0].([]*model.RateLimit)
  1214  	ret1, _ := ret[1].(string)
  1215  	return ret0, ret1
  1216  }
  1217  
  1218  // GetRateLimitRules indicates an expected call of GetRateLimitRules.
  1219  func (mr *MockRateLimitCacheMockRecorder) GetRateLimitRules(serviceKey interface{}) *gomock.Call {
  1220  	mr.mock.ctrl.T.Helper()
  1221  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimitRules", reflect.TypeOf((*MockRateLimitCache)(nil).GetRateLimitRules), serviceKey)
  1222  }
  1223  
  1224  // GetRateLimitsCount mocks base method.
  1225  func (m *MockRateLimitCache) GetRateLimitsCount() int {
  1226  	m.ctrl.T.Helper()
  1227  	ret := m.ctrl.Call(m, "GetRateLimitsCount")
  1228  	ret0, _ := ret[0].(int)
  1229  	return ret0
  1230  }
  1231  
  1232  // GetRateLimitsCount indicates an expected call of GetRateLimitsCount.
  1233  func (mr *MockRateLimitCacheMockRecorder) GetRateLimitsCount() *gomock.Call {
  1234  	mr.mock.ctrl.T.Helper()
  1235  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRateLimitsCount", reflect.TypeOf((*MockRateLimitCache)(nil).GetRateLimitsCount))
  1236  }
  1237  
  1238  // Initialize mocks base method.
  1239  func (m *MockRateLimitCache) Initialize(c map[string]interface{}) error {
  1240  	m.ctrl.T.Helper()
  1241  	ret := m.ctrl.Call(m, "Initialize", c)
  1242  	ret0, _ := ret[0].(error)
  1243  	return ret0
  1244  }
  1245  
  1246  // Initialize indicates an expected call of Initialize.
  1247  func (mr *MockRateLimitCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1248  	mr.mock.ctrl.T.Helper()
  1249  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockRateLimitCache)(nil).Initialize), c)
  1250  }
  1251  
  1252  // IteratorRateLimit mocks base method.
  1253  func (m *MockRateLimitCache) IteratorRateLimit(rateLimitIterProc api.RateLimitIterProc) {
  1254  	m.ctrl.T.Helper()
  1255  	m.ctrl.Call(m, "IteratorRateLimit", rateLimitIterProc)
  1256  }
  1257  
  1258  // IteratorRateLimit indicates an expected call of IteratorRateLimit.
  1259  func (mr *MockRateLimitCacheMockRecorder) IteratorRateLimit(rateLimitIterProc interface{}) *gomock.Call {
  1260  	mr.mock.ctrl.T.Helper()
  1261  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorRateLimit", reflect.TypeOf((*MockRateLimitCache)(nil).IteratorRateLimit), rateLimitIterProc)
  1262  }
  1263  
  1264  // Name mocks base method.
  1265  func (m *MockRateLimitCache) Name() string {
  1266  	m.ctrl.T.Helper()
  1267  	ret := m.ctrl.Call(m, "Name")
  1268  	ret0, _ := ret[0].(string)
  1269  	return ret0
  1270  }
  1271  
  1272  // Name indicates an expected call of Name.
  1273  func (mr *MockRateLimitCacheMockRecorder) Name() *gomock.Call {
  1274  	mr.mock.ctrl.T.Helper()
  1275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockRateLimitCache)(nil).Name))
  1276  }
  1277  
  1278  // QueryRateLimitRules mocks base method.
  1279  func (m *MockRateLimitCache) QueryRateLimitRules(args api.RateLimitRuleArgs) (uint32, []*model.RateLimit, error) {
  1280  	m.ctrl.T.Helper()
  1281  	ret := m.ctrl.Call(m, "QueryRateLimitRules", args)
  1282  	ret0, _ := ret[0].(uint32)
  1283  	ret1, _ := ret[1].([]*model.RateLimit)
  1284  	ret2, _ := ret[2].(error)
  1285  	return ret0, ret1, ret2
  1286  }
  1287  
  1288  // QueryRateLimitRules indicates an expected call of QueryRateLimitRules.
  1289  func (mr *MockRateLimitCacheMockRecorder) QueryRateLimitRules(args interface{}) *gomock.Call {
  1290  	mr.mock.ctrl.T.Helper()
  1291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryRateLimitRules", reflect.TypeOf((*MockRateLimitCache)(nil).QueryRateLimitRules), args)
  1292  }
  1293  
  1294  // Update mocks base method.
  1295  func (m *MockRateLimitCache) Update() error {
  1296  	m.ctrl.T.Helper()
  1297  	ret := m.ctrl.Call(m, "Update")
  1298  	ret0, _ := ret[0].(error)
  1299  	return ret0
  1300  }
  1301  
  1302  // Update indicates an expected call of Update.
  1303  func (mr *MockRateLimitCacheMockRecorder) Update() *gomock.Call {
  1304  	mr.mock.ctrl.T.Helper()
  1305  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockRateLimitCache)(nil).Update))
  1306  }
  1307  
  1308  // MockL5Cache is a mock of L5Cache interface.
  1309  type MockL5Cache struct {
  1310  	ctrl     *gomock.Controller
  1311  	recorder *MockL5CacheMockRecorder
  1312  }
  1313  
  1314  // MockL5CacheMockRecorder is the mock recorder for MockL5Cache.
  1315  type MockL5CacheMockRecorder struct {
  1316  	mock *MockL5Cache
  1317  }
  1318  
  1319  // NewMockL5Cache creates a new mock instance.
  1320  func NewMockL5Cache(ctrl *gomock.Controller) *MockL5Cache {
  1321  	mock := &MockL5Cache{ctrl: ctrl}
  1322  	mock.recorder = &MockL5CacheMockRecorder{mock}
  1323  	return mock
  1324  }
  1325  
  1326  // EXPECT returns an object that allows the caller to indicate expected use.
  1327  func (m *MockL5Cache) EXPECT() *MockL5CacheMockRecorder {
  1328  	return m.recorder
  1329  }
  1330  
  1331  // AddListener mocks base method.
  1332  func (m *MockL5Cache) AddListener(listeners []api.Listener) {
  1333  	m.ctrl.T.Helper()
  1334  	m.ctrl.Call(m, "AddListener", listeners)
  1335  }
  1336  
  1337  // AddListener indicates an expected call of AddListener.
  1338  func (mr *MockL5CacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1339  	mr.mock.ctrl.T.Helper()
  1340  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockL5Cache)(nil).AddListener), listeners)
  1341  }
  1342  
  1343  // CheckRouteExisted mocks base method.
  1344  func (m *MockL5Cache) CheckRouteExisted(ip, modID, cmdID uint32) bool {
  1345  	m.ctrl.T.Helper()
  1346  	ret := m.ctrl.Call(m, "CheckRouteExisted", ip, modID, cmdID)
  1347  	ret0, _ := ret[0].(bool)
  1348  	return ret0
  1349  }
  1350  
  1351  // CheckRouteExisted indicates an expected call of CheckRouteExisted.
  1352  func (mr *MockL5CacheMockRecorder) CheckRouteExisted(ip, modID, cmdID interface{}) *gomock.Call {
  1353  	mr.mock.ctrl.T.Helper()
  1354  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckRouteExisted", reflect.TypeOf((*MockL5Cache)(nil).CheckRouteExisted), ip, modID, cmdID)
  1355  }
  1356  
  1357  // Clear mocks base method.
  1358  func (m *MockL5Cache) Clear() error {
  1359  	m.ctrl.T.Helper()
  1360  	ret := m.ctrl.Call(m, "Clear")
  1361  	ret0, _ := ret[0].(error)
  1362  	return ret0
  1363  }
  1364  
  1365  // Clear indicates an expected call of Clear.
  1366  func (mr *MockL5CacheMockRecorder) Clear() *gomock.Call {
  1367  	mr.mock.ctrl.T.Helper()
  1368  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockL5Cache)(nil).Clear))
  1369  }
  1370  
  1371  // GetIPConfig mocks base method.
  1372  func (m *MockL5Cache) GetIPConfig(ip uint32) *model.IPConfig {
  1373  	m.ctrl.T.Helper()
  1374  	ret := m.ctrl.Call(m, "GetIPConfig", ip)
  1375  	ret0, _ := ret[0].(*model.IPConfig)
  1376  	return ret0
  1377  }
  1378  
  1379  // GetIPConfig indicates an expected call of GetIPConfig.
  1380  func (mr *MockL5CacheMockRecorder) GetIPConfig(ip interface{}) *gomock.Call {
  1381  	mr.mock.ctrl.T.Helper()
  1382  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetIPConfig", reflect.TypeOf((*MockL5Cache)(nil).GetIPConfig), ip)
  1383  }
  1384  
  1385  // GetPolicy mocks base method.
  1386  func (m *MockL5Cache) GetPolicy(modID uint32) *model.Policy {
  1387  	m.ctrl.T.Helper()
  1388  	ret := m.ctrl.Call(m, "GetPolicy", modID)
  1389  	ret0, _ := ret[0].(*model.Policy)
  1390  	return ret0
  1391  }
  1392  
  1393  // GetPolicy indicates an expected call of GetPolicy.
  1394  func (mr *MockL5CacheMockRecorder) GetPolicy(modID interface{}) *gomock.Call {
  1395  	mr.mock.ctrl.T.Helper()
  1396  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPolicy", reflect.TypeOf((*MockL5Cache)(nil).GetPolicy), modID)
  1397  }
  1398  
  1399  // GetRouteByIP mocks base method.
  1400  func (m *MockL5Cache) GetRouteByIP(ip uint32) []*model.Route {
  1401  	m.ctrl.T.Helper()
  1402  	ret := m.ctrl.Call(m, "GetRouteByIP", ip)
  1403  	ret0, _ := ret[0].([]*model.Route)
  1404  	return ret0
  1405  }
  1406  
  1407  // GetRouteByIP indicates an expected call of GetRouteByIP.
  1408  func (mr *MockL5CacheMockRecorder) GetRouteByIP(ip interface{}) *gomock.Call {
  1409  	mr.mock.ctrl.T.Helper()
  1410  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRouteByIP", reflect.TypeOf((*MockL5Cache)(nil).GetRouteByIP), ip)
  1411  }
  1412  
  1413  // GetSection mocks base method.
  1414  func (m *MockL5Cache) GetSection(modeID uint32) []*model.Section {
  1415  	m.ctrl.T.Helper()
  1416  	ret := m.ctrl.Call(m, "GetSection", modeID)
  1417  	ret0, _ := ret[0].([]*model.Section)
  1418  	return ret0
  1419  }
  1420  
  1421  // GetSection indicates an expected call of GetSection.
  1422  func (mr *MockL5CacheMockRecorder) GetSection(modeID interface{}) *gomock.Call {
  1423  	mr.mock.ctrl.T.Helper()
  1424  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSection", reflect.TypeOf((*MockL5Cache)(nil).GetSection), modeID)
  1425  }
  1426  
  1427  // Initialize mocks base method.
  1428  func (m *MockL5Cache) Initialize(c map[string]interface{}) error {
  1429  	m.ctrl.T.Helper()
  1430  	ret := m.ctrl.Call(m, "Initialize", c)
  1431  	ret0, _ := ret[0].(error)
  1432  	return ret0
  1433  }
  1434  
  1435  // Initialize indicates an expected call of Initialize.
  1436  func (mr *MockL5CacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1437  	mr.mock.ctrl.T.Helper()
  1438  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockL5Cache)(nil).Initialize), c)
  1439  }
  1440  
  1441  // Name mocks base method.
  1442  func (m *MockL5Cache) Name() string {
  1443  	m.ctrl.T.Helper()
  1444  	ret := m.ctrl.Call(m, "Name")
  1445  	ret0, _ := ret[0].(string)
  1446  	return ret0
  1447  }
  1448  
  1449  // Name indicates an expected call of Name.
  1450  func (mr *MockL5CacheMockRecorder) Name() *gomock.Call {
  1451  	mr.mock.ctrl.T.Helper()
  1452  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockL5Cache)(nil).Name))
  1453  }
  1454  
  1455  // Update mocks base method.
  1456  func (m *MockL5Cache) Update() error {
  1457  	m.ctrl.T.Helper()
  1458  	ret := m.ctrl.Call(m, "Update")
  1459  	ret0, _ := ret[0].(error)
  1460  	return ret0
  1461  }
  1462  
  1463  // Update indicates an expected call of Update.
  1464  func (mr *MockL5CacheMockRecorder) Update() *gomock.Call {
  1465  	mr.mock.ctrl.T.Helper()
  1466  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockL5Cache)(nil).Update))
  1467  }
  1468  
  1469  // MockCircuitBreakerCache is a mock of CircuitBreakerCache interface.
  1470  type MockCircuitBreakerCache struct {
  1471  	ctrl     *gomock.Controller
  1472  	recorder *MockCircuitBreakerCacheMockRecorder
  1473  }
  1474  
  1475  // MockCircuitBreakerCacheMockRecorder is the mock recorder for MockCircuitBreakerCache.
  1476  type MockCircuitBreakerCacheMockRecorder struct {
  1477  	mock *MockCircuitBreakerCache
  1478  }
  1479  
  1480  // NewMockCircuitBreakerCache creates a new mock instance.
  1481  func NewMockCircuitBreakerCache(ctrl *gomock.Controller) *MockCircuitBreakerCache {
  1482  	mock := &MockCircuitBreakerCache{ctrl: ctrl}
  1483  	mock.recorder = &MockCircuitBreakerCacheMockRecorder{mock}
  1484  	return mock
  1485  }
  1486  
  1487  // EXPECT returns an object that allows the caller to indicate expected use.
  1488  func (m *MockCircuitBreakerCache) EXPECT() *MockCircuitBreakerCacheMockRecorder {
  1489  	return m.recorder
  1490  }
  1491  
  1492  // AddListener mocks base method.
  1493  func (m *MockCircuitBreakerCache) AddListener(listeners []api.Listener) {
  1494  	m.ctrl.T.Helper()
  1495  	m.ctrl.Call(m, "AddListener", listeners)
  1496  }
  1497  
  1498  // AddListener indicates an expected call of AddListener.
  1499  func (mr *MockCircuitBreakerCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1500  	mr.mock.ctrl.T.Helper()
  1501  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockCircuitBreakerCache)(nil).AddListener), listeners)
  1502  }
  1503  
  1504  // Clear mocks base method.
  1505  func (m *MockCircuitBreakerCache) Clear() error {
  1506  	m.ctrl.T.Helper()
  1507  	ret := m.ctrl.Call(m, "Clear")
  1508  	ret0, _ := ret[0].(error)
  1509  	return ret0
  1510  }
  1511  
  1512  // Clear indicates an expected call of Clear.
  1513  func (mr *MockCircuitBreakerCacheMockRecorder) Clear() *gomock.Call {
  1514  	mr.mock.ctrl.T.Helper()
  1515  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockCircuitBreakerCache)(nil).Clear))
  1516  }
  1517  
  1518  // GetCircuitBreakerConfig mocks base method.
  1519  func (m *MockCircuitBreakerCache) GetCircuitBreakerConfig(svcName, namespace string) *model.ServiceWithCircuitBreakerRules {
  1520  	m.ctrl.T.Helper()
  1521  	ret := m.ctrl.Call(m, "GetCircuitBreakerConfig", svcName, namespace)
  1522  	ret0, _ := ret[0].(*model.ServiceWithCircuitBreakerRules)
  1523  	return ret0
  1524  }
  1525  
  1526  // GetCircuitBreakerConfig indicates an expected call of GetCircuitBreakerConfig.
  1527  func (mr *MockCircuitBreakerCacheMockRecorder) GetCircuitBreakerConfig(svcName, namespace interface{}) *gomock.Call {
  1528  	mr.mock.ctrl.T.Helper()
  1529  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCircuitBreakerConfig", reflect.TypeOf((*MockCircuitBreakerCache)(nil).GetCircuitBreakerConfig), svcName, namespace)
  1530  }
  1531  
  1532  // Initialize mocks base method.
  1533  func (m *MockCircuitBreakerCache) Initialize(c map[string]interface{}) error {
  1534  	m.ctrl.T.Helper()
  1535  	ret := m.ctrl.Call(m, "Initialize", c)
  1536  	ret0, _ := ret[0].(error)
  1537  	return ret0
  1538  }
  1539  
  1540  // Initialize indicates an expected call of Initialize.
  1541  func (mr *MockCircuitBreakerCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1542  	mr.mock.ctrl.T.Helper()
  1543  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockCircuitBreakerCache)(nil).Initialize), c)
  1544  }
  1545  
  1546  // Name mocks base method.
  1547  func (m *MockCircuitBreakerCache) Name() string {
  1548  	m.ctrl.T.Helper()
  1549  	ret := m.ctrl.Call(m, "Name")
  1550  	ret0, _ := ret[0].(string)
  1551  	return ret0
  1552  }
  1553  
  1554  // Name indicates an expected call of Name.
  1555  func (mr *MockCircuitBreakerCacheMockRecorder) Name() *gomock.Call {
  1556  	mr.mock.ctrl.T.Helper()
  1557  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockCircuitBreakerCache)(nil).Name))
  1558  }
  1559  
  1560  // Update mocks base method.
  1561  func (m *MockCircuitBreakerCache) Update() error {
  1562  	m.ctrl.T.Helper()
  1563  	ret := m.ctrl.Call(m, "Update")
  1564  	ret0, _ := ret[0].(error)
  1565  	return ret0
  1566  }
  1567  
  1568  // Update indicates an expected call of Update.
  1569  func (mr *MockCircuitBreakerCacheMockRecorder) Update() *gomock.Call {
  1570  	mr.mock.ctrl.T.Helper()
  1571  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCircuitBreakerCache)(nil).Update))
  1572  }
  1573  
  1574  // MockConfigGroupCache is a mock of ConfigGroupCache interface.
  1575  type MockConfigGroupCache struct {
  1576  	ctrl     *gomock.Controller
  1577  	recorder *MockConfigGroupCacheMockRecorder
  1578  }
  1579  
  1580  // MockConfigGroupCacheMockRecorder is the mock recorder for MockConfigGroupCache.
  1581  type MockConfigGroupCacheMockRecorder struct {
  1582  	mock *MockConfigGroupCache
  1583  }
  1584  
  1585  // NewMockConfigGroupCache creates a new mock instance.
  1586  func NewMockConfigGroupCache(ctrl *gomock.Controller) *MockConfigGroupCache {
  1587  	mock := &MockConfigGroupCache{ctrl: ctrl}
  1588  	mock.recorder = &MockConfigGroupCacheMockRecorder{mock}
  1589  	return mock
  1590  }
  1591  
  1592  // EXPECT returns an object that allows the caller to indicate expected use.
  1593  func (m *MockConfigGroupCache) EXPECT() *MockConfigGroupCacheMockRecorder {
  1594  	return m.recorder
  1595  }
  1596  
  1597  // AddListener mocks base method.
  1598  func (m *MockConfigGroupCache) AddListener(listeners []api.Listener) {
  1599  	m.ctrl.T.Helper()
  1600  	m.ctrl.Call(m, "AddListener", listeners)
  1601  }
  1602  
  1603  // AddListener indicates an expected call of AddListener.
  1604  func (mr *MockConfigGroupCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1605  	mr.mock.ctrl.T.Helper()
  1606  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockConfigGroupCache)(nil).AddListener), listeners)
  1607  }
  1608  
  1609  // Clear mocks base method.
  1610  func (m *MockConfigGroupCache) Clear() error {
  1611  	m.ctrl.T.Helper()
  1612  	ret := m.ctrl.Call(m, "Clear")
  1613  	ret0, _ := ret[0].(error)
  1614  	return ret0
  1615  }
  1616  
  1617  // Clear indicates an expected call of Clear.
  1618  func (mr *MockConfigGroupCacheMockRecorder) Clear() *gomock.Call {
  1619  	mr.mock.ctrl.T.Helper()
  1620  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockConfigGroupCache)(nil).Clear))
  1621  }
  1622  
  1623  // GetGroupByID mocks base method.
  1624  func (m *MockConfigGroupCache) GetGroupByID(id uint64) *model.ConfigFileGroup {
  1625  	m.ctrl.T.Helper()
  1626  	ret := m.ctrl.Call(m, "GetGroupByID", id)
  1627  	ret0, _ := ret[0].(*model.ConfigFileGroup)
  1628  	return ret0
  1629  }
  1630  
  1631  // GetGroupByID indicates an expected call of GetGroupByID.
  1632  func (mr *MockConfigGroupCacheMockRecorder) GetGroupByID(id interface{}) *gomock.Call {
  1633  	mr.mock.ctrl.T.Helper()
  1634  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupByID", reflect.TypeOf((*MockConfigGroupCache)(nil).GetGroupByID), id)
  1635  }
  1636  
  1637  // GetGroupByName mocks base method.
  1638  func (m *MockConfigGroupCache) GetGroupByName(namespace, name string) *model.ConfigFileGroup {
  1639  	m.ctrl.T.Helper()
  1640  	ret := m.ctrl.Call(m, "GetGroupByName", namespace, name)
  1641  	ret0, _ := ret[0].(*model.ConfigFileGroup)
  1642  	return ret0
  1643  }
  1644  
  1645  // GetGroupByName indicates an expected call of GetGroupByName.
  1646  func (mr *MockConfigGroupCacheMockRecorder) GetGroupByName(namespace, name interface{}) *gomock.Call {
  1647  	mr.mock.ctrl.T.Helper()
  1648  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupByName", reflect.TypeOf((*MockConfigGroupCache)(nil).GetGroupByName), namespace, name)
  1649  }
  1650  
  1651  // Initialize mocks base method.
  1652  func (m *MockConfigGroupCache) Initialize(c map[string]interface{}) error {
  1653  	m.ctrl.T.Helper()
  1654  	ret := m.ctrl.Call(m, "Initialize", c)
  1655  	ret0, _ := ret[0].(error)
  1656  	return ret0
  1657  }
  1658  
  1659  // Initialize indicates an expected call of Initialize.
  1660  func (mr *MockConfigGroupCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1661  	mr.mock.ctrl.T.Helper()
  1662  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockConfigGroupCache)(nil).Initialize), c)
  1663  }
  1664  
  1665  // Name mocks base method.
  1666  func (m *MockConfigGroupCache) Name() string {
  1667  	m.ctrl.T.Helper()
  1668  	ret := m.ctrl.Call(m, "Name")
  1669  	ret0, _ := ret[0].(string)
  1670  	return ret0
  1671  }
  1672  
  1673  // Name indicates an expected call of Name.
  1674  func (mr *MockConfigGroupCacheMockRecorder) Name() *gomock.Call {
  1675  	mr.mock.ctrl.T.Helper()
  1676  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockConfigGroupCache)(nil).Name))
  1677  }
  1678  
  1679  // Query mocks base method.
  1680  func (m *MockConfigGroupCache) Query(args *api.ConfigGroupArgs) (uint32, []*model.ConfigFileGroup, error) {
  1681  	m.ctrl.T.Helper()
  1682  	ret := m.ctrl.Call(m, "Query", args)
  1683  	ret0, _ := ret[0].(uint32)
  1684  	ret1, _ := ret[1].([]*model.ConfigFileGroup)
  1685  	ret2, _ := ret[2].(error)
  1686  	return ret0, ret1, ret2
  1687  }
  1688  
  1689  // Query indicates an expected call of Query.
  1690  func (mr *MockConfigGroupCacheMockRecorder) Query(args interface{}) *gomock.Call {
  1691  	mr.mock.ctrl.T.Helper()
  1692  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Query", reflect.TypeOf((*MockConfigGroupCache)(nil).Query), args)
  1693  }
  1694  
  1695  // Update mocks base method.
  1696  func (m *MockConfigGroupCache) Update() error {
  1697  	m.ctrl.T.Helper()
  1698  	ret := m.ctrl.Call(m, "Update")
  1699  	ret0, _ := ret[0].(error)
  1700  	return ret0
  1701  }
  1702  
  1703  // Update indicates an expected call of Update.
  1704  func (mr *MockConfigGroupCacheMockRecorder) Update() *gomock.Call {
  1705  	mr.mock.ctrl.T.Helper()
  1706  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockConfigGroupCache)(nil).Update))
  1707  }
  1708  
  1709  // MockConfigFileCache is a mock of ConfigFileCache interface.
  1710  type MockConfigFileCache struct {
  1711  	ctrl     *gomock.Controller
  1712  	recorder *MockConfigFileCacheMockRecorder
  1713  }
  1714  
  1715  // MockConfigFileCacheMockRecorder is the mock recorder for MockConfigFileCache.
  1716  type MockConfigFileCacheMockRecorder struct {
  1717  	mock *MockConfigFileCache
  1718  }
  1719  
  1720  // NewMockConfigFileCache creates a new mock instance.
  1721  func NewMockConfigFileCache(ctrl *gomock.Controller) *MockConfigFileCache {
  1722  	mock := &MockConfigFileCache{ctrl: ctrl}
  1723  	mock.recorder = &MockConfigFileCacheMockRecorder{mock}
  1724  	return mock
  1725  }
  1726  
  1727  // EXPECT returns an object that allows the caller to indicate expected use.
  1728  func (m *MockConfigFileCache) EXPECT() *MockConfigFileCacheMockRecorder {
  1729  	return m.recorder
  1730  }
  1731  
  1732  // AddListener mocks base method.
  1733  func (m *MockConfigFileCache) AddListener(listeners []api.Listener) {
  1734  	m.ctrl.T.Helper()
  1735  	m.ctrl.Call(m, "AddListener", listeners)
  1736  }
  1737  
  1738  // AddListener indicates an expected call of AddListener.
  1739  func (mr *MockConfigFileCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1740  	mr.mock.ctrl.T.Helper()
  1741  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockConfigFileCache)(nil).AddListener), listeners)
  1742  }
  1743  
  1744  // Clear mocks base method.
  1745  func (m *MockConfigFileCache) Clear() error {
  1746  	m.ctrl.T.Helper()
  1747  	ret := m.ctrl.Call(m, "Clear")
  1748  	ret0, _ := ret[0].(error)
  1749  	return ret0
  1750  }
  1751  
  1752  // Clear indicates an expected call of Clear.
  1753  func (mr *MockConfigFileCacheMockRecorder) Clear() *gomock.Call {
  1754  	mr.mock.ctrl.T.Helper()
  1755  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockConfigFileCache)(nil).Clear))
  1756  }
  1757  
  1758  // GetActiveRelease mocks base method.
  1759  func (m *MockConfigFileCache) GetActiveRelease(namespace, group, fileName string) *model.ConfigFileRelease {
  1760  	m.ctrl.T.Helper()
  1761  	ret := m.ctrl.Call(m, "GetActiveRelease", namespace, group, fileName)
  1762  	ret0, _ := ret[0].(*model.ConfigFileRelease)
  1763  	return ret0
  1764  }
  1765  
  1766  // GetActiveRelease indicates an expected call of GetActiveRelease.
  1767  func (mr *MockConfigFileCacheMockRecorder) GetActiveRelease(namespace, group, fileName interface{}) *gomock.Call {
  1768  	mr.mock.ctrl.T.Helper()
  1769  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActiveRelease", reflect.TypeOf((*MockConfigFileCache)(nil).GetActiveRelease), namespace, group, fileName)
  1770  }
  1771  
  1772  // GetGroupActiveReleases mocks base method.
  1773  func (m *MockConfigFileCache) GetGroupActiveReleases(namespace, group string) ([]*model.ConfigFileRelease, string) {
  1774  	m.ctrl.T.Helper()
  1775  	ret := m.ctrl.Call(m, "GetGroupActiveReleases", namespace, group)
  1776  	ret0, _ := ret[0].([]*model.ConfigFileRelease)
  1777  	ret1, _ := ret[1].(string)
  1778  	return ret0, ret1
  1779  }
  1780  
  1781  // GetGroupActiveReleases indicates an expected call of GetGroupActiveReleases.
  1782  func (mr *MockConfigFileCacheMockRecorder) GetGroupActiveReleases(namespace, group interface{}) *gomock.Call {
  1783  	mr.mock.ctrl.T.Helper()
  1784  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroupActiveReleases", reflect.TypeOf((*MockConfigFileCache)(nil).GetGroupActiveReleases), namespace, group)
  1785  }
  1786  
  1787  // GetRelease mocks base method.
  1788  func (m *MockConfigFileCache) GetRelease(key model.ConfigFileReleaseKey) *model.ConfigFileRelease {
  1789  	m.ctrl.T.Helper()
  1790  	ret := m.ctrl.Call(m, "GetRelease", key)
  1791  	ret0, _ := ret[0].(*model.ConfigFileRelease)
  1792  	return ret0
  1793  }
  1794  
  1795  // GetRelease indicates an expected call of GetRelease.
  1796  func (mr *MockConfigFileCacheMockRecorder) GetRelease(key interface{}) *gomock.Call {
  1797  	mr.mock.ctrl.T.Helper()
  1798  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRelease", reflect.TypeOf((*MockConfigFileCache)(nil).GetRelease), key)
  1799  }
  1800  
  1801  // Initialize mocks base method.
  1802  func (m *MockConfigFileCache) Initialize(c map[string]interface{}) error {
  1803  	m.ctrl.T.Helper()
  1804  	ret := m.ctrl.Call(m, "Initialize", c)
  1805  	ret0, _ := ret[0].(error)
  1806  	return ret0
  1807  }
  1808  
  1809  // Initialize indicates an expected call of Initialize.
  1810  func (mr *MockConfigFileCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1811  	mr.mock.ctrl.T.Helper()
  1812  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockConfigFileCache)(nil).Initialize), c)
  1813  }
  1814  
  1815  // Name mocks base method.
  1816  func (m *MockConfigFileCache) Name() string {
  1817  	m.ctrl.T.Helper()
  1818  	ret := m.ctrl.Call(m, "Name")
  1819  	ret0, _ := ret[0].(string)
  1820  	return ret0
  1821  }
  1822  
  1823  // Name indicates an expected call of Name.
  1824  func (mr *MockConfigFileCacheMockRecorder) Name() *gomock.Call {
  1825  	mr.mock.ctrl.T.Helper()
  1826  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockConfigFileCache)(nil).Name))
  1827  }
  1828  
  1829  // QueryReleases mocks base method.
  1830  func (m *MockConfigFileCache) QueryReleases(args *api.ConfigReleaseArgs) (uint32, []*model.SimpleConfigFileRelease, error) {
  1831  	m.ctrl.T.Helper()
  1832  	ret := m.ctrl.Call(m, "QueryReleases", args)
  1833  	ret0, _ := ret[0].(uint32)
  1834  	ret1, _ := ret[1].([]*model.SimpleConfigFileRelease)
  1835  	ret2, _ := ret[2].(error)
  1836  	return ret0, ret1, ret2
  1837  }
  1838  
  1839  // QueryReleases indicates an expected call of QueryReleases.
  1840  func (mr *MockConfigFileCacheMockRecorder) QueryReleases(args interface{}) *gomock.Call {
  1841  	mr.mock.ctrl.T.Helper()
  1842  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueryReleases", reflect.TypeOf((*MockConfigFileCache)(nil).QueryReleases), args)
  1843  }
  1844  
  1845  // Update mocks base method.
  1846  func (m *MockConfigFileCache) Update() error {
  1847  	m.ctrl.T.Helper()
  1848  	ret := m.ctrl.Call(m, "Update")
  1849  	ret0, _ := ret[0].(error)
  1850  	return ret0
  1851  }
  1852  
  1853  // Update indicates an expected call of Update.
  1854  func (mr *MockConfigFileCacheMockRecorder) Update() *gomock.Call {
  1855  	mr.mock.ctrl.T.Helper()
  1856  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockConfigFileCache)(nil).Update))
  1857  }
  1858  
  1859  // MockUserCache is a mock of UserCache interface.
  1860  type MockUserCache struct {
  1861  	ctrl     *gomock.Controller
  1862  	recorder *MockUserCacheMockRecorder
  1863  }
  1864  
  1865  // MockUserCacheMockRecorder is the mock recorder for MockUserCache.
  1866  type MockUserCacheMockRecorder struct {
  1867  	mock *MockUserCache
  1868  }
  1869  
  1870  // NewMockUserCache creates a new mock instance.
  1871  func NewMockUserCache(ctrl *gomock.Controller) *MockUserCache {
  1872  	mock := &MockUserCache{ctrl: ctrl}
  1873  	mock.recorder = &MockUserCacheMockRecorder{mock}
  1874  	return mock
  1875  }
  1876  
  1877  // EXPECT returns an object that allows the caller to indicate expected use.
  1878  func (m *MockUserCache) EXPECT() *MockUserCacheMockRecorder {
  1879  	return m.recorder
  1880  }
  1881  
  1882  // AddListener mocks base method.
  1883  func (m *MockUserCache) AddListener(listeners []api.Listener) {
  1884  	m.ctrl.T.Helper()
  1885  	m.ctrl.Call(m, "AddListener", listeners)
  1886  }
  1887  
  1888  // AddListener indicates an expected call of AddListener.
  1889  func (mr *MockUserCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  1890  	mr.mock.ctrl.T.Helper()
  1891  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockUserCache)(nil).AddListener), listeners)
  1892  }
  1893  
  1894  // Clear mocks base method.
  1895  func (m *MockUserCache) Clear() error {
  1896  	m.ctrl.T.Helper()
  1897  	ret := m.ctrl.Call(m, "Clear")
  1898  	ret0, _ := ret[0].(error)
  1899  	return ret0
  1900  }
  1901  
  1902  // Clear indicates an expected call of Clear.
  1903  func (mr *MockUserCacheMockRecorder) Clear() *gomock.Call {
  1904  	mr.mock.ctrl.T.Helper()
  1905  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockUserCache)(nil).Clear))
  1906  }
  1907  
  1908  // GetAdmin mocks base method.
  1909  func (m *MockUserCache) GetAdmin() *model.User {
  1910  	m.ctrl.T.Helper()
  1911  	ret := m.ctrl.Call(m, "GetAdmin")
  1912  	ret0, _ := ret[0].(*model.User)
  1913  	return ret0
  1914  }
  1915  
  1916  // GetAdmin indicates an expected call of GetAdmin.
  1917  func (mr *MockUserCacheMockRecorder) GetAdmin() *gomock.Call {
  1918  	mr.mock.ctrl.T.Helper()
  1919  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAdmin", reflect.TypeOf((*MockUserCache)(nil).GetAdmin))
  1920  }
  1921  
  1922  // GetGroup mocks base method.
  1923  func (m *MockUserCache) GetGroup(id string) *model.UserGroupDetail {
  1924  	m.ctrl.T.Helper()
  1925  	ret := m.ctrl.Call(m, "GetGroup", id)
  1926  	ret0, _ := ret[0].(*model.UserGroupDetail)
  1927  	return ret0
  1928  }
  1929  
  1930  // GetGroup indicates an expected call of GetGroup.
  1931  func (mr *MockUserCacheMockRecorder) GetGroup(id interface{}) *gomock.Call {
  1932  	mr.mock.ctrl.T.Helper()
  1933  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGroup", reflect.TypeOf((*MockUserCache)(nil).GetGroup), id)
  1934  }
  1935  
  1936  // GetUserByID mocks base method.
  1937  func (m *MockUserCache) GetUserByID(id string) *model.User {
  1938  	m.ctrl.T.Helper()
  1939  	ret := m.ctrl.Call(m, "GetUserByID", id)
  1940  	ret0, _ := ret[0].(*model.User)
  1941  	return ret0
  1942  }
  1943  
  1944  // GetUserByID indicates an expected call of GetUserByID.
  1945  func (mr *MockUserCacheMockRecorder) GetUserByID(id interface{}) *gomock.Call {
  1946  	mr.mock.ctrl.T.Helper()
  1947  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByID", reflect.TypeOf((*MockUserCache)(nil).GetUserByID), id)
  1948  }
  1949  
  1950  // GetUserByName mocks base method.
  1951  func (m *MockUserCache) GetUserByName(name, ownerName string) *model.User {
  1952  	m.ctrl.T.Helper()
  1953  	ret := m.ctrl.Call(m, "GetUserByName", name, ownerName)
  1954  	ret0, _ := ret[0].(*model.User)
  1955  	return ret0
  1956  }
  1957  
  1958  // GetUserByName indicates an expected call of GetUserByName.
  1959  func (mr *MockUserCacheMockRecorder) GetUserByName(name, ownerName interface{}) *gomock.Call {
  1960  	mr.mock.ctrl.T.Helper()
  1961  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByName", reflect.TypeOf((*MockUserCache)(nil).GetUserByName), name, ownerName)
  1962  }
  1963  
  1964  // GetUserLinkGroupIds mocks base method.
  1965  func (m *MockUserCache) GetUserLinkGroupIds(id string) []string {
  1966  	m.ctrl.T.Helper()
  1967  	ret := m.ctrl.Call(m, "GetUserLinkGroupIds", id)
  1968  	ret0, _ := ret[0].([]string)
  1969  	return ret0
  1970  }
  1971  
  1972  // GetUserLinkGroupIds indicates an expected call of GetUserLinkGroupIds.
  1973  func (mr *MockUserCacheMockRecorder) GetUserLinkGroupIds(id interface{}) *gomock.Call {
  1974  	mr.mock.ctrl.T.Helper()
  1975  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserLinkGroupIds", reflect.TypeOf((*MockUserCache)(nil).GetUserLinkGroupIds), id)
  1976  }
  1977  
  1978  // Initialize mocks base method.
  1979  func (m *MockUserCache) Initialize(c map[string]interface{}) error {
  1980  	m.ctrl.T.Helper()
  1981  	ret := m.ctrl.Call(m, "Initialize", c)
  1982  	ret0, _ := ret[0].(error)
  1983  	return ret0
  1984  }
  1985  
  1986  // Initialize indicates an expected call of Initialize.
  1987  func (mr *MockUserCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  1988  	mr.mock.ctrl.T.Helper()
  1989  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockUserCache)(nil).Initialize), c)
  1990  }
  1991  
  1992  // IsOwner mocks base method.
  1993  func (m *MockUserCache) IsOwner(id string) bool {
  1994  	m.ctrl.T.Helper()
  1995  	ret := m.ctrl.Call(m, "IsOwner", id)
  1996  	ret0, _ := ret[0].(bool)
  1997  	return ret0
  1998  }
  1999  
  2000  // IsOwner indicates an expected call of IsOwner.
  2001  func (mr *MockUserCacheMockRecorder) IsOwner(id interface{}) *gomock.Call {
  2002  	mr.mock.ctrl.T.Helper()
  2003  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsOwner", reflect.TypeOf((*MockUserCache)(nil).IsOwner), id)
  2004  }
  2005  
  2006  // IsUserInGroup mocks base method.
  2007  func (m *MockUserCache) IsUserInGroup(userId, groupId string) bool {
  2008  	m.ctrl.T.Helper()
  2009  	ret := m.ctrl.Call(m, "IsUserInGroup", userId, groupId)
  2010  	ret0, _ := ret[0].(bool)
  2011  	return ret0
  2012  }
  2013  
  2014  // IsUserInGroup indicates an expected call of IsUserInGroup.
  2015  func (mr *MockUserCacheMockRecorder) IsUserInGroup(userId, groupId interface{}) *gomock.Call {
  2016  	mr.mock.ctrl.T.Helper()
  2017  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserInGroup", reflect.TypeOf((*MockUserCache)(nil).IsUserInGroup), userId, groupId)
  2018  }
  2019  
  2020  // Name mocks base method.
  2021  func (m *MockUserCache) Name() string {
  2022  	m.ctrl.T.Helper()
  2023  	ret := m.ctrl.Call(m, "Name")
  2024  	ret0, _ := ret[0].(string)
  2025  	return ret0
  2026  }
  2027  
  2028  // Name indicates an expected call of Name.
  2029  func (mr *MockUserCacheMockRecorder) Name() *gomock.Call {
  2030  	mr.mock.ctrl.T.Helper()
  2031  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockUserCache)(nil).Name))
  2032  }
  2033  
  2034  // Update mocks base method.
  2035  func (m *MockUserCache) Update() error {
  2036  	m.ctrl.T.Helper()
  2037  	ret := m.ctrl.Call(m, "Update")
  2038  	ret0, _ := ret[0].(error)
  2039  	return ret0
  2040  }
  2041  
  2042  // Update indicates an expected call of Update.
  2043  func (mr *MockUserCacheMockRecorder) Update() *gomock.Call {
  2044  	mr.mock.ctrl.T.Helper()
  2045  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockUserCache)(nil).Update))
  2046  }
  2047  
  2048  // MockStrategyCache is a mock of StrategyCache interface.
  2049  type MockStrategyCache struct {
  2050  	ctrl     *gomock.Controller
  2051  	recorder *MockStrategyCacheMockRecorder
  2052  }
  2053  
  2054  // MockStrategyCacheMockRecorder is the mock recorder for MockStrategyCache.
  2055  type MockStrategyCacheMockRecorder struct {
  2056  	mock *MockStrategyCache
  2057  }
  2058  
  2059  // NewMockStrategyCache creates a new mock instance.
  2060  func NewMockStrategyCache(ctrl *gomock.Controller) *MockStrategyCache {
  2061  	mock := &MockStrategyCache{ctrl: ctrl}
  2062  	mock.recorder = &MockStrategyCacheMockRecorder{mock}
  2063  	return mock
  2064  }
  2065  
  2066  // EXPECT returns an object that allows the caller to indicate expected use.
  2067  func (m *MockStrategyCache) EXPECT() *MockStrategyCacheMockRecorder {
  2068  	return m.recorder
  2069  }
  2070  
  2071  // AddListener mocks base method.
  2072  func (m *MockStrategyCache) AddListener(listeners []api.Listener) {
  2073  	m.ctrl.T.Helper()
  2074  	m.ctrl.Call(m, "AddListener", listeners)
  2075  }
  2076  
  2077  // AddListener indicates an expected call of AddListener.
  2078  func (mr *MockStrategyCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  2079  	mr.mock.ctrl.T.Helper()
  2080  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockStrategyCache)(nil).AddListener), listeners)
  2081  }
  2082  
  2083  // Clear mocks base method.
  2084  func (m *MockStrategyCache) Clear() error {
  2085  	m.ctrl.T.Helper()
  2086  	ret := m.ctrl.Call(m, "Clear")
  2087  	ret0, _ := ret[0].(error)
  2088  	return ret0
  2089  }
  2090  
  2091  // Clear indicates an expected call of Clear.
  2092  func (mr *MockStrategyCacheMockRecorder) Clear() *gomock.Call {
  2093  	mr.mock.ctrl.T.Helper()
  2094  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockStrategyCache)(nil).Clear))
  2095  }
  2096  
  2097  // ForceSync mocks base method.
  2098  func (m *MockStrategyCache) ForceSync() error {
  2099  	m.ctrl.T.Helper()
  2100  	ret := m.ctrl.Call(m, "ForceSync")
  2101  	ret0, _ := ret[0].(error)
  2102  	return ret0
  2103  }
  2104  
  2105  // ForceSync indicates an expected call of ForceSync.
  2106  func (mr *MockStrategyCacheMockRecorder) ForceSync() *gomock.Call {
  2107  	mr.mock.ctrl.T.Helper()
  2108  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ForceSync", reflect.TypeOf((*MockStrategyCache)(nil).ForceSync))
  2109  }
  2110  
  2111  // GetStrategyDetailsByGroupID mocks base method.
  2112  func (m *MockStrategyCache) GetStrategyDetailsByGroupID(groupId string) []*model.StrategyDetail {
  2113  	m.ctrl.T.Helper()
  2114  	ret := m.ctrl.Call(m, "GetStrategyDetailsByGroupID", groupId)
  2115  	ret0, _ := ret[0].([]*model.StrategyDetail)
  2116  	return ret0
  2117  }
  2118  
  2119  // GetStrategyDetailsByGroupID indicates an expected call of GetStrategyDetailsByGroupID.
  2120  func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByGroupID(groupId interface{}) *gomock.Call {
  2121  	mr.mock.ctrl.T.Helper()
  2122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategyDetailsByGroupID", reflect.TypeOf((*MockStrategyCache)(nil).GetStrategyDetailsByGroupID), groupId)
  2123  }
  2124  
  2125  // GetStrategyDetailsByUID mocks base method.
  2126  func (m *MockStrategyCache) GetStrategyDetailsByUID(uid string) []*model.StrategyDetail {
  2127  	m.ctrl.T.Helper()
  2128  	ret := m.ctrl.Call(m, "GetStrategyDetailsByUID", uid)
  2129  	ret0, _ := ret[0].([]*model.StrategyDetail)
  2130  	return ret0
  2131  }
  2132  
  2133  // GetStrategyDetailsByUID indicates an expected call of GetStrategyDetailsByUID.
  2134  func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByUID(uid interface{}) *gomock.Call {
  2135  	mr.mock.ctrl.T.Helper()
  2136  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStrategyDetailsByUID", reflect.TypeOf((*MockStrategyCache)(nil).GetStrategyDetailsByUID), uid)
  2137  }
  2138  
  2139  // Initialize mocks base method.
  2140  func (m *MockStrategyCache) Initialize(c map[string]interface{}) error {
  2141  	m.ctrl.T.Helper()
  2142  	ret := m.ctrl.Call(m, "Initialize", c)
  2143  	ret0, _ := ret[0].(error)
  2144  	return ret0
  2145  }
  2146  
  2147  // Initialize indicates an expected call of Initialize.
  2148  func (mr *MockStrategyCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  2149  	mr.mock.ctrl.T.Helper()
  2150  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockStrategyCache)(nil).Initialize), c)
  2151  }
  2152  
  2153  // IsResourceEditable mocks base method.
  2154  func (m *MockStrategyCache) IsResourceEditable(principal model.Principal, resType security.ResourceType, resId string) bool {
  2155  	m.ctrl.T.Helper()
  2156  	ret := m.ctrl.Call(m, "IsResourceEditable", principal, resType, resId)
  2157  	ret0, _ := ret[0].(bool)
  2158  	return ret0
  2159  }
  2160  
  2161  // IsResourceEditable indicates an expected call of IsResourceEditable.
  2162  func (mr *MockStrategyCacheMockRecorder) IsResourceEditable(principal, resType, resId interface{}) *gomock.Call {
  2163  	mr.mock.ctrl.T.Helper()
  2164  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsResourceEditable", reflect.TypeOf((*MockStrategyCache)(nil).IsResourceEditable), principal, resType, resId)
  2165  }
  2166  
  2167  // IsResourceLinkStrategy mocks base method.
  2168  func (m *MockStrategyCache) IsResourceLinkStrategy(resType security.ResourceType, resId string) bool {
  2169  	m.ctrl.T.Helper()
  2170  	ret := m.ctrl.Call(m, "IsResourceLinkStrategy", resType, resId)
  2171  	ret0, _ := ret[0].(bool)
  2172  	return ret0
  2173  }
  2174  
  2175  // IsResourceLinkStrategy indicates an expected call of IsResourceLinkStrategy.
  2176  func (mr *MockStrategyCacheMockRecorder) IsResourceLinkStrategy(resType, resId interface{}) *gomock.Call {
  2177  	mr.mock.ctrl.T.Helper()
  2178  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsResourceLinkStrategy", reflect.TypeOf((*MockStrategyCache)(nil).IsResourceLinkStrategy), resType, resId)
  2179  }
  2180  
  2181  // Name mocks base method.
  2182  func (m *MockStrategyCache) Name() string {
  2183  	m.ctrl.T.Helper()
  2184  	ret := m.ctrl.Call(m, "Name")
  2185  	ret0, _ := ret[0].(string)
  2186  	return ret0
  2187  }
  2188  
  2189  // Name indicates an expected call of Name.
  2190  func (mr *MockStrategyCacheMockRecorder) Name() *gomock.Call {
  2191  	mr.mock.ctrl.T.Helper()
  2192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockStrategyCache)(nil).Name))
  2193  }
  2194  
  2195  // Update mocks base method.
  2196  func (m *MockStrategyCache) Update() error {
  2197  	m.ctrl.T.Helper()
  2198  	ret := m.ctrl.Call(m, "Update")
  2199  	ret0, _ := ret[0].(error)
  2200  	return ret0
  2201  }
  2202  
  2203  // Update indicates an expected call of Update.
  2204  func (mr *MockStrategyCacheMockRecorder) Update() *gomock.Call {
  2205  	mr.mock.ctrl.T.Helper()
  2206  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockStrategyCache)(nil).Update))
  2207  }
  2208  
  2209  // MockClientCache is a mock of ClientCache interface.
  2210  type MockClientCache struct {
  2211  	ctrl     *gomock.Controller
  2212  	recorder *MockClientCacheMockRecorder
  2213  }
  2214  
  2215  // MockClientCacheMockRecorder is the mock recorder for MockClientCache.
  2216  type MockClientCacheMockRecorder struct {
  2217  	mock *MockClientCache
  2218  }
  2219  
  2220  // NewMockClientCache creates a new mock instance.
  2221  func NewMockClientCache(ctrl *gomock.Controller) *MockClientCache {
  2222  	mock := &MockClientCache{ctrl: ctrl}
  2223  	mock.recorder = &MockClientCacheMockRecorder{mock}
  2224  	return mock
  2225  }
  2226  
  2227  // EXPECT returns an object that allows the caller to indicate expected use.
  2228  func (m *MockClientCache) EXPECT() *MockClientCacheMockRecorder {
  2229  	return m.recorder
  2230  }
  2231  
  2232  // AddListener mocks base method.
  2233  func (m *MockClientCache) AddListener(listeners []api.Listener) {
  2234  	m.ctrl.T.Helper()
  2235  	m.ctrl.Call(m, "AddListener", listeners)
  2236  }
  2237  
  2238  // AddListener indicates an expected call of AddListener.
  2239  func (mr *MockClientCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call {
  2240  	mr.mock.ctrl.T.Helper()
  2241  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddListener", reflect.TypeOf((*MockClientCache)(nil).AddListener), listeners)
  2242  }
  2243  
  2244  // Clear mocks base method.
  2245  func (m *MockClientCache) Clear() error {
  2246  	m.ctrl.T.Helper()
  2247  	ret := m.ctrl.Call(m, "Clear")
  2248  	ret0, _ := ret[0].(error)
  2249  	return ret0
  2250  }
  2251  
  2252  // Clear indicates an expected call of Clear.
  2253  func (mr *MockClientCacheMockRecorder) Clear() *gomock.Call {
  2254  	mr.mock.ctrl.T.Helper()
  2255  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockClientCache)(nil).Clear))
  2256  }
  2257  
  2258  // GetClient mocks base method.
  2259  func (m *MockClientCache) GetClient(id string) *model.Client {
  2260  	m.ctrl.T.Helper()
  2261  	ret := m.ctrl.Call(m, "GetClient", id)
  2262  	ret0, _ := ret[0].(*model.Client)
  2263  	return ret0
  2264  }
  2265  
  2266  // GetClient indicates an expected call of GetClient.
  2267  func (mr *MockClientCacheMockRecorder) GetClient(id interface{}) *gomock.Call {
  2268  	mr.mock.ctrl.T.Helper()
  2269  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockClientCache)(nil).GetClient), id)
  2270  }
  2271  
  2272  // GetClientsByFilter mocks base method.
  2273  func (m *MockClientCache) GetClientsByFilter(filters map[string]string, offset, limit uint32) (uint32, []*model.Client, error) {
  2274  	m.ctrl.T.Helper()
  2275  	ret := m.ctrl.Call(m, "GetClientsByFilter", filters, offset, limit)
  2276  	ret0, _ := ret[0].(uint32)
  2277  	ret1, _ := ret[1].([]*model.Client)
  2278  	ret2, _ := ret[2].(error)
  2279  	return ret0, ret1, ret2
  2280  }
  2281  
  2282  // GetClientsByFilter indicates an expected call of GetClientsByFilter.
  2283  func (mr *MockClientCacheMockRecorder) GetClientsByFilter(filters, offset, limit interface{}) *gomock.Call {
  2284  	mr.mock.ctrl.T.Helper()
  2285  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClientsByFilter", reflect.TypeOf((*MockClientCache)(nil).GetClientsByFilter), filters, offset, limit)
  2286  }
  2287  
  2288  // Initialize mocks base method.
  2289  func (m *MockClientCache) Initialize(c map[string]interface{}) error {
  2290  	m.ctrl.T.Helper()
  2291  	ret := m.ctrl.Call(m, "Initialize", c)
  2292  	ret0, _ := ret[0].(error)
  2293  	return ret0
  2294  }
  2295  
  2296  // Initialize indicates an expected call of Initialize.
  2297  func (mr *MockClientCacheMockRecorder) Initialize(c interface{}) *gomock.Call {
  2298  	mr.mock.ctrl.T.Helper()
  2299  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Initialize", reflect.TypeOf((*MockClientCache)(nil).Initialize), c)
  2300  }
  2301  
  2302  // IteratorClients mocks base method.
  2303  func (m *MockClientCache) IteratorClients(iterProc api.ClientIterProc) {
  2304  	m.ctrl.T.Helper()
  2305  	m.ctrl.Call(m, "IteratorClients", iterProc)
  2306  }
  2307  
  2308  // IteratorClients indicates an expected call of IteratorClients.
  2309  func (mr *MockClientCacheMockRecorder) IteratorClients(iterProc interface{}) *gomock.Call {
  2310  	mr.mock.ctrl.T.Helper()
  2311  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IteratorClients", reflect.TypeOf((*MockClientCache)(nil).IteratorClients), iterProc)
  2312  }
  2313  
  2314  // Name mocks base method.
  2315  func (m *MockClientCache) Name() string {
  2316  	m.ctrl.T.Helper()
  2317  	ret := m.ctrl.Call(m, "Name")
  2318  	ret0, _ := ret[0].(string)
  2319  	return ret0
  2320  }
  2321  
  2322  // Name indicates an expected call of Name.
  2323  func (mr *MockClientCacheMockRecorder) Name() *gomock.Call {
  2324  	mr.mock.ctrl.T.Helper()
  2325  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockClientCache)(nil).Name))
  2326  }
  2327  
  2328  // Update mocks base method.
  2329  func (m *MockClientCache) Update() error {
  2330  	m.ctrl.T.Helper()
  2331  	ret := m.ctrl.Call(m, "Update")
  2332  	ret0, _ := ret[0].(error)
  2333  	return ret0
  2334  }
  2335  
  2336  // Update indicates an expected call of Update.
  2337  func (mr *MockClientCacheMockRecorder) Update() *gomock.Call {
  2338  	mr.mock.ctrl.T.Helper()
  2339  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockClientCache)(nil).Update))
  2340  }