mock

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

README

对Store的API的mock

mock文件生成方法

./store目录执行

mockgen -source=api.go -aux_files github.com/polarismesh/polaris/store=config_file_api.go,github.com/polarismesh/polaris/store=discover_api.go,github.com/polarismesh/polaris/store=auth_api.go,github.com/polarismesh/polaris/store=maintain_api.go -destination=mock/api_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 MockNamespaceStore

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

MockNamespaceStore is a mock of NamespaceStore interface.

func NewMockNamespaceStore

func NewMockNamespaceStore(ctrl *gomock.Controller) *MockNamespaceStore

NewMockNamespaceStore creates a new mock instance.

func (*MockNamespaceStore) AddNamespace

func (m *MockNamespaceStore) AddNamespace(namespace *model.Namespace) error

AddNamespace mocks base method.

func (*MockNamespaceStore) EXPECT

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

func (*MockNamespaceStore) GetMoreNamespaces

func (m *MockNamespaceStore) GetMoreNamespaces(mtime time.Time) ([]*model.Namespace, error)

GetMoreNamespaces mocks base method.

func (*MockNamespaceStore) GetNamespace

func (m *MockNamespaceStore) GetNamespace(name string) (*model.Namespace, error)

GetNamespace mocks base method.

func (*MockNamespaceStore) GetNamespaces

func (m *MockNamespaceStore) GetNamespaces(filter map[string][]string, offset, limit int) ([]*model.Namespace, uint32, error)

GetNamespaces mocks base method.

func (*MockNamespaceStore) ListNamespaces

func (m *MockNamespaceStore) ListNamespaces(owner string) ([]*model.Namespace, error)

ListNamespaces mocks base method.

func (*MockNamespaceStore) UpdateNamespace

func (m *MockNamespaceStore) UpdateNamespace(namespace *model.Namespace) error

UpdateNamespace mocks base method.

func (*MockNamespaceStore) UpdateNamespaceToken

func (m *MockNamespaceStore) UpdateNamespaceToken(name, token string) error

UpdateNamespaceToken mocks base method.

type MockNamespaceStoreMockRecorder

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

MockNamespaceStoreMockRecorder is the mock recorder for MockNamespaceStore.

func (*MockNamespaceStoreMockRecorder) AddNamespace

func (mr *MockNamespaceStoreMockRecorder) AddNamespace(namespace interface{}) *gomock.Call

AddNamespace indicates an expected call of AddNamespace.

func (*MockNamespaceStoreMockRecorder) GetMoreNamespaces

func (mr *MockNamespaceStoreMockRecorder) GetMoreNamespaces(mtime interface{}) *gomock.Call

GetMoreNamespaces indicates an expected call of GetMoreNamespaces.

func (*MockNamespaceStoreMockRecorder) GetNamespace

func (mr *MockNamespaceStoreMockRecorder) GetNamespace(name interface{}) *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockNamespaceStoreMockRecorder) GetNamespaces

func (mr *MockNamespaceStoreMockRecorder) GetNamespaces(filter, offset, limit interface{}) *gomock.Call

GetNamespaces indicates an expected call of GetNamespaces.

func (*MockNamespaceStoreMockRecorder) ListNamespaces

func (mr *MockNamespaceStoreMockRecorder) ListNamespaces(owner interface{}) *gomock.Call

ListNamespaces indicates an expected call of ListNamespaces.

func (*MockNamespaceStoreMockRecorder) UpdateNamespace

func (mr *MockNamespaceStoreMockRecorder) UpdateNamespace(namespace interface{}) *gomock.Call

UpdateNamespace indicates an expected call of UpdateNamespace.

func (*MockNamespaceStoreMockRecorder) UpdateNamespaceToken

func (mr *MockNamespaceStoreMockRecorder) UpdateNamespaceToken(name, token interface{}) *gomock.Call

UpdateNamespaceToken indicates an expected call of UpdateNamespaceToken.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AddGroup

func (m *MockStore) AddGroup(group *model.UserGroupDetail) error

AddGroup mocks base method.

func (*MockStore) AddInstance

func (m *MockStore) AddInstance(instance *model.Instance) error

AddInstance mocks base method.

func (*MockStore) AddNamespace

func (m *MockStore) AddNamespace(namespace *model.Namespace) error

AddNamespace mocks base method.

func (*MockStore) AddService

func (m *MockStore) AddService(service *model.Service) error

AddService mocks base method.

func (*MockStore) AddStrategy

func (m *MockStore) AddStrategy(strategy *model.StrategyDetail) error

AddStrategy mocks base method.

func (*MockStore) AddUser

func (m *MockStore) AddUser(user *model.User) error

AddUser mocks base method.

func (*MockStore) BatchAddClients

func (m *MockStore) BatchAddClients(clients []*model.Client) error

BatchAddClients mocks base method.

func (*MockStore) BatchAddInstances

func (m *MockStore) BatchAddInstances(instances []*model.Instance) error

BatchAddInstances mocks base method.

func (*MockStore) BatchCleanDeletedInstances

func (m *MockStore) BatchCleanDeletedInstances(batchSize uint32) (uint32, error)

BatchCleanDeletedInstances mocks base method.

func (*MockStore) BatchDeleteClients

func (m *MockStore) BatchDeleteClients(ids []string) error

BatchDeleteClients mocks base method.

func (*MockStore) BatchDeleteInstances

func (m *MockStore) BatchDeleteInstances(ids []interface{}) error

BatchDeleteInstances mocks base method.

func (*MockStore) BatchGetInstanceIsolate

func (m *MockStore) BatchGetInstanceIsolate(ids map[string]bool) (map[string]bool, error)

BatchGetInstanceIsolate mocks base method.

func (*MockStore) BatchSetInstanceHealthStatus

func (m *MockStore) BatchSetInstanceHealthStatus(ids []interface{}, healthy int, revision string) error

BatchSetInstanceHealthStatus mocks base method.

func (*MockStore) BatchSetInstanceIsolate

func (m *MockStore) BatchSetInstanceIsolate(ids []interface{}, isolate int, revision string) error

BatchSetInstanceIsolate mocks base method.

func (*MockStore) CleanInstance

func (m *MockStore) CleanInstance(instanceID string) error

CleanInstance mocks base method.

func (*MockStore) CountByConfigFileGroup

func (m *MockStore) CountByConfigFileGroup(namespace, group string) (uint64, error)

CountByConfigFileGroup mocks base method.

func (*MockStore) CreateCircuitBreaker

func (m *MockStore) CreateCircuitBreaker(circuitBreaker *model.CircuitBreaker) error

CreateCircuitBreaker mocks base method.

func (*MockStore) CreateConfigFile

func (m *MockStore) CreateConfigFile(tx store.Tx, file *model.ConfigFile) (*model.ConfigFile, error)

CreateConfigFile mocks base method.

func (*MockStore) CreateConfigFileGroup

func (m *MockStore) CreateConfigFileGroup(fileGroup *model.ConfigFileGroup) (*model.ConfigFileGroup, error)

CreateConfigFileGroup mocks base method.

func (*MockStore) CreateConfigFileRelease

func (m *MockStore) CreateConfigFileRelease(tx store.Tx, fileRelease *model.ConfigFileRelease) (*model.ConfigFileRelease, error)

CreateConfigFileRelease mocks base method.

func (*MockStore) CreateConfigFileReleaseHistory

func (m *MockStore) CreateConfigFileReleaseHistory(tx store.Tx, fileReleaseHistory *model.ConfigFileReleaseHistory) error

CreateConfigFileReleaseHistory mocks base method.

func (*MockStore) CreateConfigFileTag

func (m *MockStore) CreateConfigFileTag(tx store.Tx, fileTag *model.ConfigFileTag) error

CreateConfigFileTag mocks base method.

func (*MockStore) CreateConfigFileTemplate

func (m *MockStore) CreateConfigFileTemplate(template *model.ConfigFileTemplate) (*model.ConfigFileTemplate, error)

CreateConfigFileTemplate mocks base method.

func (*MockStore) CreateRateLimit

func (m *MockStore) CreateRateLimit(limiting *model.RateLimit) error

CreateRateLimit mocks base method.

func (*MockStore) CreateRoutingConfig

func (m *MockStore) CreateRoutingConfig(conf *model.RoutingConfig) error

CreateRoutingConfig mocks base method.

func (*MockStore) CreateRoutingConfigV2

func (m *MockStore) CreateRoutingConfigV2(conf *v2.RoutingConfig) error

CreateRoutingConfigV2 mocks base method.

func (*MockStore) CreateRoutingConfigV2Tx

func (m *MockStore) CreateRoutingConfigV2Tx(tx store.Tx, conf *v2.RoutingConfig) error

CreateRoutingConfigV2Tx mocks base method.

func (*MockStore) CreateTransaction

func (m *MockStore) CreateTransaction() (store.Transaction, error)

CreateTransaction mocks base method.

func (*MockStore) DeleteConfigFile

func (m *MockStore) DeleteConfigFile(tx store.Tx, namespace, group, name string) error

DeleteConfigFile mocks base method.

func (*MockStore) DeleteConfigFileGroup

func (m *MockStore) DeleteConfigFileGroup(namespace, name string) error

DeleteConfigFileGroup mocks base method.

func (*MockStore) DeleteConfigFileRelease

func (m *MockStore) DeleteConfigFileRelease(tx store.Tx, namespace, group, fileName, deleteBy string) error

DeleteConfigFileRelease mocks base method.

func (*MockStore) DeleteConfigFileTag

func (m *MockStore) DeleteConfigFileTag(tx store.Tx, namespace, group, fileName, key, value string) error

DeleteConfigFileTag mocks base method.

func (*MockStore) DeleteGroup

func (m *MockStore) DeleteGroup(group *model.UserGroupDetail) error

DeleteGroup mocks base method.

func (*MockStore) DeleteInstance

func (m *MockStore) DeleteInstance(instanceID string) error

DeleteInstance mocks base method.

func (*MockStore) DeleteMasterCircuitBreaker

func (m *MockStore) DeleteMasterCircuitBreaker(id string) error

DeleteMasterCircuitBreaker mocks base method.

func (*MockStore) DeleteRateLimit

func (m *MockStore) DeleteRateLimit(limiting *model.RateLimit) error

DeleteRateLimit mocks base method.

func (*MockStore) DeleteRoutingConfig

func (m *MockStore) DeleteRoutingConfig(serviceID string) error

DeleteRoutingConfig mocks base method.

func (*MockStore) DeleteRoutingConfigTx

func (m *MockStore) DeleteRoutingConfigTx(tx store.Tx, serviceID string) error

DeleteRoutingConfigTx mocks base method.

func (*MockStore) DeleteRoutingConfigV2

func (m *MockStore) DeleteRoutingConfigV2(serviceID string) error

DeleteRoutingConfigV2 mocks base method.

func (*MockStore) DeleteService

func (m *MockStore) DeleteService(id, serviceName, namespaceName string) error

DeleteService mocks base method.

func (*MockStore) DeleteServiceAlias

func (m *MockStore) DeleteServiceAlias(name, namespace string) error

DeleteServiceAlias mocks base method.

func (*MockStore) DeleteStrategy

func (m *MockStore) DeleteStrategy(id string) error

DeleteStrategy mocks base method.

func (*MockStore) DeleteTagByConfigFile

func (m *MockStore) DeleteTagByConfigFile(tx store.Tx, namespace, group, fileName string) error

DeleteTagByConfigFile mocks base method.

func (*MockStore) DeleteTagCircuitBreaker

func (m *MockStore) DeleteTagCircuitBreaker(id, version string) error

DeleteTagCircuitBreaker mocks base method.

func (*MockStore) DeleteUser

func (m *MockStore) DeleteUser(user *model.User) error

DeleteUser mocks base method.

func (*MockStore) Destroy

func (m *MockStore) Destroy() error

Destroy mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) EnableRateLimit

func (m *MockStore) EnableRateLimit(limit *model.RateLimit) error

EnableRateLimit mocks base method.

func (*MockStore) EnableRouting

func (m *MockStore) EnableRouting(conf *v2.RoutingConfig) error

EnableRouting mocks base method.

func (*MockStore) FindConfigFileGroups

func (m *MockStore) FindConfigFileGroups(namespace string, names []string) ([]*model.ConfigFileGroup, error)

FindConfigFileGroups mocks base method.

func (*MockStore) FindConfigFileReleaseByModifyTimeAfter

func (m *MockStore) FindConfigFileReleaseByModifyTimeAfter(modifyTime time.Time) ([]*model.ConfigFileRelease, error)

FindConfigFileReleaseByModifyTimeAfter mocks base method.

func (*MockStore) GenNextL5Sid

func (m *MockStore) GenNextL5Sid(layoutID uint32) (string, error)

GenNextL5Sid mocks base method.

func (*MockStore) GetCircuitBreaker

func (m *MockStore) GetCircuitBreaker(id, version string) (*model.CircuitBreaker, error)

GetCircuitBreaker mocks base method.

func (*MockStore) GetCircuitBreakerForCache

func (m *MockStore) GetCircuitBreakerForCache(mtime time.Time, firstUpdate bool) ([]*model.ServiceWithCircuitBreaker, error)

GetCircuitBreakerForCache mocks base method.

func (*MockStore) GetCircuitBreakerMasterRelation

func (m *MockStore) GetCircuitBreakerMasterRelation(ruleID string) ([]*model.CircuitBreakerRelation, error)

GetCircuitBreakerMasterRelation mocks base method.

func (*MockStore) GetCircuitBreakerRelation

func (m *MockStore) GetCircuitBreakerRelation(ruleID, ruleVersion string) ([]*model.CircuitBreakerRelation, error)

GetCircuitBreakerRelation mocks base method.

func (*MockStore) GetCircuitBreakerVersions

func (m *MockStore) GetCircuitBreakerVersions(id string) ([]string, error)

GetCircuitBreakerVersions mocks base method.

func (*MockStore) GetCircuitBreakersByService

func (m *MockStore) GetCircuitBreakersByService(name, namespace string) (*model.CircuitBreaker, error)

GetCircuitBreakersByService mocks base method.

func (*MockStore) GetConfigFile

func (m *MockStore) GetConfigFile(tx store.Tx, namespace, group, name string) (*model.ConfigFile, error)

GetConfigFile mocks base method.

func (*MockStore) GetConfigFileGroup

func (m *MockStore) GetConfigFileGroup(namespace, name string) (*model.ConfigFileGroup, error)

GetConfigFileGroup mocks base method.

func (*MockStore) GetConfigFileGroupById

func (m *MockStore) GetConfigFileGroupById(id uint64) (*model.ConfigFileGroup, error)

GetConfigFileGroupById mocks base method.

func (*MockStore) GetConfigFileRelease

func (m *MockStore) GetConfigFileRelease(tx store.Tx, namespace, group, fileName string) (*model.ConfigFileRelease, error)

GetConfigFileRelease mocks base method.

func (*MockStore) GetConfigFileReleaseWithAllFlag

func (m *MockStore) GetConfigFileReleaseWithAllFlag(tx store.Tx, namespace, group, fileName string) (*model.ConfigFileRelease, error)

GetConfigFileReleaseWithAllFlag mocks base method.

func (*MockStore) GetConfigFileTemplate

func (m *MockStore) GetConfigFileTemplate(name string) (*model.ConfigFileTemplate, error)

GetConfigFileTemplate mocks base method.

func (*MockStore) GetDefaultStrategyDetailByPrincipal

func (m *MockStore) GetDefaultStrategyDetailByPrincipal(principalId string, principalType model.PrincipalType) (*model.StrategyDetail, error)

GetDefaultStrategyDetailByPrincipal mocks base method.

func (*MockStore) GetExpandInstances

func (m *MockStore) GetExpandInstances(filter, metaFilter map[string]string, offset, limit uint32) (uint32, []*model.Instance, error)

GetExpandInstances mocks base method.

func (*MockStore) GetExtendRateLimits

func (m *MockStore) GetExtendRateLimits(query map[string]string, offset, limit uint32) (uint32, []*model.ExtendRateLimit, error)

GetExtendRateLimits mocks base method.

func (*MockStore) GetGroup

func (m *MockStore) GetGroup(id string) (*model.UserGroupDetail, error)

GetGroup mocks base method.

func (*MockStore) GetGroupByName

func (m *MockStore) GetGroupByName(name, owner string) (*model.UserGroup, error)

GetGroupByName mocks base method.

func (*MockStore) GetGroups

func (m *MockStore) GetGroups(filters map[string]string, offset, limit uint32) (uint32, []*model.UserGroup, error)

GetGroups mocks base method.

func (*MockStore) GetGroupsForCache

func (m *MockStore) GetGroupsForCache(mtime time.Time, firstUpdate bool) ([]*model.UserGroupDetail, error)

GetGroupsForCache mocks base method.

func (*MockStore) GetInstance

func (m *MockStore) GetInstance(instanceID string) (*model.Instance, error)

GetInstance mocks base method.

func (*MockStore) GetInstancesBrief

func (m *MockStore) GetInstancesBrief(ids map[string]bool) (map[string]*model.Instance, error)

GetInstancesBrief mocks base method.

func (*MockStore) GetInstancesCount

func (m *MockStore) GetInstancesCount() (uint32, error)

GetInstancesCount mocks base method.

func (*MockStore) GetInstancesMainByService

func (m *MockStore) GetInstancesMainByService(serviceID, host string) ([]*model.Instance, error)

GetInstancesMainByService mocks base method.

func (*MockStore) GetL5Extend

func (m *MockStore) GetL5Extend(serviceID string) (map[string]interface{}, error)

GetL5Extend mocks base method.

func (*MockStore) GetLatestConfigFileReleaseHistory

func (m *MockStore) GetLatestConfigFileReleaseHistory(namespace, group, fileName string) (*model.ConfigFileReleaseHistory, error)

GetLatestConfigFileReleaseHistory mocks base method.

func (*MockStore) GetMoreClients

func (m *MockStore) GetMoreClients(mtime time.Time, firstUpdate bool) (map[string]*model.Client, error)

GetMoreClients mocks base method.

func (*MockStore) GetMoreInstances

func (m *MockStore) GetMoreInstances(mtime time.Time, firstUpdate, needMeta bool, serviceID []string) (map[string]*model.Instance, error)

GetMoreInstances mocks base method.

func (*MockStore) GetMoreL5Extend

func (m *MockStore) GetMoreL5Extend(mtime time.Time) (map[string]map[string]interface{}, error)

GetMoreL5Extend mocks base method.

func (*MockStore) GetMoreL5IPConfigs

func (m *MockStore) GetMoreL5IPConfigs(flow uint32) ([]*model.IPConfig, error)

GetMoreL5IPConfigs mocks base method.

func (*MockStore) GetMoreL5Policies

func (m *MockStore) GetMoreL5Policies(flow uint32) ([]*model.Policy, error)

GetMoreL5Policies mocks base method.

func (*MockStore) GetMoreL5Routes

func (m *MockStore) GetMoreL5Routes(flow uint32) ([]*model.Route, error)

GetMoreL5Routes mocks base method.

func (*MockStore) GetMoreL5Sections

func (m *MockStore) GetMoreL5Sections(flow uint32) ([]*model.Section, error)

GetMoreL5Sections mocks base method.

func (*MockStore) GetMoreNamespaces

func (m *MockStore) GetMoreNamespaces(mtime time.Time) ([]*model.Namespace, error)

GetMoreNamespaces mocks base method.

func (*MockStore) GetMoreServices

func (m *MockStore) GetMoreServices(mtime time.Time, firstUpdate, disableBusiness, needMeta bool) (map[string]*model.Service, error)

GetMoreServices mocks base method.

func (*MockStore) GetNamespace

func (m *MockStore) GetNamespace(name string) (*model.Namespace, error)

GetNamespace mocks base method.

func (*MockStore) GetNamespaces

func (m *MockStore) GetNamespaces(filter map[string][]string, offset, limit int) ([]*model.Namespace, uint32, error)

GetNamespaces mocks base method.

func (*MockStore) GetRateLimitWithID

func (m *MockStore) GetRateLimitWithID(id string) (*model.RateLimit, error)

GetRateLimitWithID mocks base method.

func (*MockStore) GetRateLimitsForCache

func (m *MockStore) GetRateLimitsForCache(mtime time.Time, firstUpdate bool) ([]*model.RateLimit, []*model.RateLimitRevision, error)

GetRateLimitsForCache mocks base method.

func (*MockStore) GetRoutingConfigV2WithID

func (m *MockStore) GetRoutingConfigV2WithID(id string) (*v2.RoutingConfig, error)

GetRoutingConfigV2WithID mocks base method.

func (*MockStore) GetRoutingConfigV2WithIDTx

func (m *MockStore) GetRoutingConfigV2WithIDTx(tx store.Tx, id string) (*v2.RoutingConfig, error)

GetRoutingConfigV2WithIDTx mocks base method.

func (*MockStore) GetRoutingConfigWithID

func (m *MockStore) GetRoutingConfigWithID(id string) (*model.RoutingConfig, error)

GetRoutingConfigWithID mocks base method.

func (*MockStore) GetRoutingConfigWithService

func (m *MockStore) GetRoutingConfigWithService(name, namespace string) (*model.RoutingConfig, error)

GetRoutingConfigWithService mocks base method.

func (*MockStore) GetRoutingConfigs

func (m *MockStore) GetRoutingConfigs(filter map[string]string, offset, limit uint32) (uint32, []*model.ExtendRoutingConfig, error)

GetRoutingConfigs mocks base method.

func (*MockStore) GetRoutingConfigsForCache

func (m *MockStore) GetRoutingConfigsForCache(mtime time.Time, firstUpdate bool) ([]*model.RoutingConfig, error)

GetRoutingConfigsForCache mocks base method.

func (*MockStore) GetRoutingConfigsV2ForCache

func (m *MockStore) GetRoutingConfigsV2ForCache(mtime time.Time, firstUpdate bool) ([]*v2.RoutingConfig, error)

GetRoutingConfigsV2ForCache mocks base method.

func (*MockStore) GetService

func (m *MockStore) GetService(name, namespace string) (*model.Service, error)

GetService mocks base method.

func (*MockStore) GetServiceAliases

func (m *MockStore) GetServiceAliases(filter map[string]string, offset, limit uint32) (uint32, []*model.ServiceAlias, error)

GetServiceAliases mocks base method.

func (*MockStore) GetServiceByID

func (m *MockStore) GetServiceByID(id string) (*model.Service, error)

GetServiceByID mocks base method.

func (*MockStore) GetServices

func (m *MockStore) GetServices(serviceFilters, serviceMetas map[string]string, instanceFilters *store.InstanceArgs, offset, limit uint32) (uint32, []*model.Service, error)

GetServices mocks base method.

func (*MockStore) GetServicesBatch

func (m *MockStore) GetServicesBatch(services []*model.Service) ([]*model.Service, error)

GetServicesBatch mocks base method.

func (*MockStore) GetServicesCount

func (m *MockStore) GetServicesCount() (uint32, error)

GetServicesCount mocks base method.

func (*MockStore) GetSourceServiceToken

func (m *MockStore) GetSourceServiceToken(name, namespace string) (*model.Service, error)

GetSourceServiceToken mocks base method.

func (*MockStore) GetStrategies

func (m *MockStore) GetStrategies(filters map[string]string, offset, limit uint32) (uint32, []*model.StrategyDetail, error)

GetStrategies mocks base method.

func (*MockStore) GetStrategyDetail

func (m *MockStore) GetStrategyDetail(id string) (*model.StrategyDetail, error)

GetStrategyDetail mocks base method.

func (*MockStore) GetStrategyDetailsForCache

func (m *MockStore) GetStrategyDetailsForCache(mtime time.Time, firstUpdate bool) ([]*model.StrategyDetail, error)

GetStrategyDetailsForCache mocks base method.

func (*MockStore) GetStrategyResources

func (m *MockStore) GetStrategyResources(principalId string, principalRole model.PrincipalType) ([]model.StrategyResource, error)

GetStrategyResources mocks base method.

func (*MockStore) GetSubCount

func (m *MockStore) GetSubCount(user *model.User) (uint32, error)

GetSubCount mocks base method.

func (*MockStore) GetSystemServices

func (m *MockStore) GetSystemServices() ([]*model.Service, error)

GetSystemServices mocks base method.

func (*MockStore) GetUnixSecond

func (m *MockStore) GetUnixSecond() (int64, error)

GetUnixSecond mocks base method.

func (*MockStore) GetUser

func (m *MockStore) GetUser(id string) (*model.User, error)

GetUser mocks base method.

func (*MockStore) GetUserByIds

func (m *MockStore) GetUserByIds(ids []string) ([]*model.User, error)

GetUserByIds mocks base method.

func (*MockStore) GetUserByName

func (m *MockStore) GetUserByName(name, ownerId string) (*model.User, error)

GetUserByName mocks base method.

func (*MockStore) GetUsers

func (m *MockStore) GetUsers(filters map[string]string, offset, limit uint32) (uint32, []*model.User, error)

GetUsers mocks base method.

func (*MockStore) GetUsersForCache

func (m *MockStore) GetUsersForCache(mtime time.Time, firstUpdate bool) ([]*model.User, error)

GetUsersForCache mocks base method.

func (*MockStore) Initialize

func (m *MockStore) Initialize(c *store.Config) error

Initialize mocks base method.

func (*MockStore) IsLeader added in v1.13.1

func (m *MockStore) IsLeader() bool

IsLeader mocks base method.

func (*MockStore) ListMasterCircuitBreakers

func (m *MockStore) ListMasterCircuitBreakers(filters map[string]string, offset, limit uint32) (*model.CircuitBreakerDetail, error)

ListMasterCircuitBreakers mocks base method.

func (*MockStore) ListNamespaces

func (m *MockStore) ListNamespaces(owner string) ([]*model.Namespace, error)

ListNamespaces mocks base method.

func (*MockStore) ListReleaseCircuitBreakers

func (m *MockStore) ListReleaseCircuitBreakers(filters map[string]string, offset, limit uint32) (*model.CircuitBreakerDetail, error)

ListReleaseCircuitBreakers mocks base method.

func (*MockStore) LooseAddStrategyResources

func (m *MockStore) LooseAddStrategyResources(resources []model.StrategyResource) error

LooseAddStrategyResources mocks base method.

func (*MockStore) Name

func (m *MockStore) Name() string

Name mocks base method.

func (*MockStore) QueryAllConfigFileTemplates

func (m *MockStore) QueryAllConfigFileTemplates() ([]*model.ConfigFileTemplate, error)

QueryAllConfigFileTemplates mocks base method.

func (*MockStore) QueryConfigFileByTag

func (m *MockStore) QueryConfigFileByTag(namespace, group, fileName string, tags ...string) ([]*model.ConfigFileTag, error)

QueryConfigFileByTag mocks base method.

func (*MockStore) QueryConfigFileGroups

func (m *MockStore) QueryConfigFileGroups(namespace, name string, offset, limit uint32) (uint32, []*model.ConfigFileGroup, error)

QueryConfigFileGroups mocks base method.

func (*MockStore) QueryConfigFileReleaseHistories

func (m *MockStore) QueryConfigFileReleaseHistories(namespace, group, fileName string, offset, limit uint32, endId uint64) (uint32, []*model.ConfigFileReleaseHistory, error)

QueryConfigFileReleaseHistories mocks base method.

func (*MockStore) QueryConfigFiles

func (m *MockStore) QueryConfigFiles(namespace, group, name string, offset, limit uint32) (uint32, []*model.ConfigFile, error)

QueryConfigFiles mocks base method.

func (*MockStore) QueryConfigFilesByGroup

func (m *MockStore) QueryConfigFilesByGroup(namespace, group string, offset, limit uint32) (uint32, []*model.ConfigFile, error)

QueryConfigFilesByGroup mocks base method.

func (*MockStore) QueryTagByConfigFile

func (m *MockStore) QueryTagByConfigFile(namespace, group, fileName string) ([]*model.ConfigFileTag, error)

QueryTagByConfigFile mocks base method.

func (*MockStore) ReleaseCircuitBreaker

func (m *MockStore) ReleaseCircuitBreaker(circuitBreakerRelation *model.CircuitBreakerRelation) error

ReleaseCircuitBreaker mocks base method.

func (*MockStore) RemoveStrategyResources

func (m *MockStore) RemoveStrategyResources(resources []model.StrategyResource) error

RemoveStrategyResources mocks base method.

func (*MockStore) SetInstanceHealthStatus

func (m *MockStore) SetInstanceHealthStatus(instanceID string, flag int, revision string) error

SetInstanceHealthStatus mocks base method.

func (*MockStore) SetL5Extend

func (m *MockStore) SetL5Extend(serviceID string, meta map[string]interface{}) (map[string]interface{}, error)

SetL5Extend mocks base method.

func (*MockStore) StartTx

func (m *MockStore) StartTx() (store.Tx, error)

StartTx mocks base method.

func (*MockStore) TagCircuitBreaker

func (m *MockStore) TagCircuitBreaker(circuitBreaker *model.CircuitBreaker) error

TagCircuitBreaker mocks base method.

func (*MockStore) UnbindCircuitBreaker

func (m *MockStore) UnbindCircuitBreaker(serviceID, ruleID, ruleVersion string) error

UnbindCircuitBreaker mocks base method.

func (*MockStore) UpdateCircuitBreaker

func (m *MockStore) UpdateCircuitBreaker(circuitBraker *model.CircuitBreaker) error

UpdateCircuitBreaker mocks base method.

func (*MockStore) UpdateConfigFile

func (m *MockStore) UpdateConfigFile(tx store.Tx, file *model.ConfigFile) (*model.ConfigFile, error)

UpdateConfigFile mocks base method.

func (*MockStore) UpdateConfigFileGroup

func (m *MockStore) UpdateConfigFileGroup(fileGroup *model.ConfigFileGroup) (*model.ConfigFileGroup, error)

UpdateConfigFileGroup mocks base method.

func (*MockStore) UpdateConfigFileRelease

func (m *MockStore) UpdateConfigFileRelease(tx store.Tx, fileRelease *model.ConfigFileRelease) (*model.ConfigFileRelease, error)

UpdateConfigFileRelease mocks base method.

func (*MockStore) UpdateGroup

func (m *MockStore) UpdateGroup(group *model.ModifyUserGroup) error

UpdateGroup mocks base method.

func (*MockStore) UpdateInstance

func (m *MockStore) UpdateInstance(instance *model.Instance) error

UpdateInstance mocks base method.

func (*MockStore) UpdateNamespace

func (m *MockStore) UpdateNamespace(namespace *model.Namespace) error

UpdateNamespace mocks base method.

func (*MockStore) UpdateNamespaceToken

func (m *MockStore) UpdateNamespaceToken(name, token string) error

UpdateNamespaceToken mocks base method.

func (*MockStore) UpdateRateLimit

func (m *MockStore) UpdateRateLimit(limiting *model.RateLimit) error

UpdateRateLimit mocks base method.

func (*MockStore) UpdateRoutingConfig

func (m *MockStore) UpdateRoutingConfig(conf *model.RoutingConfig) error

UpdateRoutingConfig mocks base method.

func (*MockStore) UpdateRoutingConfigV2

func (m *MockStore) UpdateRoutingConfigV2(conf *v2.RoutingConfig) error

UpdateRoutingConfigV2 mocks base method.

func (*MockStore) UpdateRoutingConfigV2Tx

func (m *MockStore) UpdateRoutingConfigV2Tx(tx store.Tx, conf *v2.RoutingConfig) error

UpdateRoutingConfigV2Tx mocks base method.

func (*MockStore) UpdateService

func (m *MockStore) UpdateService(service *model.Service, needUpdateOwner bool) error

UpdateService mocks base method.

func (*MockStore) UpdateServiceAlias

func (m *MockStore) UpdateServiceAlias(alias *model.Service, needUpdateOwner bool) error

UpdateServiceAlias mocks base method.

func (*MockStore) UpdateServiceToken

func (m *MockStore) UpdateServiceToken(serviceID, token, revision string) error

UpdateServiceToken mocks base method.

func (*MockStore) UpdateStrategy

func (m *MockStore) UpdateStrategy(strategy *model.ModifyStrategyDetail) error

UpdateStrategy mocks base method.

func (*MockStore) UpdateUser

func (m *MockStore) UpdateUser(user *model.User) error

UpdateUser mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AddGroup

func (mr *MockStoreMockRecorder) AddGroup(group interface{}) *gomock.Call

AddGroup indicates an expected call of AddGroup.

func (*MockStoreMockRecorder) AddInstance

func (mr *MockStoreMockRecorder) AddInstance(instance interface{}) *gomock.Call

AddInstance indicates an expected call of AddInstance.

func (*MockStoreMockRecorder) AddNamespace

func (mr *MockStoreMockRecorder) AddNamespace(namespace interface{}) *gomock.Call

AddNamespace indicates an expected call of AddNamespace.

func (*MockStoreMockRecorder) AddService

func (mr *MockStoreMockRecorder) AddService(service interface{}) *gomock.Call

AddService indicates an expected call of AddService.

func (*MockStoreMockRecorder) AddStrategy

func (mr *MockStoreMockRecorder) AddStrategy(strategy interface{}) *gomock.Call

AddStrategy indicates an expected call of AddStrategy.

func (*MockStoreMockRecorder) AddUser

func (mr *MockStoreMockRecorder) AddUser(user interface{}) *gomock.Call

AddUser indicates an expected call of AddUser.

func (*MockStoreMockRecorder) BatchAddClients

func (mr *MockStoreMockRecorder) BatchAddClients(clients interface{}) *gomock.Call

BatchAddClients indicates an expected call of BatchAddClients.

func (*MockStoreMockRecorder) BatchAddInstances

func (mr *MockStoreMockRecorder) BatchAddInstances(instances interface{}) *gomock.Call

BatchAddInstances indicates an expected call of BatchAddInstances.

func (*MockStoreMockRecorder) BatchCleanDeletedInstances

func (mr *MockStoreMockRecorder) BatchCleanDeletedInstances(batchSize interface{}) *gomock.Call

BatchCleanDeletedInstances indicates an expected call of BatchCleanDeletedInstances.

func (*MockStoreMockRecorder) BatchDeleteClients

func (mr *MockStoreMockRecorder) BatchDeleteClients(ids interface{}) *gomock.Call

BatchDeleteClients indicates an expected call of BatchDeleteClients.

func (*MockStoreMockRecorder) BatchDeleteInstances

func (mr *MockStoreMockRecorder) BatchDeleteInstances(ids interface{}) *gomock.Call

BatchDeleteInstances indicates an expected call of BatchDeleteInstances.

func (*MockStoreMockRecorder) BatchGetInstanceIsolate

func (mr *MockStoreMockRecorder) BatchGetInstanceIsolate(ids interface{}) *gomock.Call

BatchGetInstanceIsolate indicates an expected call of BatchGetInstanceIsolate.

func (*MockStoreMockRecorder) BatchSetInstanceHealthStatus

func (mr *MockStoreMockRecorder) BatchSetInstanceHealthStatus(ids, healthy, revision interface{}) *gomock.Call

BatchSetInstanceHealthStatus indicates an expected call of BatchSetInstanceHealthStatus.

func (*MockStoreMockRecorder) BatchSetInstanceIsolate

func (mr *MockStoreMockRecorder) BatchSetInstanceIsolate(ids, isolate, revision interface{}) *gomock.Call

BatchSetInstanceIsolate indicates an expected call of BatchSetInstanceIsolate.

func (*MockStoreMockRecorder) CleanInstance

func (mr *MockStoreMockRecorder) CleanInstance(instanceID interface{}) *gomock.Call

CleanInstance indicates an expected call of CleanInstance.

func (*MockStoreMockRecorder) CountByConfigFileGroup

func (mr *MockStoreMockRecorder) CountByConfigFileGroup(namespace, group interface{}) *gomock.Call

CountByConfigFileGroup indicates an expected call of CountByConfigFileGroup.

func (*MockStoreMockRecorder) CreateCircuitBreaker

func (mr *MockStoreMockRecorder) CreateCircuitBreaker(circuitBreaker interface{}) *gomock.Call

CreateCircuitBreaker indicates an expected call of CreateCircuitBreaker.

func (*MockStoreMockRecorder) CreateConfigFile

func (mr *MockStoreMockRecorder) CreateConfigFile(tx, file interface{}) *gomock.Call

CreateConfigFile indicates an expected call of CreateConfigFile.

func (*MockStoreMockRecorder) CreateConfigFileGroup

func (mr *MockStoreMockRecorder) CreateConfigFileGroup(fileGroup interface{}) *gomock.Call

CreateConfigFileGroup indicates an expected call of CreateConfigFileGroup.

func (*MockStoreMockRecorder) CreateConfigFileRelease

func (mr *MockStoreMockRecorder) CreateConfigFileRelease(tx, fileRelease interface{}) *gomock.Call

CreateConfigFileRelease indicates an expected call of CreateConfigFileRelease.

func (*MockStoreMockRecorder) CreateConfigFileReleaseHistory

func (mr *MockStoreMockRecorder) CreateConfigFileReleaseHistory(tx, fileReleaseHistory interface{}) *gomock.Call

CreateConfigFileReleaseHistory indicates an expected call of CreateConfigFileReleaseHistory.

func (*MockStoreMockRecorder) CreateConfigFileTag

func (mr *MockStoreMockRecorder) CreateConfigFileTag(tx, fileTag interface{}) *gomock.Call

CreateConfigFileTag indicates an expected call of CreateConfigFileTag.

func (*MockStoreMockRecorder) CreateConfigFileTemplate

func (mr *MockStoreMockRecorder) CreateConfigFileTemplate(template interface{}) *gomock.Call

CreateConfigFileTemplate indicates an expected call of CreateConfigFileTemplate.

func (*MockStoreMockRecorder) CreateRateLimit

func (mr *MockStoreMockRecorder) CreateRateLimit(limiting interface{}) *gomock.Call

CreateRateLimit indicates an expected call of CreateRateLimit.

func (*MockStoreMockRecorder) CreateRoutingConfig

func (mr *MockStoreMockRecorder) CreateRoutingConfig(conf interface{}) *gomock.Call

CreateRoutingConfig indicates an expected call of CreateRoutingConfig.

func (*MockStoreMockRecorder) CreateRoutingConfigV2

func (mr *MockStoreMockRecorder) CreateRoutingConfigV2(conf interface{}) *gomock.Call

CreateRoutingConfigV2 indicates an expected call of CreateRoutingConfigV2.

func (*MockStoreMockRecorder) CreateRoutingConfigV2Tx

func (mr *MockStoreMockRecorder) CreateRoutingConfigV2Tx(tx, conf interface{}) *gomock.Call

CreateRoutingConfigV2Tx indicates an expected call of CreateRoutingConfigV2Tx.

func (*MockStoreMockRecorder) CreateTransaction

func (mr *MockStoreMockRecorder) CreateTransaction() *gomock.Call

CreateTransaction indicates an expected call of CreateTransaction.

func (*MockStoreMockRecorder) DeleteConfigFile

func (mr *MockStoreMockRecorder) DeleteConfigFile(tx, namespace, group, name interface{}) *gomock.Call

DeleteConfigFile indicates an expected call of DeleteConfigFile.

func (*MockStoreMockRecorder) DeleteConfigFileGroup

func (mr *MockStoreMockRecorder) DeleteConfigFileGroup(namespace, name interface{}) *gomock.Call

DeleteConfigFileGroup indicates an expected call of DeleteConfigFileGroup.

func (*MockStoreMockRecorder) DeleteConfigFileRelease

func (mr *MockStoreMockRecorder) DeleteConfigFileRelease(tx, namespace, group, fileName, deleteBy interface{}) *gomock.Call

DeleteConfigFileRelease indicates an expected call of DeleteConfigFileRelease.

func (*MockStoreMockRecorder) DeleteConfigFileTag

func (mr *MockStoreMockRecorder) DeleteConfigFileTag(tx, namespace, group, fileName, key, value interface{}) *gomock.Call

DeleteConfigFileTag indicates an expected call of DeleteConfigFileTag.

func (*MockStoreMockRecorder) DeleteGroup

func (mr *MockStoreMockRecorder) DeleteGroup(group interface{}) *gomock.Call

DeleteGroup indicates an expected call of DeleteGroup.

func (*MockStoreMockRecorder) DeleteInstance

func (mr *MockStoreMockRecorder) DeleteInstance(instanceID interface{}) *gomock.Call

DeleteInstance indicates an expected call of DeleteInstance.

func (*MockStoreMockRecorder) DeleteMasterCircuitBreaker

func (mr *MockStoreMockRecorder) DeleteMasterCircuitBreaker(id interface{}) *gomock.Call

DeleteMasterCircuitBreaker indicates an expected call of DeleteMasterCircuitBreaker.

func (*MockStoreMockRecorder) DeleteRateLimit

func (mr *MockStoreMockRecorder) DeleteRateLimit(limiting interface{}) *gomock.Call

DeleteRateLimit indicates an expected call of DeleteRateLimit.

func (*MockStoreMockRecorder) DeleteRoutingConfig

func (mr *MockStoreMockRecorder) DeleteRoutingConfig(serviceID interface{}) *gomock.Call

DeleteRoutingConfig indicates an expected call of DeleteRoutingConfig.

func (*MockStoreMockRecorder) DeleteRoutingConfigTx

func (mr *MockStoreMockRecorder) DeleteRoutingConfigTx(tx, serviceID interface{}) *gomock.Call

DeleteRoutingConfigTx indicates an expected call of DeleteRoutingConfigTx.

func (*MockStoreMockRecorder) DeleteRoutingConfigV2

func (mr *MockStoreMockRecorder) DeleteRoutingConfigV2(serviceID interface{}) *gomock.Call

DeleteRoutingConfigV2 indicates an expected call of DeleteRoutingConfigV2.

func (*MockStoreMockRecorder) DeleteService

func (mr *MockStoreMockRecorder) DeleteService(id, serviceName, namespaceName interface{}) *gomock.Call

DeleteService indicates an expected call of DeleteService.

func (*MockStoreMockRecorder) DeleteServiceAlias

func (mr *MockStoreMockRecorder) DeleteServiceAlias(name, namespace interface{}) *gomock.Call

DeleteServiceAlias indicates an expected call of DeleteServiceAlias.

func (*MockStoreMockRecorder) DeleteStrategy

func (mr *MockStoreMockRecorder) DeleteStrategy(id interface{}) *gomock.Call

DeleteStrategy indicates an expected call of DeleteStrategy.

func (*MockStoreMockRecorder) DeleteTagByConfigFile

func (mr *MockStoreMockRecorder) DeleteTagByConfigFile(tx, namespace, group, fileName interface{}) *gomock.Call

DeleteTagByConfigFile indicates an expected call of DeleteTagByConfigFile.

func (*MockStoreMockRecorder) DeleteTagCircuitBreaker

func (mr *MockStoreMockRecorder) DeleteTagCircuitBreaker(id, version interface{}) *gomock.Call

DeleteTagCircuitBreaker indicates an expected call of DeleteTagCircuitBreaker.

func (*MockStoreMockRecorder) DeleteUser

func (mr *MockStoreMockRecorder) DeleteUser(user interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockStoreMockRecorder) Destroy

func (mr *MockStoreMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockStoreMockRecorder) EnableRateLimit

func (mr *MockStoreMockRecorder) EnableRateLimit(limit interface{}) *gomock.Call

EnableRateLimit indicates an expected call of EnableRateLimit.

func (*MockStoreMockRecorder) EnableRouting

func (mr *MockStoreMockRecorder) EnableRouting(conf interface{}) *gomock.Call

EnableRouting indicates an expected call of EnableRouting.

func (*MockStoreMockRecorder) FindConfigFileGroups

func (mr *MockStoreMockRecorder) FindConfigFileGroups(namespace, names interface{}) *gomock.Call

FindConfigFileGroups indicates an expected call of FindConfigFileGroups.

func (*MockStoreMockRecorder) FindConfigFileReleaseByModifyTimeAfter

func (mr *MockStoreMockRecorder) FindConfigFileReleaseByModifyTimeAfter(modifyTime interface{}) *gomock.Call

FindConfigFileReleaseByModifyTimeAfter indicates an expected call of FindConfigFileReleaseByModifyTimeAfter.

func (*MockStoreMockRecorder) GenNextL5Sid

func (mr *MockStoreMockRecorder) GenNextL5Sid(layoutID interface{}) *gomock.Call

GenNextL5Sid indicates an expected call of GenNextL5Sid.

func (*MockStoreMockRecorder) GetCircuitBreaker

func (mr *MockStoreMockRecorder) GetCircuitBreaker(id, version interface{}) *gomock.Call

GetCircuitBreaker indicates an expected call of GetCircuitBreaker.

func (*MockStoreMockRecorder) GetCircuitBreakerForCache

func (mr *MockStoreMockRecorder) GetCircuitBreakerForCache(mtime, firstUpdate interface{}) *gomock.Call

GetCircuitBreakerForCache indicates an expected call of GetCircuitBreakerForCache.

func (*MockStoreMockRecorder) GetCircuitBreakerMasterRelation

func (mr *MockStoreMockRecorder) GetCircuitBreakerMasterRelation(ruleID interface{}) *gomock.Call

GetCircuitBreakerMasterRelation indicates an expected call of GetCircuitBreakerMasterRelation.

func (*MockStoreMockRecorder) GetCircuitBreakerRelation

func (mr *MockStoreMockRecorder) GetCircuitBreakerRelation(ruleID, ruleVersion interface{}) *gomock.Call

GetCircuitBreakerRelation indicates an expected call of GetCircuitBreakerRelation.

func (*MockStoreMockRecorder) GetCircuitBreakerVersions

func (mr *MockStoreMockRecorder) GetCircuitBreakerVersions(id interface{}) *gomock.Call

GetCircuitBreakerVersions indicates an expected call of GetCircuitBreakerVersions.

func (*MockStoreMockRecorder) GetCircuitBreakersByService

func (mr *MockStoreMockRecorder) GetCircuitBreakersByService(name, namespace interface{}) *gomock.Call

GetCircuitBreakersByService indicates an expected call of GetCircuitBreakersByService.

func (*MockStoreMockRecorder) GetConfigFile

func (mr *MockStoreMockRecorder) GetConfigFile(tx, namespace, group, name interface{}) *gomock.Call

GetConfigFile indicates an expected call of GetConfigFile.

func (*MockStoreMockRecorder) GetConfigFileGroup

func (mr *MockStoreMockRecorder) GetConfigFileGroup(namespace, name interface{}) *gomock.Call

GetConfigFileGroup indicates an expected call of GetConfigFileGroup.

func (*MockStoreMockRecorder) GetConfigFileGroupById

func (mr *MockStoreMockRecorder) GetConfigFileGroupById(id interface{}) *gomock.Call

GetConfigFileGroupById indicates an expected call of GetConfigFileGroupById.

func (*MockStoreMockRecorder) GetConfigFileRelease

func (mr *MockStoreMockRecorder) GetConfigFileRelease(tx, namespace, group, fileName interface{}) *gomock.Call

GetConfigFileRelease indicates an expected call of GetConfigFileRelease.

func (*MockStoreMockRecorder) GetConfigFileReleaseWithAllFlag

func (mr *MockStoreMockRecorder) GetConfigFileReleaseWithAllFlag(tx, namespace, group, fileName interface{}) *gomock.Call

GetConfigFileReleaseWithAllFlag indicates an expected call of GetConfigFileReleaseWithAllFlag.

func (*MockStoreMockRecorder) GetConfigFileTemplate

func (mr *MockStoreMockRecorder) GetConfigFileTemplate(name interface{}) *gomock.Call

GetConfigFileTemplate indicates an expected call of GetConfigFileTemplate.

func (*MockStoreMockRecorder) GetDefaultStrategyDetailByPrincipal

func (mr *MockStoreMockRecorder) GetDefaultStrategyDetailByPrincipal(principalId, principalType interface{}) *gomock.Call

GetDefaultStrategyDetailByPrincipal indicates an expected call of GetDefaultStrategyDetailByPrincipal.

func (*MockStoreMockRecorder) GetExpandInstances

func (mr *MockStoreMockRecorder) GetExpandInstances(filter, metaFilter, offset, limit interface{}) *gomock.Call

GetExpandInstances indicates an expected call of GetExpandInstances.

func (*MockStoreMockRecorder) GetExtendRateLimits

func (mr *MockStoreMockRecorder) GetExtendRateLimits(query, offset, limit interface{}) *gomock.Call

GetExtendRateLimits indicates an expected call of GetExtendRateLimits.

func (*MockStoreMockRecorder) GetGroup

func (mr *MockStoreMockRecorder) GetGroup(id interface{}) *gomock.Call

GetGroup indicates an expected call of GetGroup.

func (*MockStoreMockRecorder) GetGroupByName

func (mr *MockStoreMockRecorder) GetGroupByName(name, owner interface{}) *gomock.Call

GetGroupByName indicates an expected call of GetGroupByName.

func (*MockStoreMockRecorder) GetGroups

func (mr *MockStoreMockRecorder) GetGroups(filters, offset, limit interface{}) *gomock.Call

GetGroups indicates an expected call of GetGroups.

func (*MockStoreMockRecorder) GetGroupsForCache

func (mr *MockStoreMockRecorder) GetGroupsForCache(mtime, firstUpdate interface{}) *gomock.Call

GetGroupsForCache indicates an expected call of GetGroupsForCache.

func (*MockStoreMockRecorder) GetInstance

func (mr *MockStoreMockRecorder) GetInstance(instanceID interface{}) *gomock.Call

GetInstance indicates an expected call of GetInstance.

func (*MockStoreMockRecorder) GetInstancesBrief

func (mr *MockStoreMockRecorder) GetInstancesBrief(ids interface{}) *gomock.Call

GetInstancesBrief indicates an expected call of GetInstancesBrief.

func (*MockStoreMockRecorder) GetInstancesCount

func (mr *MockStoreMockRecorder) GetInstancesCount() *gomock.Call

GetInstancesCount indicates an expected call of GetInstancesCount.

func (*MockStoreMockRecorder) GetInstancesMainByService

func (mr *MockStoreMockRecorder) GetInstancesMainByService(serviceID, host interface{}) *gomock.Call

GetInstancesMainByService indicates an expected call of GetInstancesMainByService.

func (*MockStoreMockRecorder) GetL5Extend

func (mr *MockStoreMockRecorder) GetL5Extend(serviceID interface{}) *gomock.Call

GetL5Extend indicates an expected call of GetL5Extend.

func (*MockStoreMockRecorder) GetLatestConfigFileReleaseHistory

func (mr *MockStoreMockRecorder) GetLatestConfigFileReleaseHistory(namespace, group, fileName interface{}) *gomock.Call

GetLatestConfigFileReleaseHistory indicates an expected call of GetLatestConfigFileReleaseHistory.

func (*MockStoreMockRecorder) GetMoreClients

func (mr *MockStoreMockRecorder) GetMoreClients(mtime, firstUpdate interface{}) *gomock.Call

GetMoreClients indicates an expected call of GetMoreClients.

func (*MockStoreMockRecorder) GetMoreInstances

func (mr *MockStoreMockRecorder) GetMoreInstances(mtime, firstUpdate, needMeta, serviceID interface{}) *gomock.Call

GetMoreInstances indicates an expected call of GetMoreInstances.

func (*MockStoreMockRecorder) GetMoreL5Extend

func (mr *MockStoreMockRecorder) GetMoreL5Extend(mtime interface{}) *gomock.Call

GetMoreL5Extend indicates an expected call of GetMoreL5Extend.

func (*MockStoreMockRecorder) GetMoreL5IPConfigs

func (mr *MockStoreMockRecorder) GetMoreL5IPConfigs(flow interface{}) *gomock.Call

GetMoreL5IPConfigs indicates an expected call of GetMoreL5IPConfigs.

func (*MockStoreMockRecorder) GetMoreL5Policies

func (mr *MockStoreMockRecorder) GetMoreL5Policies(flow interface{}) *gomock.Call

GetMoreL5Policies indicates an expected call of GetMoreL5Policies.

func (*MockStoreMockRecorder) GetMoreL5Routes

func (mr *MockStoreMockRecorder) GetMoreL5Routes(flow interface{}) *gomock.Call

GetMoreL5Routes indicates an expected call of GetMoreL5Routes.

func (*MockStoreMockRecorder) GetMoreL5Sections

func (mr *MockStoreMockRecorder) GetMoreL5Sections(flow interface{}) *gomock.Call

GetMoreL5Sections indicates an expected call of GetMoreL5Sections.

func (*MockStoreMockRecorder) GetMoreNamespaces

func (mr *MockStoreMockRecorder) GetMoreNamespaces(mtime interface{}) *gomock.Call

GetMoreNamespaces indicates an expected call of GetMoreNamespaces.

func (*MockStoreMockRecorder) GetMoreServices

func (mr *MockStoreMockRecorder) GetMoreServices(mtime, firstUpdate, disableBusiness, needMeta interface{}) *gomock.Call

GetMoreServices indicates an expected call of GetMoreServices.

func (*MockStoreMockRecorder) GetNamespace

func (mr *MockStoreMockRecorder) GetNamespace(name interface{}) *gomock.Call

GetNamespace indicates an expected call of GetNamespace.

func (*MockStoreMockRecorder) GetNamespaces

func (mr *MockStoreMockRecorder) GetNamespaces(filter, offset, limit interface{}) *gomock.Call

GetNamespaces indicates an expected call of GetNamespaces.

func (*MockStoreMockRecorder) GetRateLimitWithID

func (mr *MockStoreMockRecorder) GetRateLimitWithID(id interface{}) *gomock.Call

GetRateLimitWithID indicates an expected call of GetRateLimitWithID.

func (*MockStoreMockRecorder) GetRateLimitsForCache

func (mr *MockStoreMockRecorder) GetRateLimitsForCache(mtime, firstUpdate interface{}) *gomock.Call

GetRateLimitsForCache indicates an expected call of GetRateLimitsForCache.

func (*MockStoreMockRecorder) GetRoutingConfigV2WithID

func (mr *MockStoreMockRecorder) GetRoutingConfigV2WithID(id interface{}) *gomock.Call

GetRoutingConfigV2WithID indicates an expected call of GetRoutingConfigV2WithID.

func (*MockStoreMockRecorder) GetRoutingConfigV2WithIDTx

func (mr *MockStoreMockRecorder) GetRoutingConfigV2WithIDTx(tx, id interface{}) *gomock.Call

GetRoutingConfigV2WithIDTx indicates an expected call of GetRoutingConfigV2WithIDTx.

func (*MockStoreMockRecorder) GetRoutingConfigWithID

func (mr *MockStoreMockRecorder) GetRoutingConfigWithID(id interface{}) *gomock.Call

GetRoutingConfigWithID indicates an expected call of GetRoutingConfigWithID.

func (*MockStoreMockRecorder) GetRoutingConfigWithService

func (mr *MockStoreMockRecorder) GetRoutingConfigWithService(name, namespace interface{}) *gomock.Call

GetRoutingConfigWithService indicates an expected call of GetRoutingConfigWithService.

func (*MockStoreMockRecorder) GetRoutingConfigs

func (mr *MockStoreMockRecorder) GetRoutingConfigs(filter, offset, limit interface{}) *gomock.Call

GetRoutingConfigs indicates an expected call of GetRoutingConfigs.

func (*MockStoreMockRecorder) GetRoutingConfigsForCache

func (mr *MockStoreMockRecorder) GetRoutingConfigsForCache(mtime, firstUpdate interface{}) *gomock.Call

GetRoutingConfigsForCache indicates an expected call of GetRoutingConfigsForCache.

func (*MockStoreMockRecorder) GetRoutingConfigsV2ForCache

func (mr *MockStoreMockRecorder) GetRoutingConfigsV2ForCache(mtime, firstUpdate interface{}) *gomock.Call

GetRoutingConfigsV2ForCache indicates an expected call of GetRoutingConfigsV2ForCache.

func (*MockStoreMockRecorder) GetService

func (mr *MockStoreMockRecorder) GetService(name, namespace interface{}) *gomock.Call

GetService indicates an expected call of GetService.

func (*MockStoreMockRecorder) GetServiceAliases

func (mr *MockStoreMockRecorder) GetServiceAliases(filter, offset, limit interface{}) *gomock.Call

GetServiceAliases indicates an expected call of GetServiceAliases.

func (*MockStoreMockRecorder) GetServiceByID

func (mr *MockStoreMockRecorder) GetServiceByID(id interface{}) *gomock.Call

GetServiceByID indicates an expected call of GetServiceByID.

func (*MockStoreMockRecorder) GetServices

func (mr *MockStoreMockRecorder) GetServices(serviceFilters, serviceMetas, instanceFilters, offset, limit interface{}) *gomock.Call

GetServices indicates an expected call of GetServices.

func (*MockStoreMockRecorder) GetServicesBatch

func (mr *MockStoreMockRecorder) GetServicesBatch(services interface{}) *gomock.Call

GetServicesBatch indicates an expected call of GetServicesBatch.

func (*MockStoreMockRecorder) GetServicesCount

func (mr *MockStoreMockRecorder) GetServicesCount() *gomock.Call

GetServicesCount indicates an expected call of GetServicesCount.

func (*MockStoreMockRecorder) GetSourceServiceToken

func (mr *MockStoreMockRecorder) GetSourceServiceToken(name, namespace interface{}) *gomock.Call

GetSourceServiceToken indicates an expected call of GetSourceServiceToken.

func (*MockStoreMockRecorder) GetStrategies

func (mr *MockStoreMockRecorder) GetStrategies(filters, offset, limit interface{}) *gomock.Call

GetStrategies indicates an expected call of GetStrategies.

func (*MockStoreMockRecorder) GetStrategyDetail

func (mr *MockStoreMockRecorder) GetStrategyDetail(id interface{}) *gomock.Call

GetStrategyDetail indicates an expected call of GetStrategyDetail.

func (*MockStoreMockRecorder) GetStrategyDetailsForCache

func (mr *MockStoreMockRecorder) GetStrategyDetailsForCache(mtime, firstUpdate interface{}) *gomock.Call

GetStrategyDetailsForCache indicates an expected call of GetStrategyDetailsForCache.

func (*MockStoreMockRecorder) GetStrategyResources

func (mr *MockStoreMockRecorder) GetStrategyResources(principalId, principalRole interface{}) *gomock.Call

GetStrategyResources indicates an expected call of GetStrategyResources.

func (*MockStoreMockRecorder) GetSubCount

func (mr *MockStoreMockRecorder) GetSubCount(user interface{}) *gomock.Call

GetSubCount indicates an expected call of GetSubCount.

func (*MockStoreMockRecorder) GetSystemServices

func (mr *MockStoreMockRecorder) GetSystemServices() *gomock.Call

GetSystemServices indicates an expected call of GetSystemServices.

func (*MockStoreMockRecorder) GetUnixSecond

func (mr *MockStoreMockRecorder) GetUnixSecond() *gomock.Call

GetUnixSecond indicates an expected call of GetUnixSecond.

func (*MockStoreMockRecorder) GetUser

func (mr *MockStoreMockRecorder) GetUser(id interface{}) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockStoreMockRecorder) GetUserByIds

func (mr *MockStoreMockRecorder) GetUserByIds(ids interface{}) *gomock.Call

GetUserByIds indicates an expected call of GetUserByIds.

func (*MockStoreMockRecorder) GetUserByName

func (mr *MockStoreMockRecorder) GetUserByName(name, ownerId interface{}) *gomock.Call

GetUserByName indicates an expected call of GetUserByName.

func (*MockStoreMockRecorder) GetUsers

func (mr *MockStoreMockRecorder) GetUsers(filters, offset, limit interface{}) *gomock.Call

GetUsers indicates an expected call of GetUsers.

func (*MockStoreMockRecorder) GetUsersForCache

func (mr *MockStoreMockRecorder) GetUsersForCache(mtime, firstUpdate interface{}) *gomock.Call

GetUsersForCache indicates an expected call of GetUsersForCache.

func (*MockStoreMockRecorder) Initialize

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

Initialize indicates an expected call of Initialize.

func (*MockStoreMockRecorder) IsLeader added in v1.13.1

func (mr *MockStoreMockRecorder) IsLeader() *gomock.Call

IsLeader indicates an expected call of IsLeader.

func (*MockStoreMockRecorder) ListMasterCircuitBreakers

func (mr *MockStoreMockRecorder) ListMasterCircuitBreakers(filters, offset, limit interface{}) *gomock.Call

ListMasterCircuitBreakers indicates an expected call of ListMasterCircuitBreakers.

func (*MockStoreMockRecorder) ListNamespaces

func (mr *MockStoreMockRecorder) ListNamespaces(owner interface{}) *gomock.Call

ListNamespaces indicates an expected call of ListNamespaces.

func (*MockStoreMockRecorder) ListReleaseCircuitBreakers

func (mr *MockStoreMockRecorder) ListReleaseCircuitBreakers(filters, offset, limit interface{}) *gomock.Call

ListReleaseCircuitBreakers indicates an expected call of ListReleaseCircuitBreakers.

func (*MockStoreMockRecorder) LooseAddStrategyResources

func (mr *MockStoreMockRecorder) LooseAddStrategyResources(resources interface{}) *gomock.Call

LooseAddStrategyResources indicates an expected call of LooseAddStrategyResources.

func (*MockStoreMockRecorder) Name

func (mr *MockStoreMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name.

func (*MockStoreMockRecorder) QueryAllConfigFileTemplates

func (mr *MockStoreMockRecorder) QueryAllConfigFileTemplates() *gomock.Call

QueryAllConfigFileTemplates indicates an expected call of QueryAllConfigFileTemplates.

func (*MockStoreMockRecorder) QueryConfigFileByTag

func (mr *MockStoreMockRecorder) QueryConfigFileByTag(namespace, group, fileName interface{}, tags ...interface{}) *gomock.Call

QueryConfigFileByTag indicates an expected call of QueryConfigFileByTag.

func (*MockStoreMockRecorder) QueryConfigFileGroups

func (mr *MockStoreMockRecorder) QueryConfigFileGroups(namespace, name, offset, limit interface{}) *gomock.Call

QueryConfigFileGroups indicates an expected call of QueryConfigFileGroups.

func (*MockStoreMockRecorder) QueryConfigFileReleaseHistories

func (mr *MockStoreMockRecorder) QueryConfigFileReleaseHistories(namespace, group, fileName, offset, limit, endId interface{}) *gomock.Call

QueryConfigFileReleaseHistories indicates an expected call of QueryConfigFileReleaseHistories.

func (*MockStoreMockRecorder) QueryConfigFiles

func (mr *MockStoreMockRecorder) QueryConfigFiles(namespace, group, name, offset, limit interface{}) *gomock.Call

QueryConfigFiles indicates an expected call of QueryConfigFiles.

func (*MockStoreMockRecorder) QueryConfigFilesByGroup

func (mr *MockStoreMockRecorder) QueryConfigFilesByGroup(namespace, group, offset, limit interface{}) *gomock.Call

QueryConfigFilesByGroup indicates an expected call of QueryConfigFilesByGroup.

func (*MockStoreMockRecorder) QueryTagByConfigFile

func (mr *MockStoreMockRecorder) QueryTagByConfigFile(namespace, group, fileName interface{}) *gomock.Call

QueryTagByConfigFile indicates an expected call of QueryTagByConfigFile.

func (*MockStoreMockRecorder) ReleaseCircuitBreaker

func (mr *MockStoreMockRecorder) ReleaseCircuitBreaker(circuitBreakerRelation interface{}) *gomock.Call

ReleaseCircuitBreaker indicates an expected call of ReleaseCircuitBreaker.

func (*MockStoreMockRecorder) RemoveStrategyResources

func (mr *MockStoreMockRecorder) RemoveStrategyResources(resources interface{}) *gomock.Call

RemoveStrategyResources indicates an expected call of RemoveStrategyResources.

func (*MockStoreMockRecorder) SetInstanceHealthStatus

func (mr *MockStoreMockRecorder) SetInstanceHealthStatus(instanceID, flag, revision interface{}) *gomock.Call

SetInstanceHealthStatus indicates an expected call of SetInstanceHealthStatus.

func (*MockStoreMockRecorder) SetL5Extend

func (mr *MockStoreMockRecorder) SetL5Extend(serviceID, meta interface{}) *gomock.Call

SetL5Extend indicates an expected call of SetL5Extend.

func (*MockStoreMockRecorder) StartTx

func (mr *MockStoreMockRecorder) StartTx() *gomock.Call

StartTx indicates an expected call of StartTx.

func (*MockStoreMockRecorder) TagCircuitBreaker

func (mr *MockStoreMockRecorder) TagCircuitBreaker(circuitBreaker interface{}) *gomock.Call

TagCircuitBreaker indicates an expected call of TagCircuitBreaker.

func (*MockStoreMockRecorder) UnbindCircuitBreaker

func (mr *MockStoreMockRecorder) UnbindCircuitBreaker(serviceID, ruleID, ruleVersion interface{}) *gomock.Call

UnbindCircuitBreaker indicates an expected call of UnbindCircuitBreaker.

func (*MockStoreMockRecorder) UpdateCircuitBreaker

func (mr *MockStoreMockRecorder) UpdateCircuitBreaker(circuitBraker interface{}) *gomock.Call

UpdateCircuitBreaker indicates an expected call of UpdateCircuitBreaker.

func (*MockStoreMockRecorder) UpdateConfigFile

func (mr *MockStoreMockRecorder) UpdateConfigFile(tx, file interface{}) *gomock.Call

UpdateConfigFile indicates an expected call of UpdateConfigFile.

func (*MockStoreMockRecorder) UpdateConfigFileGroup

func (mr *MockStoreMockRecorder) UpdateConfigFileGroup(fileGroup interface{}) *gomock.Call

UpdateConfigFileGroup indicates an expected call of UpdateConfigFileGroup.

func (*MockStoreMockRecorder) UpdateConfigFileRelease

func (mr *MockStoreMockRecorder) UpdateConfigFileRelease(tx, fileRelease interface{}) *gomock.Call

UpdateConfigFileRelease indicates an expected call of UpdateConfigFileRelease.

func (*MockStoreMockRecorder) UpdateGroup

func (mr *MockStoreMockRecorder) UpdateGroup(group interface{}) *gomock.Call

UpdateGroup indicates an expected call of UpdateGroup.

func (*MockStoreMockRecorder) UpdateInstance

func (mr *MockStoreMockRecorder) UpdateInstance(instance interface{}) *gomock.Call

UpdateInstance indicates an expected call of UpdateInstance.

func (*MockStoreMockRecorder) UpdateNamespace

func (mr *MockStoreMockRecorder) UpdateNamespace(namespace interface{}) *gomock.Call

UpdateNamespace indicates an expected call of UpdateNamespace.

func (*MockStoreMockRecorder) UpdateNamespaceToken

func (mr *MockStoreMockRecorder) UpdateNamespaceToken(name, token interface{}) *gomock.Call

UpdateNamespaceToken indicates an expected call of UpdateNamespaceToken.

func (*MockStoreMockRecorder) UpdateRateLimit

func (mr *MockStoreMockRecorder) UpdateRateLimit(limiting interface{}) *gomock.Call

UpdateRateLimit indicates an expected call of UpdateRateLimit.

func (*MockStoreMockRecorder) UpdateRoutingConfig

func (mr *MockStoreMockRecorder) UpdateRoutingConfig(conf interface{}) *gomock.Call

UpdateRoutingConfig indicates an expected call of UpdateRoutingConfig.

func (*MockStoreMockRecorder) UpdateRoutingConfigV2

func (mr *MockStoreMockRecorder) UpdateRoutingConfigV2(conf interface{}) *gomock.Call

UpdateRoutingConfigV2 indicates an expected call of UpdateRoutingConfigV2.

func (*MockStoreMockRecorder) UpdateRoutingConfigV2Tx

func (mr *MockStoreMockRecorder) UpdateRoutingConfigV2Tx(tx, conf interface{}) *gomock.Call

UpdateRoutingConfigV2Tx indicates an expected call of UpdateRoutingConfigV2Tx.

func (*MockStoreMockRecorder) UpdateService

func (mr *MockStoreMockRecorder) UpdateService(service, needUpdateOwner interface{}) *gomock.Call

UpdateService indicates an expected call of UpdateService.

func (*MockStoreMockRecorder) UpdateServiceAlias

func (mr *MockStoreMockRecorder) UpdateServiceAlias(alias, needUpdateOwner interface{}) *gomock.Call

UpdateServiceAlias indicates an expected call of UpdateServiceAlias.

func (*MockStoreMockRecorder) UpdateServiceToken

func (mr *MockStoreMockRecorder) UpdateServiceToken(serviceID, token, revision interface{}) *gomock.Call

UpdateServiceToken indicates an expected call of UpdateServiceToken.

func (*MockStoreMockRecorder) UpdateStrategy

func (mr *MockStoreMockRecorder) UpdateStrategy(strategy interface{}) *gomock.Call

UpdateStrategy indicates an expected call of UpdateStrategy.

func (*MockStoreMockRecorder) UpdateUser

func (mr *MockStoreMockRecorder) UpdateUser(user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockToolStore

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

MockToolStore is a mock of ToolStore interface.

func NewMockToolStore

func NewMockToolStore(ctrl *gomock.Controller) *MockToolStore

NewMockToolStore creates a new mock instance.

func (*MockToolStore) EXPECT

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

func (*MockToolStore) GetUnixSecond

func (m *MockToolStore) GetUnixSecond() (int64, error)

GetUnixSecond mocks base method.

type MockToolStoreMockRecorder

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

MockToolStoreMockRecorder is the mock recorder for MockToolStore.

func (*MockToolStoreMockRecorder) GetUnixSecond

func (mr *MockToolStoreMockRecorder) GetUnixSecond() *gomock.Call

GetUnixSecond indicates an expected call of GetUnixSecond.

type MockTransaction

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

MockTransaction is a mock of Transaction interface.

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) DeleteNamespace

func (m *MockTransaction) DeleteNamespace(name string) error

DeleteNamespace mocks base method.

func (*MockTransaction) EXPECT

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

func (*MockTransaction) LockBootstrap

func (m *MockTransaction) LockBootstrap(key, server string) error

LockBootstrap mocks base method.

func (*MockTransaction) LockNamespace

func (m *MockTransaction) LockNamespace(name string) (*model.Namespace, error)

LockNamespace mocks base method.

func (*MockTransaction) LockService

func (m *MockTransaction) LockService(name, namespace string) (*model.Service, error)

LockService mocks base method.

func (*MockTransaction) RLockService

func (m *MockTransaction) RLockService(name, namespace string) (*model.Service, error)

RLockService mocks base method.

type MockTransactionMockRecorder

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

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) DeleteNamespace

func (mr *MockTransactionMockRecorder) DeleteNamespace(name interface{}) *gomock.Call

DeleteNamespace indicates an expected call of DeleteNamespace.

func (*MockTransactionMockRecorder) LockBootstrap

func (mr *MockTransactionMockRecorder) LockBootstrap(key, server interface{}) *gomock.Call

LockBootstrap indicates an expected call of LockBootstrap.

func (*MockTransactionMockRecorder) LockNamespace

func (mr *MockTransactionMockRecorder) LockNamespace(name interface{}) *gomock.Call

LockNamespace indicates an expected call of LockNamespace.

func (*MockTransactionMockRecorder) LockService

func (mr *MockTransactionMockRecorder) LockService(name, namespace interface{}) *gomock.Call

LockService indicates an expected call of LockService.

func (*MockTransactionMockRecorder) RLockService

func (mr *MockTransactionMockRecorder) RLockService(name, namespace interface{}) *gomock.Call

RLockService indicates an expected call of RLockService.

type MockTx

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

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) GetDelegateTx

func (m *MockTx) GetDelegateTx() interface{}

GetDelegateTx mocks base method.

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method.

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) GetDelegateTx

func (mr *MockTxMockRecorder) GetDelegateTx() *gomock.Call

GetDelegateTx indicates an expected call of GetDelegateTx.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

Jump to

Keyboard shortcuts

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