mock

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 9 Imported by: 0

README

mockgen -source=api/types.go -destination=mock/cache_mock.go -package=mock

Documentation

Overview

Package mock is a generated GoMock package.

Index

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) Clear

func (m *MockCache) Clear() error

Clear mocks base method.

func (*MockCache) Close added in v1.18.0

func (m *MockCache) Close() error

Close 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

func (m *MockCache) Initialize(c map[string]interface{}) error

Initialize mocks base method.

func (*MockCache) Name

func (m *MockCache) Name() string

Name mocks base method.

func (*MockCache) Update

func (m *MockCache) Update() error

Update 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) AuthStrategy added in v1.18.0

func (m *MockCacheManager) AuthStrategy() api.StrategyCache

AuthStrategy mocks base method.

func (*MockCacheManager) CL5 added in v1.18.0

func (m *MockCacheManager) CL5() api.L5Cache

CL5 mocks base method.

func (*MockCacheManager) CircuitBreaker added in v1.18.0

func (m *MockCacheManager) CircuitBreaker() api.CircuitBreakerCache

CircuitBreaker mocks base method.

func (*MockCacheManager) Client added in v1.18.0

func (m *MockCacheManager) Client() api.ClientCache

Client mocks base method.

func (*MockCacheManager) ConfigFile added in v1.18.0

func (m *MockCacheManager) ConfigFile() api.ConfigFileCache

ConfigFile mocks base method.

func (*MockCacheManager) ConfigGroup added in v1.18.0

func (m *MockCacheManager) ConfigGroup() api.ConfigGroupCache

ConfigGroup mocks base method.

func (*MockCacheManager) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacheManager) FaultDetector added in v1.18.0

func (m *MockCacheManager) FaultDetector() api.FaultDetectCache

FaultDetector mocks base method.

func (*MockCacheManager) GetCacher

func (m *MockCacheManager) GetCacher(cacheIndex api.CacheIndex) api.Cache

GetCacher mocks base method.

func (*MockCacheManager) Gray added in v1.18.0

func (m *MockCacheManager) Gray() api.GrayCache

Gray mocks base method.

func (*MockCacheManager) Instance added in v1.18.0

func (m *MockCacheManager) Instance() api.InstanceCache

Instance mocks base method.

func (*MockCacheManager) Namespace added in v1.18.0

func (m *MockCacheManager) Namespace() api.NamespaceCache

Namespace mocks base method.

func (*MockCacheManager) OpenResourceCache added in v1.18.0

func (m *MockCacheManager) OpenResourceCache(entries ...api.ConfigEntry) error

OpenResourceCache mocks base method.

func (*MockCacheManager) RateLimit added in v1.18.0

func (m *MockCacheManager) RateLimit() api.RateLimitCache

RateLimit mocks base method.

func (*MockCacheManager) RegisterCacher

func (m *MockCacheManager) RegisterCacher(cacheIndex api.CacheIndex, item api.Cache)

RegisterCacher mocks base method.

func (*MockCacheManager) RoutingConfig added in v1.18.0

func (m *MockCacheManager) RoutingConfig() api.RoutingConfigCache

RoutingConfig mocks base method.

func (*MockCacheManager) Service added in v1.18.0

func (m *MockCacheManager) Service() api.ServiceCache

Service mocks base method.

func (*MockCacheManager) ServiceContract added in v1.18.0

func (m *MockCacheManager) ServiceContract() api.ServiceContractCache

ServiceContract mocks base method.

func (*MockCacheManager) User added in v1.18.0

func (m *MockCacheManager) User() api.UserCache

User mocks base method.

type MockCacheManagerMockRecorder

type MockCacheManagerMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheManagerMockRecorder is the mock recorder for MockCacheManager.

func (*MockCacheManagerMockRecorder) AuthStrategy added in v1.18.0

func (mr *MockCacheManagerMockRecorder) AuthStrategy() *gomock.Call

AuthStrategy indicates an expected call of AuthStrategy.

func (*MockCacheManagerMockRecorder) CL5 added in v1.18.0

CL5 indicates an expected call of CL5.

func (*MockCacheManagerMockRecorder) CircuitBreaker added in v1.18.0

func (mr *MockCacheManagerMockRecorder) CircuitBreaker() *gomock.Call

CircuitBreaker indicates an expected call of CircuitBreaker.

func (*MockCacheManagerMockRecorder) Client added in v1.18.0

Client indicates an expected call of Client.

func (*MockCacheManagerMockRecorder) ConfigFile added in v1.18.0

func (mr *MockCacheManagerMockRecorder) ConfigFile() *gomock.Call

ConfigFile indicates an expected call of ConfigFile.

func (*MockCacheManagerMockRecorder) ConfigGroup added in v1.18.0

func (mr *MockCacheManagerMockRecorder) ConfigGroup() *gomock.Call

ConfigGroup indicates an expected call of ConfigGroup.

func (*MockCacheManagerMockRecorder) FaultDetector added in v1.18.0

func (mr *MockCacheManagerMockRecorder) FaultDetector() *gomock.Call

FaultDetector indicates an expected call of FaultDetector.

func (*MockCacheManagerMockRecorder) GetCacher

func (mr *MockCacheManagerMockRecorder) GetCacher(cacheIndex interface{}) *gomock.Call

GetCacher indicates an expected call of GetCacher.

func (*MockCacheManagerMockRecorder) Gray added in v1.18.0

Gray indicates an expected call of Gray.

func (*MockCacheManagerMockRecorder) Instance added in v1.18.0

func (mr *MockCacheManagerMockRecorder) Instance() *gomock.Call

Instance indicates an expected call of Instance.

func (*MockCacheManagerMockRecorder) Namespace added in v1.18.0

func (mr *MockCacheManagerMockRecorder) Namespace() *gomock.Call

Namespace indicates an expected call of Namespace.

func (*MockCacheManagerMockRecorder) OpenResourceCache added in v1.18.0

func (mr *MockCacheManagerMockRecorder) OpenResourceCache(entries ...interface{}) *gomock.Call

OpenResourceCache indicates an expected call of OpenResourceCache.

func (*MockCacheManagerMockRecorder) RateLimit added in v1.18.0

func (mr *MockCacheManagerMockRecorder) RateLimit() *gomock.Call

RateLimit indicates an expected call of RateLimit.

func (*MockCacheManagerMockRecorder) RegisterCacher

func (mr *MockCacheManagerMockRecorder) RegisterCacher(cacheIndex, item interface{}) *gomock.Call

RegisterCacher indicates an expected call of RegisterCacher.

func (*MockCacheManagerMockRecorder) RoutingConfig added in v1.18.0

func (mr *MockCacheManagerMockRecorder) RoutingConfig() *gomock.Call

RoutingConfig indicates an expected call of RoutingConfig.

func (*MockCacheManagerMockRecorder) Service added in v1.18.0

func (mr *MockCacheManagerMockRecorder) Service() *gomock.Call

Service indicates an expected call of Service.

func (*MockCacheManagerMockRecorder) ServiceContract added in v1.18.0

func (mr *MockCacheManagerMockRecorder) ServiceContract() *gomock.Call

ServiceContract indicates an expected call of ServiceContract.

func (*MockCacheManagerMockRecorder) User added in v1.18.0

User indicates an expected call of User.

type MockCacheMockRecorder

type MockCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Clear

func (mr *MockCacheMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockCacheMockRecorder) Close added in v1.18.0

func (mr *MockCacheMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

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) Clear

func (m *MockCircuitBreakerCache) Clear() error

Clear mocks base method.

func (*MockCircuitBreakerCache) Close added in v1.18.0

func (m *MockCircuitBreakerCache) Close() error

Close mocks base method.

func (*MockCircuitBreakerCache) EXPECT

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) Clear

Clear indicates an expected call of Clear.

func (*MockCircuitBreakerCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

Name indicates an expected call of Name.

func (*MockCircuitBreakerCacheMockRecorder) Update

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) Clear

func (m *MockClientCache) Clear() error

Clear mocks base method.

func (*MockClientCache) Close added in v1.18.0

func (m *MockClientCache) Close() error

Close mocks base method.

func (*MockClientCache) EXPECT

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.

func (*MockClientCache) Name

func (m *MockClientCache) Name() string

Name mocks base method.

func (*MockClientCache) Update

func (m *MockClientCache) Update() error

Update mocks base method.

type MockClientCacheMockRecorder

type MockClientCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientCacheMockRecorder is the mock recorder for MockClientCache.

func (*MockClientCacheMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockClientCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

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) Clear

func (m *MockConfigFileCache) Clear() error

Clear mocks base method.

func (*MockConfigFileCache) Close added in v1.18.0

func (m *MockConfigFileCache) Close() error

Close mocks base method.

func (*MockConfigFileCache) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfigFileCache) GetActiveGrayRelease added in v1.18.0

func (m *MockConfigFileCache) GetActiveGrayRelease(namespace, group, fileName string) *model.ConfigFileRelease

GetActiveGrayRelease mocks base method.

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

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

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) Clear

Clear indicates an expected call of Clear.

func (*MockConfigFileCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

func (*MockConfigFileCacheMockRecorder) GetActiveGrayRelease added in v1.18.0

func (mr *MockConfigFileCacheMockRecorder) GetActiveGrayRelease(namespace, group, fileName interface{}) *gomock.Call

GetActiveGrayRelease indicates an expected call of GetActiveGrayRelease.

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

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

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) Clear

func (m *MockConfigGroupCache) Clear() error

Clear mocks base method.

func (*MockConfigGroupCache) Close added in v1.18.0

func (m *MockConfigGroupCache) Close() error

Close mocks base method.

func (*MockConfigGroupCache) EXPECT

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) ListGroups added in v1.18.0

func (m *MockConfigGroupCache) ListGroups(namespace string) ([]*model.ConfigFileGroup, string)

ListGroups mocks base method.

func (*MockConfigGroupCache) Name

func (m *MockConfigGroupCache) Name() string

Name mocks base method.

func (*MockConfigGroupCache) Query

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) Clear

Clear indicates an expected call of Clear.

func (*MockConfigGroupCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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) ListGroups added in v1.18.0

func (mr *MockConfigGroupCacheMockRecorder) ListGroups(namespace interface{}) *gomock.Call

ListGroups indicates an expected call of ListGroups.

func (*MockConfigGroupCacheMockRecorder) Name

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

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) Clear

func (m *MockFaultDetectCache) Clear() error

Clear mocks base method.

func (*MockFaultDetectCache) Close added in v1.18.0

func (m *MockFaultDetectCache) Close() error

Close mocks base method.

func (*MockFaultDetectCache) EXPECT

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) Clear

Clear indicates an expected call of Clear.

func (*MockFaultDetectCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

Name indicates an expected call of Name.

func (*MockFaultDetectCacheMockRecorder) Update

Update indicates an expected call of Update.

type MockGrayCache added in v1.18.0

type MockGrayCache struct {
	// contains filtered or unexported fields
}

MockGrayCache is a mock of GrayCache interface.

func NewMockGrayCache added in v1.18.0

func NewMockGrayCache(ctrl *gomock.Controller) *MockGrayCache

NewMockGrayCache creates a new mock instance.

func (*MockGrayCache) Clear added in v1.18.0

func (m *MockGrayCache) Clear() error

Clear mocks base method.

func (*MockGrayCache) Close added in v1.18.0

func (m *MockGrayCache) Close() error

Close mocks base method.

func (*MockGrayCache) EXPECT added in v1.18.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGrayCache) GetGrayRule added in v1.18.0

func (m *MockGrayCache) GetGrayRule(name string) []*model0.ClientLabel

GetGrayRule mocks base method.

func (*MockGrayCache) HitGrayRule added in v1.18.0

func (m *MockGrayCache) HitGrayRule(name string, labels map[string]string) bool

HitGrayRule mocks base method.

func (*MockGrayCache) Initialize added in v1.18.0

func (m *MockGrayCache) Initialize(c map[string]interface{}) error

Initialize mocks base method.

func (*MockGrayCache) Name added in v1.18.0

func (m *MockGrayCache) Name() string

Name mocks base method.

func (*MockGrayCache) Update added in v1.18.0

func (m *MockGrayCache) Update() error

Update mocks base method.

type MockGrayCacheMockRecorder added in v1.18.0

type MockGrayCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockGrayCacheMockRecorder is the mock recorder for MockGrayCache.

func (*MockGrayCacheMockRecorder) Clear added in v1.18.0

func (mr *MockGrayCacheMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockGrayCacheMockRecorder) Close added in v1.18.0

func (mr *MockGrayCacheMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockGrayCacheMockRecorder) GetGrayRule added in v1.18.0

func (mr *MockGrayCacheMockRecorder) GetGrayRule(name interface{}) *gomock.Call

GetGrayRule indicates an expected call of GetGrayRule.

func (*MockGrayCacheMockRecorder) HitGrayRule added in v1.18.0

func (mr *MockGrayCacheMockRecorder) HitGrayRule(name, labels interface{}) *gomock.Call

HitGrayRule indicates an expected call of HitGrayRule.

func (*MockGrayCacheMockRecorder) Initialize added in v1.18.0

func (mr *MockGrayCacheMockRecorder) Initialize(c interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockGrayCacheMockRecorder) Name added in v1.18.0

Name indicates an expected call of Name.

func (*MockGrayCacheMockRecorder) Update added in v1.18.0

func (mr *MockGrayCacheMockRecorder) 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) Clear

func (m *MockInstanceCache) Clear() error

Clear mocks base method.

func (*MockInstanceCache) Close added in v1.18.0

func (m *MockInstanceCache) Close() error

Close mocks base method.

func (*MockInstanceCache) DiscoverServiceInstances added in v1.18.0

func (m *MockInstanceCache) DiscoverServiceInstances(serviceID string, onlyHealthy bool) []*model.Instance

DiscoverServiceInstances mocks base method.

func (*MockInstanceCache) EXPECT

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) GetInstances added in v1.18.0

func (m *MockInstanceCache) GetInstances(serviceID string) *model.ServiceInstances

GetInstances 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) Name

func (m *MockInstanceCache) Name() string

Name 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) Clear

Clear indicates an expected call of Clear.

func (*MockInstanceCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

func (*MockInstanceCacheMockRecorder) DiscoverServiceInstances added in v1.18.0

func (mr *MockInstanceCacheMockRecorder) DiscoverServiceInstances(serviceID, onlyHealthy interface{}) *gomock.Call

DiscoverServiceInstances indicates an expected call of DiscoverServiceInstances.

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) GetInstances added in v1.18.0

func (mr *MockInstanceCacheMockRecorder) GetInstances(serviceID interface{}) *gomock.Call

GetInstances indicates an expected call of GetInstances.

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

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

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) CheckRouteExisted

func (m *MockL5Cache) CheckRouteExisted(ip, modID, cmdID uint32) bool

CheckRouteExisted mocks base method.

func (*MockL5Cache) Clear

func (m *MockL5Cache) Clear() error

Clear mocks base method.

func (*MockL5Cache) Close added in v1.18.0

func (m *MockL5Cache) Close() error

Close 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.

func (*MockL5Cache) Name

func (m *MockL5Cache) Name() string

Name mocks base method.

func (*MockL5Cache) Update

func (m *MockL5Cache) Update() error

Update mocks base method.

type MockL5CacheMockRecorder

type MockL5CacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockL5CacheMockRecorder is the mock recorder for MockL5Cache.

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) Close added in v1.18.0

func (mr *MockL5CacheMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

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) Clear

func (m *MockNamespaceCache) Clear() error

Clear mocks base method.

func (*MockNamespaceCache) Close added in v1.18.0

func (m *MockNamespaceCache) Close() error

Close mocks base method.

func (*MockNamespaceCache) EXPECT

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) GetVisibleNamespaces added in v1.18.0

func (m *MockNamespaceCache) GetVisibleNamespaces(namespace string) []*model.Namespace

GetVisibleNamespaces 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) Clear

Clear indicates an expected call of Clear.

func (*MockNamespaceCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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) GetVisibleNamespaces added in v1.18.0

func (mr *MockNamespaceCacheMockRecorder) GetVisibleNamespaces(namespace interface{}) *gomock.Call

GetVisibleNamespaces indicates an expected call of GetVisibleNamespaces.

func (*MockNamespaceCacheMockRecorder) Initialize

func (mr *MockNamespaceCacheMockRecorder) Initialize(c interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockNamespaceCacheMockRecorder) Name

Name indicates an expected call of Name.

func (*MockNamespaceCacheMockRecorder) Update

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) Clear

func (m *MockRateLimitCache) Clear() error

Clear mocks base method.

func (*MockRateLimitCache) Close added in v1.18.0

func (m *MockRateLimitCache) Close() error

Close mocks base method.

func (*MockRateLimitCache) EXPECT

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) Clear

Clear indicates an expected call of Clear.

func (*MockRateLimitCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

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

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) Clear

func (m *MockRoutingConfigCache) Clear() error

Clear mocks base method.

func (*MockRoutingConfigCache) Close added in v1.18.0

func (m *MockRoutingConfigCache) Close() error

Close mocks base method.

func (*MockRoutingConfigCache) EXPECT

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) Clear

Clear indicates an expected call of Clear.

func (*MockRoutingConfigCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

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

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) CleanNamespace

func (m *MockServiceCache) CleanNamespace(namespace string)

CleanNamespace mocks base method.

func (*MockServiceCache) Clear

func (m *MockServiceCache) Clear() error

Clear mocks base method.

func (*MockServiceCache) Close added in v1.18.0

func (m *MockServiceCache) Close() error

Close mocks base method.

func (*MockServiceCache) EXPECT

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) GetVisibleServicesInOtherNamespace added in v1.18.0

func (m *MockServiceCache) GetVisibleServicesInOtherNamespace(name, namespace string) []*model.Service

GetVisibleServicesInOtherNamespace 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) Name

func (m *MockServiceCache) Name() string

Name 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) CleanNamespace

func (mr *MockServiceCacheMockRecorder) CleanNamespace(namespace interface{}) *gomock.Call

CleanNamespace indicates an expected call of CleanNamespace.

func (*MockServiceCacheMockRecorder) Clear

Clear indicates an expected call of Clear.

func (*MockServiceCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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) GetVisibleServicesInOtherNamespace added in v1.18.0

func (mr *MockServiceCacheMockRecorder) GetVisibleServicesInOtherNamespace(name, namespace interface{}) *gomock.Call

GetVisibleServicesInOtherNamespace indicates an expected call of GetVisibleServicesInOtherNamespace.

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

Name indicates an expected call of Name.

func (*MockServiceCacheMockRecorder) Update

Update indicates an expected call of Update.

type MockServiceContractCache added in v1.18.0

type MockServiceContractCache struct {
	// contains filtered or unexported fields
}

MockServiceContractCache is a mock of ServiceContractCache interface.

func NewMockServiceContractCache added in v1.18.0

func NewMockServiceContractCache(ctrl *gomock.Controller) *MockServiceContractCache

NewMockServiceContractCache creates a new mock instance.

func (*MockServiceContractCache) Clear added in v1.18.0

func (m *MockServiceContractCache) Clear() error

Clear mocks base method.

func (*MockServiceContractCache) Close added in v1.18.0

func (m *MockServiceContractCache) Close() error

Close mocks base method.

func (*MockServiceContractCache) EXPECT added in v1.18.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockServiceContractCache) Get added in v1.18.0

Get mocks base method.

func (*MockServiceContractCache) Initialize added in v1.18.0

func (m *MockServiceContractCache) Initialize(c map[string]interface{}) error

Initialize mocks base method.

func (*MockServiceContractCache) ListVersions added in v1.18.0

func (m *MockServiceContractCache) ListVersions(service, namespace string) []*model.EnrichServiceContract

ListVersions mocks base method.

func (*MockServiceContractCache) Name added in v1.18.0

func (m *MockServiceContractCache) Name() string

Name mocks base method.

func (*MockServiceContractCache) Query added in v1.18.0

func (m *MockServiceContractCache) Query(filter map[string]string, offset, limit uint32) ([]*model.EnrichServiceContract, uint32, error)

Query mocks base method.

func (*MockServiceContractCache) Update added in v1.18.0

func (m *MockServiceContractCache) Update() error

Update mocks base method.

type MockServiceContractCacheMockRecorder added in v1.18.0

type MockServiceContractCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceContractCacheMockRecorder is the mock recorder for MockServiceContractCache.

func (*MockServiceContractCacheMockRecorder) Clear added in v1.18.0

Clear indicates an expected call of Clear.

func (*MockServiceContractCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

func (*MockServiceContractCacheMockRecorder) Get added in v1.18.0

func (mr *MockServiceContractCacheMockRecorder) Get(req interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceContractCacheMockRecorder) Initialize added in v1.18.0

func (mr *MockServiceContractCacheMockRecorder) Initialize(c interface{}) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockServiceContractCacheMockRecorder) ListVersions added in v1.18.0

func (mr *MockServiceContractCacheMockRecorder) ListVersions(service, namespace interface{}) *gomock.Call

ListVersions indicates an expected call of ListVersions.

func (*MockServiceContractCacheMockRecorder) Name added in v1.18.0

Name indicates an expected call of Name.

func (*MockServiceContractCacheMockRecorder) Query added in v1.18.0

func (mr *MockServiceContractCacheMockRecorder) Query(filter, offset, limit interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockServiceContractCacheMockRecorder) Update added in v1.18.0

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

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) Clear

func (m *MockStrategyCache) Clear() error

Clear mocks base method.

func (*MockStrategyCache) Close added in v1.18.0

func (m *MockStrategyCache) Close() error

Close mocks base method.

func (*MockStrategyCache) EXPECT

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) Name

func (m *MockStrategyCache) Name() string

Name 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) Clear

Clear indicates an expected call of Clear.

func (*MockStrategyCacheMockRecorder) Close added in v1.18.0

Close indicates an expected call of Close.

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

Name indicates an expected call of Name.

func (*MockStrategyCacheMockRecorder) Update

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) Clear

func (m *MockUserCache) Clear() error

Clear mocks base method.

func (*MockUserCache) Close added in v1.18.0

func (m *MockUserCache) Close() error

Close mocks base method.

func (*MockUserCache) EXPECT

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.

func (*MockUserCache) Name

func (m *MockUserCache) Name() string

Name mocks base method.

func (*MockUserCache) Update

func (m *MockUserCache) Update() error

Update mocks base method.

type MockUserCacheMockRecorder

type MockUserCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserCacheMockRecorder is the mock recorder for MockUserCache.

func (*MockUserCacheMockRecorder) Clear

func (mr *MockUserCacheMockRecorder) Clear() *gomock.Call

Clear indicates an expected call of Clear.

func (*MockUserCacheMockRecorder) Close added in v1.18.0

func (mr *MockUserCacheMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

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

Name indicates an expected call of Name.

func (*MockUserCacheMockRecorder) Update

func (mr *MockUserCacheMockRecorder) Update() *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL