Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCache
- type MockCacheManager
- type MockCacheManagerMockRecorder
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Name() *gomock.Call
- func (mr *MockCacheMockRecorder) Update() *gomock.Call
- type MockCircuitBreakerCache
- func (m *MockCircuitBreakerCache) AddListener(listeners []api.Listener)
- func (m *MockCircuitBreakerCache) Clear() error
- func (m *MockCircuitBreakerCache) EXPECT() *MockCircuitBreakerCacheMockRecorder
- func (m *MockCircuitBreakerCache) GetCircuitBreakerConfig(svcName, namespace string) *model.ServiceWithCircuitBreakerRules
- func (m *MockCircuitBreakerCache) Initialize(c map[string]interface{}) error
- func (m *MockCircuitBreakerCache) Name() string
- func (m *MockCircuitBreakerCache) Update() error
- type MockCircuitBreakerCacheMockRecorder
- func (mr *MockCircuitBreakerCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockCircuitBreakerCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockCircuitBreakerCacheMockRecorder) GetCircuitBreakerConfig(svcName, namespace interface{}) *gomock.Call
- func (mr *MockCircuitBreakerCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockCircuitBreakerCacheMockRecorder) Name() *gomock.Call
- func (mr *MockCircuitBreakerCacheMockRecorder) Update() *gomock.Call
- type MockClientCache
- func (m *MockClientCache) AddListener(listeners []api.Listener)
- func (m *MockClientCache) Clear() error
- func (m *MockClientCache) EXPECT() *MockClientCacheMockRecorder
- func (m *MockClientCache) GetClient(id string) *model.Client
- func (m *MockClientCache) GetClientsByFilter(filters map[string]string, offset, limit uint32) (uint32, []*model.Client, error)
- func (m *MockClientCache) Initialize(c map[string]interface{}) error
- func (m *MockClientCache) IteratorClients(iterProc api.ClientIterProc)
- func (m *MockClientCache) Name() string
- func (m *MockClientCache) Update() error
- type MockClientCacheMockRecorder
- func (mr *MockClientCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockClientCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockClientCacheMockRecorder) GetClient(id interface{}) *gomock.Call
- func (mr *MockClientCacheMockRecorder) GetClientsByFilter(filters, offset, limit interface{}) *gomock.Call
- func (mr *MockClientCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockClientCacheMockRecorder) IteratorClients(iterProc interface{}) *gomock.Call
- func (mr *MockClientCacheMockRecorder) Name() *gomock.Call
- func (mr *MockClientCacheMockRecorder) Update() *gomock.Call
- type MockConfigFileCache
- func (m *MockConfigFileCache) AddListener(listeners []api.Listener)
- func (m *MockConfigFileCache) Clear() error
- func (m *MockConfigFileCache) EXPECT() *MockConfigFileCacheMockRecorder
- func (m *MockConfigFileCache) GetActiveRelease(namespace, group, fileName string) *model.ConfigFileRelease
- func (m *MockConfigFileCache) GetGroupActiveReleases(namespace, group string) ([]*model.ConfigFileRelease, string)
- func (m *MockConfigFileCache) GetRelease(key model.ConfigFileReleaseKey) *model.ConfigFileRelease
- func (m *MockConfigFileCache) Initialize(c map[string]interface{}) error
- func (m *MockConfigFileCache) Name() string
- func (m *MockConfigFileCache) QueryReleases(args *api.ConfigReleaseArgs) (uint32, []*model.SimpleConfigFileRelease, error)
- func (m *MockConfigFileCache) Update() error
- type MockConfigFileCacheMockRecorder
- func (mr *MockConfigFileCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) GetActiveRelease(namespace, group, fileName interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) GetGroupActiveReleases(namespace, group interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) GetRelease(key interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) Name() *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) QueryReleases(args interface{}) *gomock.Call
- func (mr *MockConfigFileCacheMockRecorder) Update() *gomock.Call
- type MockConfigGroupCache
- func (m *MockConfigGroupCache) AddListener(listeners []api.Listener)
- func (m *MockConfigGroupCache) Clear() error
- func (m *MockConfigGroupCache) EXPECT() *MockConfigGroupCacheMockRecorder
- func (m *MockConfigGroupCache) GetGroupByID(id uint64) *model.ConfigFileGroup
- func (m *MockConfigGroupCache) GetGroupByName(namespace, name string) *model.ConfigFileGroup
- func (m *MockConfigGroupCache) Initialize(c map[string]interface{}) error
- func (m *MockConfigGroupCache) Name() string
- func (m *MockConfigGroupCache) Query(args *api.ConfigGroupArgs) (uint32, []*model.ConfigFileGroup, error)
- func (m *MockConfigGroupCache) Update() error
- type MockConfigGroupCacheMockRecorder
- func (mr *MockConfigGroupCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) GetGroupByID(id interface{}) *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) GetGroupByName(namespace, name interface{}) *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) Name() *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) Query(args interface{}) *gomock.Call
- func (mr *MockConfigGroupCacheMockRecorder) Update() *gomock.Call
- type MockFaultDetectCache
- func (m *MockFaultDetectCache) AddListener(listeners []api.Listener)
- func (m *MockFaultDetectCache) Clear() error
- func (m *MockFaultDetectCache) EXPECT() *MockFaultDetectCacheMockRecorder
- func (m *MockFaultDetectCache) GetFaultDetectConfig(svcName, namespace string) *model.ServiceWithFaultDetectRules
- func (m *MockFaultDetectCache) Initialize(c map[string]interface{}) error
- func (m *MockFaultDetectCache) Name() string
- func (m *MockFaultDetectCache) Update() error
- type MockFaultDetectCacheMockRecorder
- func (mr *MockFaultDetectCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockFaultDetectCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockFaultDetectCacheMockRecorder) GetFaultDetectConfig(svcName, namespace interface{}) *gomock.Call
- func (mr *MockFaultDetectCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockFaultDetectCacheMockRecorder) Name() *gomock.Call
- func (mr *MockFaultDetectCacheMockRecorder) Update() *gomock.Call
- type MockInstanceCache
- func (m *MockInstanceCache) AddListener(listeners []api.Listener)
- func (m *MockInstanceCache) Clear() error
- func (m *MockInstanceCache) EXPECT() *MockInstanceCacheMockRecorder
- func (m *MockInstanceCache) GetInstance(instanceID string) *model.Instance
- func (m *MockInstanceCache) GetInstanceLabels(serviceID string) *service_manage.InstanceLabels
- func (m *MockInstanceCache) GetInstancesByServiceID(serviceID string) []*model.Instance
- func (m *MockInstanceCache) GetInstancesCount() int
- func (m *MockInstanceCache) GetInstancesCountByServiceID(serviceID string) model.InstanceCount
- func (m *MockInstanceCache) GetServicePorts(serviceID string) []*model.ServicePort
- func (m *MockInstanceCache) Initialize(c map[string]interface{}) error
- func (m *MockInstanceCache) IteratorInstances(iterProc api.InstanceIterProc) error
- func (m *MockInstanceCache) IteratorInstancesWithService(serviceID string, iterProc api.InstanceIterProc) error
- func (m *MockInstanceCache) Name() string
- func (m *MockInstanceCache) QueryInstances(filter, metaFilter map[string]string, offset, limit uint32) (uint32, []*model.Instance, error)
- func (m *MockInstanceCache) Update() error
- type MockInstanceCacheMockRecorder
- func (mr *MockInstanceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetInstance(instanceID interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetInstanceLabels(serviceID interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetInstancesByServiceID(serviceID interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetInstancesCount() *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetInstancesCountByServiceID(serviceID interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) GetServicePorts(serviceID interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) IteratorInstances(iterProc interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) IteratorInstancesWithService(serviceID, iterProc interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) Name() *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) QueryInstances(filter, metaFilter, offset, limit interface{}) *gomock.Call
- func (mr *MockInstanceCacheMockRecorder) Update() *gomock.Call
- type MockL5Cache
- func (m *MockL5Cache) AddListener(listeners []api.Listener)
- func (m *MockL5Cache) CheckRouteExisted(ip, modID, cmdID uint32) bool
- func (m *MockL5Cache) Clear() error
- func (m *MockL5Cache) EXPECT() *MockL5CacheMockRecorder
- func (m *MockL5Cache) GetIPConfig(ip uint32) *model.IPConfig
- func (m *MockL5Cache) GetPolicy(modID uint32) *model.Policy
- func (m *MockL5Cache) GetRouteByIP(ip uint32) []*model.Route
- func (m *MockL5Cache) GetSection(modeID uint32) []*model.Section
- func (m *MockL5Cache) Initialize(c map[string]interface{}) error
- func (m *MockL5Cache) Name() string
- func (m *MockL5Cache) Update() error
- type MockL5CacheMockRecorder
- func (mr *MockL5CacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) CheckRouteExisted(ip, modID, cmdID interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) Clear() *gomock.Call
- func (mr *MockL5CacheMockRecorder) GetIPConfig(ip interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) GetPolicy(modID interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) GetRouteByIP(ip interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) GetSection(modeID interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockL5CacheMockRecorder) Name() *gomock.Call
- func (mr *MockL5CacheMockRecorder) Update() *gomock.Call
- type MockNamespaceCache
- func (m *MockNamespaceCache) AddListener(listeners []api.Listener)
- func (m *MockNamespaceCache) Clear() error
- func (m *MockNamespaceCache) EXPECT() *MockNamespaceCacheMockRecorder
- func (m *MockNamespaceCache) GetNamespace(id string) *model.Namespace
- func (m *MockNamespaceCache) GetNamespaceList() []*model.Namespace
- func (m *MockNamespaceCache) GetNamespacesByName(names []string) []*model.Namespace
- func (m *MockNamespaceCache) Initialize(c map[string]interface{}) error
- func (m *MockNamespaceCache) Name() string
- func (m *MockNamespaceCache) Update() error
- type MockNamespaceCacheMockRecorder
- func (mr *MockNamespaceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) GetNamespace(id interface{}) *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) GetNamespaceList() *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) GetNamespacesByName(names interface{}) *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) Name() *gomock.Call
- func (mr *MockNamespaceCacheMockRecorder) Update() *gomock.Call
- type MockRateLimitCache
- func (m *MockRateLimitCache) AddListener(listeners []api.Listener)
- func (m *MockRateLimitCache) Clear() error
- func (m *MockRateLimitCache) EXPECT() *MockRateLimitCacheMockRecorder
- func (m *MockRateLimitCache) GetRateLimitRules(serviceKey model.ServiceKey) ([]*model.RateLimit, string)
- func (m *MockRateLimitCache) GetRateLimitsCount() int
- func (m *MockRateLimitCache) Initialize(c map[string]interface{}) error
- func (m *MockRateLimitCache) IteratorRateLimit(rateLimitIterProc api.RateLimitIterProc)
- func (m *MockRateLimitCache) Name() string
- func (m *MockRateLimitCache) QueryRateLimitRules(args api.RateLimitRuleArgs) (uint32, []*model.RateLimit, error)
- func (m *MockRateLimitCache) Update() error
- type MockRateLimitCacheMockRecorder
- func (mr *MockRateLimitCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) GetRateLimitRules(serviceKey interface{}) *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) GetRateLimitsCount() *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) IteratorRateLimit(rateLimitIterProc interface{}) *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) Name() *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) QueryRateLimitRules(args interface{}) *gomock.Call
- func (mr *MockRateLimitCacheMockRecorder) Update() *gomock.Call
- type MockRoutingConfigCache
- func (m *MockRoutingConfigCache) AddListener(listeners []api.Listener)
- func (m *MockRoutingConfigCache) Clear() error
- func (m *MockRoutingConfigCache) EXPECT() *MockRoutingConfigCacheMockRecorder
- func (m *MockRoutingConfigCache) GetRouterConfig(id, service, namespace string) (*traffic_manage.Routing, error)
- func (m *MockRoutingConfigCache) GetRouterConfigV2(id, service, namespace string) (*traffic_manage.Routing, error)
- func (m *MockRoutingConfigCache) GetRoutingConfigCount() int
- func (m *MockRoutingConfigCache) Initialize(c map[string]interface{}) error
- func (m *MockRoutingConfigCache) IsConvertFromV1(id string) (string, bool)
- func (m *MockRoutingConfigCache) IteratorRouterRule(iterProc api.RouterRuleIterProc)
- func (m *MockRoutingConfigCache) ListRouterRule(service, namespace string) []*model.ExtendRouterConfig
- func (m *MockRoutingConfigCache) Name() string
- func (m *MockRoutingConfigCache) QueryRoutingConfigsV2(args *api.RoutingArgs) (uint32, []*model.ExtendRouterConfig, error)
- func (m *MockRoutingConfigCache) Update() error
- type MockRoutingConfigCacheMockRecorder
- func (mr *MockRoutingConfigCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfig(id, service, namespace interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfigV2(id, service, namespace interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) GetRoutingConfigCount() *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) IsConvertFromV1(id interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) IteratorRouterRule(iterProc interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) ListRouterRule(service, namespace interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) Name() *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) QueryRoutingConfigsV2(args interface{}) *gomock.Call
- func (mr *MockRoutingConfigCacheMockRecorder) Update() *gomock.Call
- type MockServiceCache
- func (m *MockServiceCache) AddListener(listeners []api.Listener)
- func (m *MockServiceCache) CleanNamespace(namespace string)
- func (m *MockServiceCache) Clear() error
- func (m *MockServiceCache) EXPECT() *MockServiceCacheMockRecorder
- func (m *MockServiceCache) GetAliasFor(name, namespace string) *model.Service
- func (m *MockServiceCache) GetAllNamespaces() []string
- func (m *MockServiceCache) GetNamespaceCntInfo(namespace string) model.NamespaceServiceCount
- func (m *MockServiceCache) GetRevisionWorker() api.ServiceRevisionWorker
- func (m *MockServiceCache) GetServiceByCl5Name(cl5Name string) *model.Service
- func (m *MockServiceCache) GetServiceByID(id string) *model.Service
- func (m *MockServiceCache) GetServiceByName(name, namespace string) *model.Service
- func (m *MockServiceCache) GetServicesByFilter(serviceFilters *api.ServiceArgs, instanceFilters *store.InstanceArgs, ...) (uint32, []*model.EnhancedService, error)
- func (m *MockServiceCache) GetServicesCount() int
- func (m *MockServiceCache) Initialize(c map[string]interface{}) error
- func (m *MockServiceCache) IteratorServices(iterProc api.ServiceIterProc) error
- func (m *MockServiceCache) ListAllServices() (string, []*model.Service)
- func (m *MockServiceCache) ListServiceAlias(namespace, name string) []*model.Service
- func (m *MockServiceCache) ListServices(ns string) (string, []*model.Service)
- func (m *MockServiceCache) Name() string
- func (m *MockServiceCache) Update() error
- type MockServiceCacheMockRecorder
- func (mr *MockServiceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) CleanNamespace(namespace interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetAliasFor(name, namespace interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetAllNamespaces() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetNamespaceCntInfo(namespace interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetRevisionWorker() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetServiceByCl5Name(cl5Name interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetServiceByID(id interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetServiceByName(name, namespace interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetServicesByFilter(serviceFilters, instanceFilters, offset, limit interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) GetServicesCount() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) IteratorServices(iterProc interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) ListAllServices() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) ListServiceAlias(namespace, name interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) ListServices(ns interface{}) *gomock.Call
- func (mr *MockServiceCacheMockRecorder) Name() *gomock.Call
- func (mr *MockServiceCacheMockRecorder) Update() *gomock.Call
- type MockServiceRevisionWorker
- func (m *MockServiceRevisionWorker) EXPECT() *MockServiceRevisionWorkerMockRecorder
- func (m *MockServiceRevisionWorker) GetServiceInstanceRevision(serviceID string) string
- func (m *MockServiceRevisionWorker) GetServiceRevisionCount() int
- func (m *MockServiceRevisionWorker) Notify(serviceID string, valid bool)
- type MockServiceRevisionWorkerMockRecorder
- type MockStrategyCache
- func (m *MockStrategyCache) AddListener(listeners []api.Listener)
- func (m *MockStrategyCache) Clear() error
- func (m *MockStrategyCache) EXPECT() *MockStrategyCacheMockRecorder
- func (m *MockStrategyCache) ForceSync() error
- func (m *MockStrategyCache) GetStrategyDetailsByGroupID(groupId string) []*model.StrategyDetail
- func (m *MockStrategyCache) GetStrategyDetailsByUID(uid string) []*model.StrategyDetail
- func (m *MockStrategyCache) Initialize(c map[string]interface{}) error
- func (m *MockStrategyCache) IsResourceEditable(principal model.Principal, resType security.ResourceType, resId string) bool
- func (m *MockStrategyCache) IsResourceLinkStrategy(resType security.ResourceType, resId string) bool
- func (m *MockStrategyCache) Name() string
- func (m *MockStrategyCache) Update() error
- type MockStrategyCacheMockRecorder
- func (mr *MockStrategyCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) ForceSync() *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByGroupID(groupId interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByUID(uid interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) IsResourceEditable(principal, resType, resId interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) IsResourceLinkStrategy(resType, resId interface{}) *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) Name() *gomock.Call
- func (mr *MockStrategyCacheMockRecorder) Update() *gomock.Call
- type MockUserCache
- func (m *MockUserCache) AddListener(listeners []api.Listener)
- func (m *MockUserCache) Clear() error
- func (m *MockUserCache) EXPECT() *MockUserCacheMockRecorder
- func (m *MockUserCache) GetAdmin() *model.User
- func (m *MockUserCache) GetGroup(id string) *model.UserGroupDetail
- func (m *MockUserCache) GetUserByID(id string) *model.User
- func (m *MockUserCache) GetUserByName(name, ownerName string) *model.User
- func (m *MockUserCache) GetUserLinkGroupIds(id string) []string
- func (m *MockUserCache) Initialize(c map[string]interface{}) error
- func (m *MockUserCache) IsOwner(id string) bool
- func (m *MockUserCache) IsUserInGroup(userId, groupId string) bool
- func (m *MockUserCache) Name() string
- func (m *MockUserCache) Update() error
- type MockUserCacheMockRecorder
- func (mr *MockUserCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockUserCacheMockRecorder) GetAdmin() *gomock.Call
- func (mr *MockUserCacheMockRecorder) GetGroup(id interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) GetUserByID(id interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) GetUserByName(name, ownerName interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) GetUserLinkGroupIds(id interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) Initialize(c interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) IsOwner(id interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) IsUserInGroup(userId, groupId interface{}) *gomock.Call
- func (mr *MockUserCacheMockRecorder) Name() *gomock.Call
- func (mr *MockUserCacheMockRecorder) Update() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) AddListener ¶
AddListener mocks base method.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCache) Initialize ¶
Initialize mocks base method.
type MockCacheManager ¶
type MockCacheManager struct {
// contains filtered or unexported fields
}
MockCacheManager is a mock of CacheManager interface.
func NewMockCacheManager ¶
func NewMockCacheManager(ctrl *gomock.Controller) *MockCacheManager
NewMockCacheManager creates a new mock instance.
func (*MockCacheManager) EXPECT ¶
func (m *MockCacheManager) EXPECT() *MockCacheManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacheManager) GetCacher ¶
func (m *MockCacheManager) GetCacher(cacheIndex api.CacheIndex) api.Cache
GetCacher mocks base method.
func (*MockCacheManager) RegisterCacher ¶
func (m *MockCacheManager) RegisterCacher(cacheIndex api.CacheIndex, item api.Cache)
RegisterCacher mocks base method.
type MockCacheManagerMockRecorder ¶
type MockCacheManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheManagerMockRecorder is the mock recorder for MockCacheManager.
func (*MockCacheManagerMockRecorder) GetCacher ¶
func (mr *MockCacheManagerMockRecorder) GetCacher(cacheIndex interface{}) *gomock.Call
GetCacher indicates an expected call of GetCacher.
func (*MockCacheManagerMockRecorder) RegisterCacher ¶
func (mr *MockCacheManagerMockRecorder) RegisterCacher(cacheIndex, item interface{}) *gomock.Call
RegisterCacher indicates an expected call of RegisterCacher.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) AddListener ¶
func (mr *MockCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockCacheMockRecorder) Clear ¶
func (mr *MockCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockCacheMockRecorder) Initialize ¶
func (mr *MockCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockCacheMockRecorder) Name ¶
func (mr *MockCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockCacheMockRecorder) Update ¶
func (mr *MockCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockCircuitBreakerCache ¶
type MockCircuitBreakerCache struct {
// contains filtered or unexported fields
}
MockCircuitBreakerCache is a mock of CircuitBreakerCache interface.
func NewMockCircuitBreakerCache ¶
func NewMockCircuitBreakerCache(ctrl *gomock.Controller) *MockCircuitBreakerCache
NewMockCircuitBreakerCache creates a new mock instance.
func (*MockCircuitBreakerCache) AddListener ¶
func (m *MockCircuitBreakerCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockCircuitBreakerCache) Clear ¶
func (m *MockCircuitBreakerCache) Clear() error
Clear mocks base method.
func (*MockCircuitBreakerCache) EXPECT ¶
func (m *MockCircuitBreakerCache) EXPECT() *MockCircuitBreakerCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCircuitBreakerCache) GetCircuitBreakerConfig ¶
func (m *MockCircuitBreakerCache) GetCircuitBreakerConfig(svcName, namespace string) *model.ServiceWithCircuitBreakerRules
GetCircuitBreakerConfig mocks base method.
func (*MockCircuitBreakerCache) Initialize ¶
func (m *MockCircuitBreakerCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockCircuitBreakerCache) Name ¶
func (m *MockCircuitBreakerCache) Name() string
Name mocks base method.
func (*MockCircuitBreakerCache) Update ¶
func (m *MockCircuitBreakerCache) Update() error
Update mocks base method.
type MockCircuitBreakerCacheMockRecorder ¶
type MockCircuitBreakerCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCircuitBreakerCacheMockRecorder is the mock recorder for MockCircuitBreakerCache.
func (*MockCircuitBreakerCacheMockRecorder) AddListener ¶
func (mr *MockCircuitBreakerCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockCircuitBreakerCacheMockRecorder) Clear ¶
func (mr *MockCircuitBreakerCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockCircuitBreakerCacheMockRecorder) GetCircuitBreakerConfig ¶
func (mr *MockCircuitBreakerCacheMockRecorder) GetCircuitBreakerConfig(svcName, namespace interface{}) *gomock.Call
GetCircuitBreakerConfig indicates an expected call of GetCircuitBreakerConfig.
func (*MockCircuitBreakerCacheMockRecorder) Initialize ¶
func (mr *MockCircuitBreakerCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockCircuitBreakerCacheMockRecorder) Name ¶
func (mr *MockCircuitBreakerCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockCircuitBreakerCacheMockRecorder) Update ¶
func (mr *MockCircuitBreakerCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockClientCache ¶
type MockClientCache struct {
// contains filtered or unexported fields
}
MockClientCache is a mock of ClientCache interface.
func NewMockClientCache ¶
func NewMockClientCache(ctrl *gomock.Controller) *MockClientCache
NewMockClientCache creates a new mock instance.
func (*MockClientCache) AddListener ¶
func (m *MockClientCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockClientCache) EXPECT ¶
func (m *MockClientCache) EXPECT() *MockClientCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientCache) GetClient ¶
func (m *MockClientCache) GetClient(id string) *model.Client
GetClient mocks base method.
func (*MockClientCache) GetClientsByFilter ¶
func (m *MockClientCache) GetClientsByFilter(filters map[string]string, offset, limit uint32) (uint32, []*model.Client, error)
GetClientsByFilter mocks base method.
func (*MockClientCache) Initialize ¶
func (m *MockClientCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockClientCache) IteratorClients ¶
func (m *MockClientCache) IteratorClients(iterProc api.ClientIterProc)
IteratorClients mocks base method.
type MockClientCacheMockRecorder ¶
type MockClientCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockClientCacheMockRecorder is the mock recorder for MockClientCache.
func (*MockClientCacheMockRecorder) AddListener ¶
func (mr *MockClientCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockClientCacheMockRecorder) Clear ¶
func (mr *MockClientCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockClientCacheMockRecorder) GetClient ¶
func (mr *MockClientCacheMockRecorder) GetClient(id interface{}) *gomock.Call
GetClient indicates an expected call of GetClient.
func (*MockClientCacheMockRecorder) GetClientsByFilter ¶
func (mr *MockClientCacheMockRecorder) GetClientsByFilter(filters, offset, limit interface{}) *gomock.Call
GetClientsByFilter indicates an expected call of GetClientsByFilter.
func (*MockClientCacheMockRecorder) Initialize ¶
func (mr *MockClientCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockClientCacheMockRecorder) IteratorClients ¶
func (mr *MockClientCacheMockRecorder) IteratorClients(iterProc interface{}) *gomock.Call
IteratorClients indicates an expected call of IteratorClients.
func (*MockClientCacheMockRecorder) Name ¶
func (mr *MockClientCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockClientCacheMockRecorder) Update ¶
func (mr *MockClientCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockConfigFileCache ¶
type MockConfigFileCache struct {
// contains filtered or unexported fields
}
MockConfigFileCache is a mock of ConfigFileCache interface.
func NewMockConfigFileCache ¶
func NewMockConfigFileCache(ctrl *gomock.Controller) *MockConfigFileCache
NewMockConfigFileCache creates a new mock instance.
func (*MockConfigFileCache) AddListener ¶
func (m *MockConfigFileCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockConfigFileCache) Clear ¶
func (m *MockConfigFileCache) Clear() error
Clear mocks base method.
func (*MockConfigFileCache) EXPECT ¶
func (m *MockConfigFileCache) EXPECT() *MockConfigFileCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigFileCache) GetActiveRelease ¶
func (m *MockConfigFileCache) GetActiveRelease(namespace, group, fileName string) *model.ConfigFileRelease
GetActiveRelease mocks base method.
func (*MockConfigFileCache) GetGroupActiveReleases ¶
func (m *MockConfigFileCache) GetGroupActiveReleases(namespace, group string) ([]*model.ConfigFileRelease, string)
GetGroupActiveReleases mocks base method.
func (*MockConfigFileCache) GetRelease ¶
func (m *MockConfigFileCache) GetRelease(key model.ConfigFileReleaseKey) *model.ConfigFileRelease
GetRelease mocks base method.
func (*MockConfigFileCache) Initialize ¶
func (m *MockConfigFileCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockConfigFileCache) Name ¶
func (m *MockConfigFileCache) Name() string
Name mocks base method.
func (*MockConfigFileCache) QueryReleases ¶
func (m *MockConfigFileCache) QueryReleases(args *api.ConfigReleaseArgs) (uint32, []*model.SimpleConfigFileRelease, error)
QueryReleases mocks base method.
func (*MockConfigFileCache) Update ¶
func (m *MockConfigFileCache) Update() error
Update mocks base method.
type MockConfigFileCacheMockRecorder ¶
type MockConfigFileCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigFileCacheMockRecorder is the mock recorder for MockConfigFileCache.
func (*MockConfigFileCacheMockRecorder) AddListener ¶
func (mr *MockConfigFileCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockConfigFileCacheMockRecorder) Clear ¶
func (mr *MockConfigFileCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockConfigFileCacheMockRecorder) GetActiveRelease ¶
func (mr *MockConfigFileCacheMockRecorder) GetActiveRelease(namespace, group, fileName interface{}) *gomock.Call
GetActiveRelease indicates an expected call of GetActiveRelease.
func (*MockConfigFileCacheMockRecorder) GetGroupActiveReleases ¶
func (mr *MockConfigFileCacheMockRecorder) GetGroupActiveReleases(namespace, group interface{}) *gomock.Call
GetGroupActiveReleases indicates an expected call of GetGroupActiveReleases.
func (*MockConfigFileCacheMockRecorder) GetRelease ¶
func (mr *MockConfigFileCacheMockRecorder) GetRelease(key interface{}) *gomock.Call
GetRelease indicates an expected call of GetRelease.
func (*MockConfigFileCacheMockRecorder) Initialize ¶
func (mr *MockConfigFileCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockConfigFileCacheMockRecorder) Name ¶
func (mr *MockConfigFileCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockConfigFileCacheMockRecorder) QueryReleases ¶
func (mr *MockConfigFileCacheMockRecorder) QueryReleases(args interface{}) *gomock.Call
QueryReleases indicates an expected call of QueryReleases.
func (*MockConfigFileCacheMockRecorder) Update ¶
func (mr *MockConfigFileCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockConfigGroupCache ¶
type MockConfigGroupCache struct {
// contains filtered or unexported fields
}
MockConfigGroupCache is a mock of ConfigGroupCache interface.
func NewMockConfigGroupCache ¶
func NewMockConfigGroupCache(ctrl *gomock.Controller) *MockConfigGroupCache
NewMockConfigGroupCache creates a new mock instance.
func (*MockConfigGroupCache) AddListener ¶
func (m *MockConfigGroupCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockConfigGroupCache) Clear ¶
func (m *MockConfigGroupCache) Clear() error
Clear mocks base method.
func (*MockConfigGroupCache) EXPECT ¶
func (m *MockConfigGroupCache) EXPECT() *MockConfigGroupCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfigGroupCache) GetGroupByID ¶
func (m *MockConfigGroupCache) GetGroupByID(id uint64) *model.ConfigFileGroup
GetGroupByID mocks base method.
func (*MockConfigGroupCache) GetGroupByName ¶
func (m *MockConfigGroupCache) GetGroupByName(namespace, name string) *model.ConfigFileGroup
GetGroupByName mocks base method.
func (*MockConfigGroupCache) Initialize ¶
func (m *MockConfigGroupCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockConfigGroupCache) Name ¶
func (m *MockConfigGroupCache) Name() string
Name mocks base method.
func (*MockConfigGroupCache) Query ¶
func (m *MockConfigGroupCache) Query(args *api.ConfigGroupArgs) (uint32, []*model.ConfigFileGroup, error)
Query mocks base method.
func (*MockConfigGroupCache) Update ¶
func (m *MockConfigGroupCache) Update() error
Update mocks base method.
type MockConfigGroupCacheMockRecorder ¶
type MockConfigGroupCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigGroupCacheMockRecorder is the mock recorder for MockConfigGroupCache.
func (*MockConfigGroupCacheMockRecorder) AddListener ¶
func (mr *MockConfigGroupCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockConfigGroupCacheMockRecorder) Clear ¶
func (mr *MockConfigGroupCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockConfigGroupCacheMockRecorder) GetGroupByID ¶
func (mr *MockConfigGroupCacheMockRecorder) GetGroupByID(id interface{}) *gomock.Call
GetGroupByID indicates an expected call of GetGroupByID.
func (*MockConfigGroupCacheMockRecorder) GetGroupByName ¶
func (mr *MockConfigGroupCacheMockRecorder) GetGroupByName(namespace, name interface{}) *gomock.Call
GetGroupByName indicates an expected call of GetGroupByName.
func (*MockConfigGroupCacheMockRecorder) Initialize ¶
func (mr *MockConfigGroupCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockConfigGroupCacheMockRecorder) Name ¶
func (mr *MockConfigGroupCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockConfigGroupCacheMockRecorder) Query ¶
func (mr *MockConfigGroupCacheMockRecorder) Query(args interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockConfigGroupCacheMockRecorder) Update ¶
func (mr *MockConfigGroupCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockFaultDetectCache ¶
type MockFaultDetectCache struct {
// contains filtered or unexported fields
}
MockFaultDetectCache is a mock of FaultDetectCache interface.
func NewMockFaultDetectCache ¶
func NewMockFaultDetectCache(ctrl *gomock.Controller) *MockFaultDetectCache
NewMockFaultDetectCache creates a new mock instance.
func (*MockFaultDetectCache) AddListener ¶
func (m *MockFaultDetectCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockFaultDetectCache) Clear ¶
func (m *MockFaultDetectCache) Clear() error
Clear mocks base method.
func (*MockFaultDetectCache) EXPECT ¶
func (m *MockFaultDetectCache) EXPECT() *MockFaultDetectCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFaultDetectCache) GetFaultDetectConfig ¶
func (m *MockFaultDetectCache) GetFaultDetectConfig(svcName, namespace string) *model.ServiceWithFaultDetectRules
GetFaultDetectConfig mocks base method.
func (*MockFaultDetectCache) Initialize ¶
func (m *MockFaultDetectCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockFaultDetectCache) Name ¶
func (m *MockFaultDetectCache) Name() string
Name mocks base method.
func (*MockFaultDetectCache) Update ¶
func (m *MockFaultDetectCache) Update() error
Update mocks base method.
type MockFaultDetectCacheMockRecorder ¶
type MockFaultDetectCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockFaultDetectCacheMockRecorder is the mock recorder for MockFaultDetectCache.
func (*MockFaultDetectCacheMockRecorder) AddListener ¶
func (mr *MockFaultDetectCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockFaultDetectCacheMockRecorder) Clear ¶
func (mr *MockFaultDetectCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockFaultDetectCacheMockRecorder) GetFaultDetectConfig ¶
func (mr *MockFaultDetectCacheMockRecorder) GetFaultDetectConfig(svcName, namespace interface{}) *gomock.Call
GetFaultDetectConfig indicates an expected call of GetFaultDetectConfig.
func (*MockFaultDetectCacheMockRecorder) Initialize ¶
func (mr *MockFaultDetectCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockFaultDetectCacheMockRecorder) Name ¶
func (mr *MockFaultDetectCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockFaultDetectCacheMockRecorder) Update ¶
func (mr *MockFaultDetectCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockInstanceCache ¶
type MockInstanceCache struct {
// contains filtered or unexported fields
}
MockInstanceCache is a mock of InstanceCache interface.
func NewMockInstanceCache ¶
func NewMockInstanceCache(ctrl *gomock.Controller) *MockInstanceCache
NewMockInstanceCache creates a new mock instance.
func (*MockInstanceCache) AddListener ¶
func (m *MockInstanceCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockInstanceCache) Clear ¶
func (m *MockInstanceCache) Clear() error
Clear mocks base method.
func (*MockInstanceCache) EXPECT ¶
func (m *MockInstanceCache) EXPECT() *MockInstanceCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInstanceCache) GetInstance ¶
func (m *MockInstanceCache) GetInstance(instanceID string) *model.Instance
GetInstance mocks base method.
func (*MockInstanceCache) GetInstanceLabels ¶
func (m *MockInstanceCache) GetInstanceLabels(serviceID string) *service_manage.InstanceLabels
GetInstanceLabels mocks base method.
func (*MockInstanceCache) GetInstancesByServiceID ¶
func (m *MockInstanceCache) GetInstancesByServiceID(serviceID string) []*model.Instance
GetInstancesByServiceID mocks base method.
func (*MockInstanceCache) GetInstancesCount ¶
func (m *MockInstanceCache) GetInstancesCount() int
GetInstancesCount mocks base method.
func (*MockInstanceCache) GetInstancesCountByServiceID ¶
func (m *MockInstanceCache) GetInstancesCountByServiceID(serviceID string) model.InstanceCount
GetInstancesCountByServiceID mocks base method.
func (*MockInstanceCache) GetServicePorts ¶
func (m *MockInstanceCache) GetServicePorts(serviceID string) []*model.ServicePort
GetServicePorts mocks base method.
func (*MockInstanceCache) Initialize ¶
func (m *MockInstanceCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockInstanceCache) IteratorInstances ¶
func (m *MockInstanceCache) IteratorInstances(iterProc api.InstanceIterProc) error
IteratorInstances mocks base method.
func (*MockInstanceCache) IteratorInstancesWithService ¶
func (m *MockInstanceCache) IteratorInstancesWithService(serviceID string, iterProc api.InstanceIterProc) error
IteratorInstancesWithService mocks base method.
func (*MockInstanceCache) QueryInstances ¶
func (m *MockInstanceCache) QueryInstances(filter, metaFilter map[string]string, offset, limit uint32) (uint32, []*model.Instance, error)
QueryInstances mocks base method.
func (*MockInstanceCache) Update ¶
func (m *MockInstanceCache) Update() error
Update mocks base method.
type MockInstanceCacheMockRecorder ¶
type MockInstanceCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceCacheMockRecorder is the mock recorder for MockInstanceCache.
func (*MockInstanceCacheMockRecorder) AddListener ¶
func (mr *MockInstanceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockInstanceCacheMockRecorder) Clear ¶
func (mr *MockInstanceCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockInstanceCacheMockRecorder) GetInstance ¶
func (mr *MockInstanceCacheMockRecorder) GetInstance(instanceID interface{}) *gomock.Call
GetInstance indicates an expected call of GetInstance.
func (*MockInstanceCacheMockRecorder) GetInstanceLabels ¶
func (mr *MockInstanceCacheMockRecorder) GetInstanceLabels(serviceID interface{}) *gomock.Call
GetInstanceLabels indicates an expected call of GetInstanceLabels.
func (*MockInstanceCacheMockRecorder) GetInstancesByServiceID ¶
func (mr *MockInstanceCacheMockRecorder) GetInstancesByServiceID(serviceID interface{}) *gomock.Call
GetInstancesByServiceID indicates an expected call of GetInstancesByServiceID.
func (*MockInstanceCacheMockRecorder) GetInstancesCount ¶
func (mr *MockInstanceCacheMockRecorder) GetInstancesCount() *gomock.Call
GetInstancesCount indicates an expected call of GetInstancesCount.
func (*MockInstanceCacheMockRecorder) GetInstancesCountByServiceID ¶
func (mr *MockInstanceCacheMockRecorder) GetInstancesCountByServiceID(serviceID interface{}) *gomock.Call
GetInstancesCountByServiceID indicates an expected call of GetInstancesCountByServiceID.
func (*MockInstanceCacheMockRecorder) GetServicePorts ¶
func (mr *MockInstanceCacheMockRecorder) GetServicePorts(serviceID interface{}) *gomock.Call
GetServicePorts indicates an expected call of GetServicePorts.
func (*MockInstanceCacheMockRecorder) Initialize ¶
func (mr *MockInstanceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockInstanceCacheMockRecorder) IteratorInstances ¶
func (mr *MockInstanceCacheMockRecorder) IteratorInstances(iterProc interface{}) *gomock.Call
IteratorInstances indicates an expected call of IteratorInstances.
func (*MockInstanceCacheMockRecorder) IteratorInstancesWithService ¶
func (mr *MockInstanceCacheMockRecorder) IteratorInstancesWithService(serviceID, iterProc interface{}) *gomock.Call
IteratorInstancesWithService indicates an expected call of IteratorInstancesWithService.
func (*MockInstanceCacheMockRecorder) Name ¶
func (mr *MockInstanceCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockInstanceCacheMockRecorder) QueryInstances ¶
func (mr *MockInstanceCacheMockRecorder) QueryInstances(filter, metaFilter, offset, limit interface{}) *gomock.Call
QueryInstances indicates an expected call of QueryInstances.
func (*MockInstanceCacheMockRecorder) Update ¶
func (mr *MockInstanceCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockL5Cache ¶
type MockL5Cache struct {
// contains filtered or unexported fields
}
MockL5Cache is a mock of L5Cache interface.
func NewMockL5Cache ¶
func NewMockL5Cache(ctrl *gomock.Controller) *MockL5Cache
NewMockL5Cache creates a new mock instance.
func (*MockL5Cache) AddListener ¶
func (m *MockL5Cache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockL5Cache) CheckRouteExisted ¶
func (m *MockL5Cache) CheckRouteExisted(ip, modID, cmdID uint32) bool
CheckRouteExisted mocks base method.
func (*MockL5Cache) EXPECT ¶
func (m *MockL5Cache) EXPECT() *MockL5CacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockL5Cache) GetIPConfig ¶
func (m *MockL5Cache) GetIPConfig(ip uint32) *model.IPConfig
GetIPConfig mocks base method.
func (*MockL5Cache) GetPolicy ¶
func (m *MockL5Cache) GetPolicy(modID uint32) *model.Policy
GetPolicy mocks base method.
func (*MockL5Cache) GetRouteByIP ¶
func (m *MockL5Cache) GetRouteByIP(ip uint32) []*model.Route
GetRouteByIP mocks base method.
func (*MockL5Cache) GetSection ¶
func (m *MockL5Cache) GetSection(modeID uint32) []*model.Section
GetSection mocks base method.
func (*MockL5Cache) Initialize ¶
func (m *MockL5Cache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
type MockL5CacheMockRecorder ¶
type MockL5CacheMockRecorder struct {
// contains filtered or unexported fields
}
MockL5CacheMockRecorder is the mock recorder for MockL5Cache.
func (*MockL5CacheMockRecorder) AddListener ¶
func (mr *MockL5CacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockL5CacheMockRecorder) CheckRouteExisted ¶
func (mr *MockL5CacheMockRecorder) CheckRouteExisted(ip, modID, cmdID interface{}) *gomock.Call
CheckRouteExisted indicates an expected call of CheckRouteExisted.
func (*MockL5CacheMockRecorder) Clear ¶
func (mr *MockL5CacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockL5CacheMockRecorder) GetIPConfig ¶
func (mr *MockL5CacheMockRecorder) GetIPConfig(ip interface{}) *gomock.Call
GetIPConfig indicates an expected call of GetIPConfig.
func (*MockL5CacheMockRecorder) GetPolicy ¶
func (mr *MockL5CacheMockRecorder) GetPolicy(modID interface{}) *gomock.Call
GetPolicy indicates an expected call of GetPolicy.
func (*MockL5CacheMockRecorder) GetRouteByIP ¶
func (mr *MockL5CacheMockRecorder) GetRouteByIP(ip interface{}) *gomock.Call
GetRouteByIP indicates an expected call of GetRouteByIP.
func (*MockL5CacheMockRecorder) GetSection ¶
func (mr *MockL5CacheMockRecorder) GetSection(modeID interface{}) *gomock.Call
GetSection indicates an expected call of GetSection.
func (*MockL5CacheMockRecorder) Initialize ¶
func (mr *MockL5CacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockL5CacheMockRecorder) Name ¶
func (mr *MockL5CacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockL5CacheMockRecorder) Update ¶
func (mr *MockL5CacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockNamespaceCache ¶
type MockNamespaceCache struct {
// contains filtered or unexported fields
}
MockNamespaceCache is a mock of NamespaceCache interface.
func NewMockNamespaceCache ¶
func NewMockNamespaceCache(ctrl *gomock.Controller) *MockNamespaceCache
NewMockNamespaceCache creates a new mock instance.
func (*MockNamespaceCache) AddListener ¶
func (m *MockNamespaceCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockNamespaceCache) Clear ¶
func (m *MockNamespaceCache) Clear() error
Clear mocks base method.
func (*MockNamespaceCache) EXPECT ¶
func (m *MockNamespaceCache) EXPECT() *MockNamespaceCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamespaceCache) GetNamespace ¶
func (m *MockNamespaceCache) GetNamespace(id string) *model.Namespace
GetNamespace mocks base method.
func (*MockNamespaceCache) GetNamespaceList ¶
func (m *MockNamespaceCache) GetNamespaceList() []*model.Namespace
GetNamespaceList mocks base method.
func (*MockNamespaceCache) GetNamespacesByName ¶
func (m *MockNamespaceCache) GetNamespacesByName(names []string) []*model.Namespace
GetNamespacesByName mocks base method.
func (*MockNamespaceCache) Initialize ¶
func (m *MockNamespaceCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockNamespaceCache) Name ¶
func (m *MockNamespaceCache) Name() string
Name mocks base method.
func (*MockNamespaceCache) Update ¶
func (m *MockNamespaceCache) Update() error
Update mocks base method.
type MockNamespaceCacheMockRecorder ¶
type MockNamespaceCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockNamespaceCacheMockRecorder is the mock recorder for MockNamespaceCache.
func (*MockNamespaceCacheMockRecorder) AddListener ¶
func (mr *MockNamespaceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockNamespaceCacheMockRecorder) Clear ¶
func (mr *MockNamespaceCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockNamespaceCacheMockRecorder) GetNamespace ¶
func (mr *MockNamespaceCacheMockRecorder) GetNamespace(id interface{}) *gomock.Call
GetNamespace indicates an expected call of GetNamespace.
func (*MockNamespaceCacheMockRecorder) GetNamespaceList ¶
func (mr *MockNamespaceCacheMockRecorder) GetNamespaceList() *gomock.Call
GetNamespaceList indicates an expected call of GetNamespaceList.
func (*MockNamespaceCacheMockRecorder) GetNamespacesByName ¶
func (mr *MockNamespaceCacheMockRecorder) GetNamespacesByName(names interface{}) *gomock.Call
GetNamespacesByName indicates an expected call of GetNamespacesByName.
func (*MockNamespaceCacheMockRecorder) Initialize ¶
func (mr *MockNamespaceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockNamespaceCacheMockRecorder) Name ¶
func (mr *MockNamespaceCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockNamespaceCacheMockRecorder) Update ¶
func (mr *MockNamespaceCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockRateLimitCache ¶
type MockRateLimitCache struct {
// contains filtered or unexported fields
}
MockRateLimitCache is a mock of RateLimitCache interface.
func NewMockRateLimitCache ¶
func NewMockRateLimitCache(ctrl *gomock.Controller) *MockRateLimitCache
NewMockRateLimitCache creates a new mock instance.
func (*MockRateLimitCache) AddListener ¶
func (m *MockRateLimitCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockRateLimitCache) Clear ¶
func (m *MockRateLimitCache) Clear() error
Clear mocks base method.
func (*MockRateLimitCache) EXPECT ¶
func (m *MockRateLimitCache) EXPECT() *MockRateLimitCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRateLimitCache) GetRateLimitRules ¶
func (m *MockRateLimitCache) GetRateLimitRules(serviceKey model.ServiceKey) ([]*model.RateLimit, string)
GetRateLimitRules mocks base method.
func (*MockRateLimitCache) GetRateLimitsCount ¶
func (m *MockRateLimitCache) GetRateLimitsCount() int
GetRateLimitsCount mocks base method.
func (*MockRateLimitCache) Initialize ¶
func (m *MockRateLimitCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockRateLimitCache) IteratorRateLimit ¶
func (m *MockRateLimitCache) IteratorRateLimit(rateLimitIterProc api.RateLimitIterProc)
IteratorRateLimit mocks base method.
func (*MockRateLimitCache) Name ¶
func (m *MockRateLimitCache) Name() string
Name mocks base method.
func (*MockRateLimitCache) QueryRateLimitRules ¶
func (m *MockRateLimitCache) QueryRateLimitRules(args api.RateLimitRuleArgs) (uint32, []*model.RateLimit, error)
QueryRateLimitRules mocks base method.
func (*MockRateLimitCache) Update ¶
func (m *MockRateLimitCache) Update() error
Update mocks base method.
type MockRateLimitCacheMockRecorder ¶
type MockRateLimitCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockRateLimitCacheMockRecorder is the mock recorder for MockRateLimitCache.
func (*MockRateLimitCacheMockRecorder) AddListener ¶
func (mr *MockRateLimitCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockRateLimitCacheMockRecorder) Clear ¶
func (mr *MockRateLimitCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockRateLimitCacheMockRecorder) GetRateLimitRules ¶
func (mr *MockRateLimitCacheMockRecorder) GetRateLimitRules(serviceKey interface{}) *gomock.Call
GetRateLimitRules indicates an expected call of GetRateLimitRules.
func (*MockRateLimitCacheMockRecorder) GetRateLimitsCount ¶
func (mr *MockRateLimitCacheMockRecorder) GetRateLimitsCount() *gomock.Call
GetRateLimitsCount indicates an expected call of GetRateLimitsCount.
func (*MockRateLimitCacheMockRecorder) Initialize ¶
func (mr *MockRateLimitCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockRateLimitCacheMockRecorder) IteratorRateLimit ¶
func (mr *MockRateLimitCacheMockRecorder) IteratorRateLimit(rateLimitIterProc interface{}) *gomock.Call
IteratorRateLimit indicates an expected call of IteratorRateLimit.
func (*MockRateLimitCacheMockRecorder) Name ¶
func (mr *MockRateLimitCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRateLimitCacheMockRecorder) QueryRateLimitRules ¶
func (mr *MockRateLimitCacheMockRecorder) QueryRateLimitRules(args interface{}) *gomock.Call
QueryRateLimitRules indicates an expected call of QueryRateLimitRules.
func (*MockRateLimitCacheMockRecorder) Update ¶
func (mr *MockRateLimitCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockRoutingConfigCache ¶
type MockRoutingConfigCache struct {
// contains filtered or unexported fields
}
MockRoutingConfigCache is a mock of RoutingConfigCache interface.
func NewMockRoutingConfigCache ¶
func NewMockRoutingConfigCache(ctrl *gomock.Controller) *MockRoutingConfigCache
NewMockRoutingConfigCache creates a new mock instance.
func (*MockRoutingConfigCache) AddListener ¶
func (m *MockRoutingConfigCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockRoutingConfigCache) Clear ¶
func (m *MockRoutingConfigCache) Clear() error
Clear mocks base method.
func (*MockRoutingConfigCache) EXPECT ¶
func (m *MockRoutingConfigCache) EXPECT() *MockRoutingConfigCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRoutingConfigCache) GetRouterConfig ¶
func (m *MockRoutingConfigCache) GetRouterConfig(id, service, namespace string) (*traffic_manage.Routing, error)
GetRouterConfig mocks base method.
func (*MockRoutingConfigCache) GetRouterConfigV2 ¶
func (m *MockRoutingConfigCache) GetRouterConfigV2(id, service, namespace string) (*traffic_manage.Routing, error)
GetRouterConfigV2 mocks base method.
func (*MockRoutingConfigCache) GetRoutingConfigCount ¶
func (m *MockRoutingConfigCache) GetRoutingConfigCount() int
GetRoutingConfigCount mocks base method.
func (*MockRoutingConfigCache) Initialize ¶
func (m *MockRoutingConfigCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockRoutingConfigCache) IsConvertFromV1 ¶
func (m *MockRoutingConfigCache) IsConvertFromV1(id string) (string, bool)
IsConvertFromV1 mocks base method.
func (*MockRoutingConfigCache) IteratorRouterRule ¶
func (m *MockRoutingConfigCache) IteratorRouterRule(iterProc api.RouterRuleIterProc)
IteratorRouterRule mocks base method.
func (*MockRoutingConfigCache) ListRouterRule ¶
func (m *MockRoutingConfigCache) ListRouterRule(service, namespace string) []*model.ExtendRouterConfig
ListRouterRule mocks base method.
func (*MockRoutingConfigCache) Name ¶
func (m *MockRoutingConfigCache) Name() string
Name mocks base method.
func (*MockRoutingConfigCache) QueryRoutingConfigsV2 ¶
func (m *MockRoutingConfigCache) QueryRoutingConfigsV2(args *api.RoutingArgs) (uint32, []*model.ExtendRouterConfig, error)
QueryRoutingConfigsV2 mocks base method.
func (*MockRoutingConfigCache) Update ¶
func (m *MockRoutingConfigCache) Update() error
Update mocks base method.
type MockRoutingConfigCacheMockRecorder ¶
type MockRoutingConfigCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockRoutingConfigCacheMockRecorder is the mock recorder for MockRoutingConfigCache.
func (*MockRoutingConfigCacheMockRecorder) AddListener ¶
func (mr *MockRoutingConfigCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockRoutingConfigCacheMockRecorder) Clear ¶
func (mr *MockRoutingConfigCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockRoutingConfigCacheMockRecorder) GetRouterConfig ¶
func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfig(id, service, namespace interface{}) *gomock.Call
GetRouterConfig indicates an expected call of GetRouterConfig.
func (*MockRoutingConfigCacheMockRecorder) GetRouterConfigV2 ¶
func (mr *MockRoutingConfigCacheMockRecorder) GetRouterConfigV2(id, service, namespace interface{}) *gomock.Call
GetRouterConfigV2 indicates an expected call of GetRouterConfigV2.
func (*MockRoutingConfigCacheMockRecorder) GetRoutingConfigCount ¶
func (mr *MockRoutingConfigCacheMockRecorder) GetRoutingConfigCount() *gomock.Call
GetRoutingConfigCount indicates an expected call of GetRoutingConfigCount.
func (*MockRoutingConfigCacheMockRecorder) Initialize ¶
func (mr *MockRoutingConfigCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockRoutingConfigCacheMockRecorder) IsConvertFromV1 ¶
func (mr *MockRoutingConfigCacheMockRecorder) IsConvertFromV1(id interface{}) *gomock.Call
IsConvertFromV1 indicates an expected call of IsConvertFromV1.
func (*MockRoutingConfigCacheMockRecorder) IteratorRouterRule ¶
func (mr *MockRoutingConfigCacheMockRecorder) IteratorRouterRule(iterProc interface{}) *gomock.Call
IteratorRouterRule indicates an expected call of IteratorRouterRule.
func (*MockRoutingConfigCacheMockRecorder) ListRouterRule ¶
func (mr *MockRoutingConfigCacheMockRecorder) ListRouterRule(service, namespace interface{}) *gomock.Call
ListRouterRule indicates an expected call of ListRouterRule.
func (*MockRoutingConfigCacheMockRecorder) Name ¶
func (mr *MockRoutingConfigCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockRoutingConfigCacheMockRecorder) QueryRoutingConfigsV2 ¶
func (mr *MockRoutingConfigCacheMockRecorder) QueryRoutingConfigsV2(args interface{}) *gomock.Call
QueryRoutingConfigsV2 indicates an expected call of QueryRoutingConfigsV2.
func (*MockRoutingConfigCacheMockRecorder) Update ¶
func (mr *MockRoutingConfigCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockServiceCache ¶
type MockServiceCache struct {
// contains filtered or unexported fields
}
MockServiceCache is a mock of ServiceCache interface.
func NewMockServiceCache ¶
func NewMockServiceCache(ctrl *gomock.Controller) *MockServiceCache
NewMockServiceCache creates a new mock instance.
func (*MockServiceCache) AddListener ¶
func (m *MockServiceCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockServiceCache) CleanNamespace ¶
func (m *MockServiceCache) CleanNamespace(namespace string)
CleanNamespace mocks base method.
func (*MockServiceCache) EXPECT ¶
func (m *MockServiceCache) EXPECT() *MockServiceCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServiceCache) GetAliasFor ¶
func (m *MockServiceCache) GetAliasFor(name, namespace string) *model.Service
GetAliasFor mocks base method.
func (*MockServiceCache) GetAllNamespaces ¶
func (m *MockServiceCache) GetAllNamespaces() []string
GetAllNamespaces mocks base method.
func (*MockServiceCache) GetNamespaceCntInfo ¶
func (m *MockServiceCache) GetNamespaceCntInfo(namespace string) model.NamespaceServiceCount
GetNamespaceCntInfo mocks base method.
func (*MockServiceCache) GetRevisionWorker ¶
func (m *MockServiceCache) GetRevisionWorker() api.ServiceRevisionWorker
GetRevisionWorker mocks base method.
func (*MockServiceCache) GetServiceByCl5Name ¶
func (m *MockServiceCache) GetServiceByCl5Name(cl5Name string) *model.Service
GetServiceByCl5Name mocks base method.
func (*MockServiceCache) GetServiceByID ¶
func (m *MockServiceCache) GetServiceByID(id string) *model.Service
GetServiceByID mocks base method.
func (*MockServiceCache) GetServiceByName ¶
func (m *MockServiceCache) GetServiceByName(name, namespace string) *model.Service
GetServiceByName mocks base method.
func (*MockServiceCache) GetServicesByFilter ¶
func (m *MockServiceCache) GetServicesByFilter(serviceFilters *api.ServiceArgs, instanceFilters *store.InstanceArgs, offset, limit uint32) (uint32, []*model.EnhancedService, error)
GetServicesByFilter mocks base method.
func (*MockServiceCache) GetServicesCount ¶
func (m *MockServiceCache) GetServicesCount() int
GetServicesCount mocks base method.
func (*MockServiceCache) Initialize ¶
func (m *MockServiceCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockServiceCache) IteratorServices ¶
func (m *MockServiceCache) IteratorServices(iterProc api.ServiceIterProc) error
IteratorServices mocks base method.
func (*MockServiceCache) ListAllServices ¶
func (m *MockServiceCache) ListAllServices() (string, []*model.Service)
ListAllServices mocks base method.
func (*MockServiceCache) ListServiceAlias ¶
func (m *MockServiceCache) ListServiceAlias(namespace, name string) []*model.Service
ListServiceAlias mocks base method.
func (*MockServiceCache) ListServices ¶
func (m *MockServiceCache) ListServices(ns string) (string, []*model.Service)
ListServices mocks base method.
func (*MockServiceCache) Update ¶
func (m *MockServiceCache) Update() error
Update mocks base method.
type MockServiceCacheMockRecorder ¶
type MockServiceCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceCacheMockRecorder is the mock recorder for MockServiceCache.
func (*MockServiceCacheMockRecorder) AddListener ¶
func (mr *MockServiceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockServiceCacheMockRecorder) CleanNamespace ¶
func (mr *MockServiceCacheMockRecorder) CleanNamespace(namespace interface{}) *gomock.Call
CleanNamespace indicates an expected call of CleanNamespace.
func (*MockServiceCacheMockRecorder) Clear ¶
func (mr *MockServiceCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockServiceCacheMockRecorder) GetAliasFor ¶
func (mr *MockServiceCacheMockRecorder) GetAliasFor(name, namespace interface{}) *gomock.Call
GetAliasFor indicates an expected call of GetAliasFor.
func (*MockServiceCacheMockRecorder) GetAllNamespaces ¶
func (mr *MockServiceCacheMockRecorder) GetAllNamespaces() *gomock.Call
GetAllNamespaces indicates an expected call of GetAllNamespaces.
func (*MockServiceCacheMockRecorder) GetNamespaceCntInfo ¶
func (mr *MockServiceCacheMockRecorder) GetNamespaceCntInfo(namespace interface{}) *gomock.Call
GetNamespaceCntInfo indicates an expected call of GetNamespaceCntInfo.
func (*MockServiceCacheMockRecorder) GetRevisionWorker ¶
func (mr *MockServiceCacheMockRecorder) GetRevisionWorker() *gomock.Call
GetRevisionWorker indicates an expected call of GetRevisionWorker.
func (*MockServiceCacheMockRecorder) GetServiceByCl5Name ¶
func (mr *MockServiceCacheMockRecorder) GetServiceByCl5Name(cl5Name interface{}) *gomock.Call
GetServiceByCl5Name indicates an expected call of GetServiceByCl5Name.
func (*MockServiceCacheMockRecorder) GetServiceByID ¶
func (mr *MockServiceCacheMockRecorder) GetServiceByID(id interface{}) *gomock.Call
GetServiceByID indicates an expected call of GetServiceByID.
func (*MockServiceCacheMockRecorder) GetServiceByName ¶
func (mr *MockServiceCacheMockRecorder) GetServiceByName(name, namespace interface{}) *gomock.Call
GetServiceByName indicates an expected call of GetServiceByName.
func (*MockServiceCacheMockRecorder) GetServicesByFilter ¶
func (mr *MockServiceCacheMockRecorder) GetServicesByFilter(serviceFilters, instanceFilters, offset, limit interface{}) *gomock.Call
GetServicesByFilter indicates an expected call of GetServicesByFilter.
func (*MockServiceCacheMockRecorder) GetServicesCount ¶
func (mr *MockServiceCacheMockRecorder) GetServicesCount() *gomock.Call
GetServicesCount indicates an expected call of GetServicesCount.
func (*MockServiceCacheMockRecorder) Initialize ¶
func (mr *MockServiceCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockServiceCacheMockRecorder) IteratorServices ¶
func (mr *MockServiceCacheMockRecorder) IteratorServices(iterProc interface{}) *gomock.Call
IteratorServices indicates an expected call of IteratorServices.
func (*MockServiceCacheMockRecorder) ListAllServices ¶
func (mr *MockServiceCacheMockRecorder) ListAllServices() *gomock.Call
ListAllServices indicates an expected call of ListAllServices.
func (*MockServiceCacheMockRecorder) ListServiceAlias ¶
func (mr *MockServiceCacheMockRecorder) ListServiceAlias(namespace, name interface{}) *gomock.Call
ListServiceAlias indicates an expected call of ListServiceAlias.
func (*MockServiceCacheMockRecorder) ListServices ¶
func (mr *MockServiceCacheMockRecorder) ListServices(ns interface{}) *gomock.Call
ListServices indicates an expected call of ListServices.
func (*MockServiceCacheMockRecorder) Name ¶
func (mr *MockServiceCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockServiceCacheMockRecorder) Update ¶
func (mr *MockServiceCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockServiceRevisionWorker ¶
type MockServiceRevisionWorker struct {
// contains filtered or unexported fields
}
MockServiceRevisionWorker is a mock of ServiceRevisionWorker interface.
func NewMockServiceRevisionWorker ¶
func NewMockServiceRevisionWorker(ctrl *gomock.Controller) *MockServiceRevisionWorker
NewMockServiceRevisionWorker creates a new mock instance.
func (*MockServiceRevisionWorker) EXPECT ¶
func (m *MockServiceRevisionWorker) EXPECT() *MockServiceRevisionWorkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServiceRevisionWorker) GetServiceInstanceRevision ¶
func (m *MockServiceRevisionWorker) GetServiceInstanceRevision(serviceID string) string
GetServiceInstanceRevision mocks base method.
func (*MockServiceRevisionWorker) GetServiceRevisionCount ¶
func (m *MockServiceRevisionWorker) GetServiceRevisionCount() int
GetServiceRevisionCount mocks base method.
func (*MockServiceRevisionWorker) Notify ¶
func (m *MockServiceRevisionWorker) Notify(serviceID string, valid bool)
Notify mocks base method.
type MockServiceRevisionWorkerMockRecorder ¶
type MockServiceRevisionWorkerMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceRevisionWorkerMockRecorder is the mock recorder for MockServiceRevisionWorker.
func (*MockServiceRevisionWorkerMockRecorder) GetServiceInstanceRevision ¶
func (mr *MockServiceRevisionWorkerMockRecorder) GetServiceInstanceRevision(serviceID interface{}) *gomock.Call
GetServiceInstanceRevision indicates an expected call of GetServiceInstanceRevision.
func (*MockServiceRevisionWorkerMockRecorder) GetServiceRevisionCount ¶
func (mr *MockServiceRevisionWorkerMockRecorder) GetServiceRevisionCount() *gomock.Call
GetServiceRevisionCount indicates an expected call of GetServiceRevisionCount.
func (*MockServiceRevisionWorkerMockRecorder) Notify ¶
func (mr *MockServiceRevisionWorkerMockRecorder) Notify(serviceID, valid interface{}) *gomock.Call
Notify indicates an expected call of Notify.
type MockStrategyCache ¶
type MockStrategyCache struct {
// contains filtered or unexported fields
}
MockStrategyCache is a mock of StrategyCache interface.
func NewMockStrategyCache ¶
func NewMockStrategyCache(ctrl *gomock.Controller) *MockStrategyCache
NewMockStrategyCache creates a new mock instance.
func (*MockStrategyCache) AddListener ¶
func (m *MockStrategyCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockStrategyCache) Clear ¶
func (m *MockStrategyCache) Clear() error
Clear mocks base method.
func (*MockStrategyCache) EXPECT ¶
func (m *MockStrategyCache) EXPECT() *MockStrategyCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStrategyCache) ForceSync ¶
func (m *MockStrategyCache) ForceSync() error
ForceSync mocks base method.
func (*MockStrategyCache) GetStrategyDetailsByGroupID ¶
func (m *MockStrategyCache) GetStrategyDetailsByGroupID(groupId string) []*model.StrategyDetail
GetStrategyDetailsByGroupID mocks base method.
func (*MockStrategyCache) GetStrategyDetailsByUID ¶
func (m *MockStrategyCache) GetStrategyDetailsByUID(uid string) []*model.StrategyDetail
GetStrategyDetailsByUID mocks base method.
func (*MockStrategyCache) Initialize ¶
func (m *MockStrategyCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockStrategyCache) IsResourceEditable ¶
func (m *MockStrategyCache) IsResourceEditable(principal model.Principal, resType security.ResourceType, resId string) bool
IsResourceEditable mocks base method.
func (*MockStrategyCache) IsResourceLinkStrategy ¶
func (m *MockStrategyCache) IsResourceLinkStrategy(resType security.ResourceType, resId string) bool
IsResourceLinkStrategy mocks base method.
func (*MockStrategyCache) Update ¶
func (m *MockStrategyCache) Update() error
Update mocks base method.
type MockStrategyCacheMockRecorder ¶
type MockStrategyCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockStrategyCacheMockRecorder is the mock recorder for MockStrategyCache.
func (*MockStrategyCacheMockRecorder) AddListener ¶
func (mr *MockStrategyCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockStrategyCacheMockRecorder) Clear ¶
func (mr *MockStrategyCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockStrategyCacheMockRecorder) ForceSync ¶
func (mr *MockStrategyCacheMockRecorder) ForceSync() *gomock.Call
ForceSync indicates an expected call of ForceSync.
func (*MockStrategyCacheMockRecorder) GetStrategyDetailsByGroupID ¶
func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByGroupID(groupId interface{}) *gomock.Call
GetStrategyDetailsByGroupID indicates an expected call of GetStrategyDetailsByGroupID.
func (*MockStrategyCacheMockRecorder) GetStrategyDetailsByUID ¶
func (mr *MockStrategyCacheMockRecorder) GetStrategyDetailsByUID(uid interface{}) *gomock.Call
GetStrategyDetailsByUID indicates an expected call of GetStrategyDetailsByUID.
func (*MockStrategyCacheMockRecorder) Initialize ¶
func (mr *MockStrategyCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockStrategyCacheMockRecorder) IsResourceEditable ¶
func (mr *MockStrategyCacheMockRecorder) IsResourceEditable(principal, resType, resId interface{}) *gomock.Call
IsResourceEditable indicates an expected call of IsResourceEditable.
func (*MockStrategyCacheMockRecorder) IsResourceLinkStrategy ¶
func (mr *MockStrategyCacheMockRecorder) IsResourceLinkStrategy(resType, resId interface{}) *gomock.Call
IsResourceLinkStrategy indicates an expected call of IsResourceLinkStrategy.
func (*MockStrategyCacheMockRecorder) Name ¶
func (mr *MockStrategyCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockStrategyCacheMockRecorder) Update ¶
func (mr *MockStrategyCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.
type MockUserCache ¶
type MockUserCache struct {
// contains filtered or unexported fields
}
MockUserCache is a mock of UserCache interface.
func NewMockUserCache ¶
func NewMockUserCache(ctrl *gomock.Controller) *MockUserCache
NewMockUserCache creates a new mock instance.
func (*MockUserCache) AddListener ¶
func (m *MockUserCache) AddListener(listeners []api.Listener)
AddListener mocks base method.
func (*MockUserCache) EXPECT ¶
func (m *MockUserCache) EXPECT() *MockUserCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserCache) GetAdmin ¶
func (m *MockUserCache) GetAdmin() *model.User
GetAdmin mocks base method.
func (*MockUserCache) GetGroup ¶
func (m *MockUserCache) GetGroup(id string) *model.UserGroupDetail
GetGroup mocks base method.
func (*MockUserCache) GetUserByID ¶
func (m *MockUserCache) GetUserByID(id string) *model.User
GetUserByID mocks base method.
func (*MockUserCache) GetUserByName ¶
func (m *MockUserCache) GetUserByName(name, ownerName string) *model.User
GetUserByName mocks base method.
func (*MockUserCache) GetUserLinkGroupIds ¶
func (m *MockUserCache) GetUserLinkGroupIds(id string) []string
GetUserLinkGroupIds mocks base method.
func (*MockUserCache) Initialize ¶
func (m *MockUserCache) Initialize(c map[string]interface{}) error
Initialize mocks base method.
func (*MockUserCache) IsOwner ¶
func (m *MockUserCache) IsOwner(id string) bool
IsOwner mocks base method.
func (*MockUserCache) IsUserInGroup ¶
func (m *MockUserCache) IsUserInGroup(userId, groupId string) bool
IsUserInGroup mocks base method.
type MockUserCacheMockRecorder ¶
type MockUserCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockUserCacheMockRecorder is the mock recorder for MockUserCache.
func (*MockUserCacheMockRecorder) AddListener ¶
func (mr *MockUserCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call
AddListener indicates an expected call of AddListener.
func (*MockUserCacheMockRecorder) Clear ¶
func (mr *MockUserCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockUserCacheMockRecorder) GetAdmin ¶
func (mr *MockUserCacheMockRecorder) GetAdmin() *gomock.Call
GetAdmin indicates an expected call of GetAdmin.
func (*MockUserCacheMockRecorder) GetGroup ¶
func (mr *MockUserCacheMockRecorder) GetGroup(id interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup.
func (*MockUserCacheMockRecorder) GetUserByID ¶
func (mr *MockUserCacheMockRecorder) GetUserByID(id interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockUserCacheMockRecorder) GetUserByName ¶
func (mr *MockUserCacheMockRecorder) GetUserByName(name, ownerName interface{}) *gomock.Call
GetUserByName indicates an expected call of GetUserByName.
func (*MockUserCacheMockRecorder) GetUserLinkGroupIds ¶
func (mr *MockUserCacheMockRecorder) GetUserLinkGroupIds(id interface{}) *gomock.Call
GetUserLinkGroupIds indicates an expected call of GetUserLinkGroupIds.
func (*MockUserCacheMockRecorder) Initialize ¶
func (mr *MockUserCacheMockRecorder) Initialize(c interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockUserCacheMockRecorder) IsOwner ¶
func (mr *MockUserCacheMockRecorder) IsOwner(id interface{}) *gomock.Call
IsOwner indicates an expected call of IsOwner.
func (*MockUserCacheMockRecorder) IsUserInGroup ¶
func (mr *MockUserCacheMockRecorder) IsUserInGroup(userId, groupId interface{}) *gomock.Call
IsUserInGroup indicates an expected call of IsUserInGroup.
func (*MockUserCacheMockRecorder) Name ¶
func (mr *MockUserCacheMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockUserCacheMockRecorder) Update ¶
func (mr *MockUserCacheMockRecorder) Update() *gomock.Call
Update indicates an expected call of Update.