mock

package
v1.17.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 8 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) AddListener

func (m *MockCache) AddListener(listeners []api.Listener)

AddListener mocks base method.

func (*MockCache) Clear

func (m *MockCache) Clear() error

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

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

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

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

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

func (m *MockClientCache) AddListener(listeners []api.Listener)

AddListener mocks base method.

func (*MockClientCache) Clear

func (m *MockClientCache) Clear() error

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

func (mr *MockClientCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call

AddListener indicates an expected call of AddListener.

func (*MockClientCacheMockRecorder) Clear

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

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

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

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

func (mr *MockConfigFileCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call

AddListener indicates an expected call of AddListener.

func (*MockConfigFileCacheMockRecorder) Clear

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

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

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

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

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

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

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

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

Name indicates an expected call of Name.

func (*MockFaultDetectCacheMockRecorder) Update

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

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

func (mr *MockInstanceCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call

AddListener indicates an expected call of AddListener.

func (*MockInstanceCacheMockRecorder) Clear

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

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

func (m *MockL5Cache) Clear() error

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

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

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

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

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

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

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

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

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

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

func (m *MockServiceCache) Clear() error

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

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

Name indicates an expected call of Name.

func (*MockServiceCacheMockRecorder) Update

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

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

func (mr *MockStrategyCacheMockRecorder) AddListener(listeners interface{}) *gomock.Call

AddListener indicates an expected call of AddListener.

func (*MockStrategyCacheMockRecorder) Clear

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

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

func (m *MockUserCache) AddListener(listeners []api.Listener)

AddListener mocks base method.

func (*MockUserCache) Clear

func (m *MockUserCache) Clear() error

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

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