Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClusterDao
- func (m *MockClusterDao) CreateConfigurations(appId string, configuration store.Configuration) (store.Configuration, error)
- func (m *MockClusterDao) CreateEntity(info cluster_entity.EntityInfo) error
- func (m *MockClusterDao) DeleteConfiguration(appId string) (store.Configuration, error)
- func (m *MockClusterDao) EXPECT() *MockClusterDaoMockRecorder
- func (m *MockClusterDao) GetAllEntitiesInfo() []cluster_entity.EntityInfo
- func (m *MockClusterDao) GetAllEntitiesInfoOfNode(nodeName string) []cluster_entity.EntityInfo
- func (m *MockClusterDao) GetApp(appName string) (store.App, error)
- func (m *MockClusterDao) GetApps(appId string) ([]store.App, error)
- func (m *MockClusterDao) GetConfiguration(appId string) (store.Configuration, error)
- func (m *MockClusterDao) GetDCAwareApp(appName string) (store.App, error)
- func (m *MockClusterDao) GetEntityInfo(id string) cluster_entity.EntityInfo
- func (m *MockClusterDao) InsertApp(app store.App) error
- func (m *MockClusterDao) InvalidateSingleAppCache(appName string)
- func (m *MockClusterDao) UpdateAppActiveStatus(appName string, activeStatus bool) error
- func (m *MockClusterDao) UpdateConfiguration(appId string, configuration store.Configuration) (store.Configuration, error)
- func (m *MockClusterDao) UpdateEntityStatus(id, nodeName string, status int) error
- type MockClusterDaoMockRecorder
- func (mr *MockClusterDaoMockRecorder) CreateConfigurations(appId, configuration interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) CreateEntity(info interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) DeleteConfiguration(appId interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetAllEntitiesInfo() *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetAllEntitiesInfoOfNode(nodeName interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetApp(appName interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetApps(appId interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetConfiguration(appId interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetDCAwareApp(appName interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) GetEntityInfo(id interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) InsertApp(app interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) InvalidateSingleAppCache(appName interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) UpdateAppActiveStatus(appName, activeStatus interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) UpdateConfiguration(appId, configuration interface{}) *gomock.Call
- func (mr *MockClusterDaoMockRecorder) UpdateEntityStatus(id, nodeName, status interface{}) *gomock.Call
- type MockIterInterface
- type MockIterInterfaceMockRecorder
- type MockQueryInterface
- func (m *MockQueryInterface) Bind(arg0 ...interface{}) db_wrapper.QueryInterface
- func (m *MockQueryInterface) Consistency(c gocql.Consistency) db_wrapper.QueryInterface
- func (m *MockQueryInterface) EXPECT() *MockQueryInterfaceMockRecorder
- func (m *MockQueryInterface) Exec() error
- func (m *MockQueryInterface) Iter() db_wrapper.IterInterface
- func (m_2 *MockQueryInterface) MapScan(m map[string]interface{}) error
- func (m *MockQueryInterface) PageSize(n int) db_wrapper.QueryInterface
- func (m *MockQueryInterface) PageState(state []byte) db_wrapper.QueryInterface
- func (m *MockQueryInterface) RetryPolicy(policy gocql.RetryPolicy) db_wrapper.QueryInterface
- func (m *MockQueryInterface) Scan(arg0 ...interface{}) error
- type MockQueryInterfaceMockRecorder
- func (mr *MockQueryInterfaceMockRecorder) Bind(arg0 ...interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) Consistency(c interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) Exec() *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) Iter() *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) MapScan(m interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) PageSize(n interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) PageState(state interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) RetryPolicy(policy interface{}) *gomock.Call
- func (mr *MockQueryInterfaceMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- type MockSessionInterface
- type MockSessionInterfaceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClusterDao ¶
type MockClusterDao struct {
// contains filtered or unexported fields
}
MockClusterDao is a mock of ClusterDao interface.
func NewMockClusterDao ¶
func NewMockClusterDao(ctrl *gomock.Controller) *MockClusterDao
NewMockClusterDao creates a new mock instance.
func (*MockClusterDao) CreateConfigurations ¶
func (m *MockClusterDao) CreateConfigurations(appId string, configuration store.Configuration) (store.Configuration, error)
CreateConfigurations mocks base method.
func (*MockClusterDao) CreateEntity ¶
func (m *MockClusterDao) CreateEntity(info cluster_entity.EntityInfo) error
CreateEntity mocks base method.
func (*MockClusterDao) DeleteConfiguration ¶
func (m *MockClusterDao) DeleteConfiguration(appId string) (store.Configuration, error)
DeleteConfiguration mocks base method.
func (*MockClusterDao) EXPECT ¶
func (m *MockClusterDao) EXPECT() *MockClusterDaoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClusterDao) GetAllEntitiesInfo ¶
func (m *MockClusterDao) GetAllEntitiesInfo() []cluster_entity.EntityInfo
GetAllEntitiesInfo mocks base method.
func (*MockClusterDao) GetAllEntitiesInfoOfNode ¶
func (m *MockClusterDao) GetAllEntitiesInfoOfNode(nodeName string) []cluster_entity.EntityInfo
GetAllEntitiesInfoOfNode mocks base method.
func (*MockClusterDao) GetApp ¶
func (m *MockClusterDao) GetApp(appName string) (store.App, error)
GetApp mocks base method.
func (*MockClusterDao) GetApps ¶
func (m *MockClusterDao) GetApps(appId string) ([]store.App, error)
GetApps mocks base method.
func (*MockClusterDao) GetConfiguration ¶
func (m *MockClusterDao) GetConfiguration(appId string) (store.Configuration, error)
GetConfiguration mocks base method.
func (*MockClusterDao) GetDCAwareApp ¶
func (m *MockClusterDao) GetDCAwareApp(appName string) (store.App, error)
GetDCAwareApp mocks base method.
func (*MockClusterDao) GetEntityInfo ¶
func (m *MockClusterDao) GetEntityInfo(id string) cluster_entity.EntityInfo
GetEntityInfo mocks base method.
func (*MockClusterDao) InsertApp ¶
func (m *MockClusterDao) InsertApp(app store.App) error
InsertApp mocks base method.
func (*MockClusterDao) InvalidateSingleAppCache ¶
func (m *MockClusterDao) InvalidateSingleAppCache(appName string)
InvalidateSingleAppCache mocks base method.
func (*MockClusterDao) UpdateAppActiveStatus ¶
func (m *MockClusterDao) UpdateAppActiveStatus(appName string, activeStatus bool) error
UpdateAppActiveStatus mocks base method.
func (*MockClusterDao) UpdateConfiguration ¶
func (m *MockClusterDao) UpdateConfiguration(appId string, configuration store.Configuration) (store.Configuration, error)
UpdateConfiguration mocks base method.
func (*MockClusterDao) UpdateEntityStatus ¶
func (m *MockClusterDao) UpdateEntityStatus(id, nodeName string, status int) error
UpdateEntityStatus mocks base method.
type MockClusterDaoMockRecorder ¶
type MockClusterDaoMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterDaoMockRecorder is the mock recorder for MockClusterDao.
func (*MockClusterDaoMockRecorder) CreateConfigurations ¶
func (mr *MockClusterDaoMockRecorder) CreateConfigurations(appId, configuration interface{}) *gomock.Call
CreateConfigurations indicates an expected call of CreateConfigurations.
func (*MockClusterDaoMockRecorder) CreateEntity ¶
func (mr *MockClusterDaoMockRecorder) CreateEntity(info interface{}) *gomock.Call
CreateEntity indicates an expected call of CreateEntity.
func (*MockClusterDaoMockRecorder) DeleteConfiguration ¶
func (mr *MockClusterDaoMockRecorder) DeleteConfiguration(appId interface{}) *gomock.Call
DeleteConfiguration indicates an expected call of DeleteConfiguration.
func (*MockClusterDaoMockRecorder) GetAllEntitiesInfo ¶
func (mr *MockClusterDaoMockRecorder) GetAllEntitiesInfo() *gomock.Call
GetAllEntitiesInfo indicates an expected call of GetAllEntitiesInfo.
func (*MockClusterDaoMockRecorder) GetAllEntitiesInfoOfNode ¶
func (mr *MockClusterDaoMockRecorder) GetAllEntitiesInfoOfNode(nodeName interface{}) *gomock.Call
GetAllEntitiesInfoOfNode indicates an expected call of GetAllEntitiesInfoOfNode.
func (*MockClusterDaoMockRecorder) GetApp ¶
func (mr *MockClusterDaoMockRecorder) GetApp(appName interface{}) *gomock.Call
GetApp indicates an expected call of GetApp.
func (*MockClusterDaoMockRecorder) GetApps ¶
func (mr *MockClusterDaoMockRecorder) GetApps(appId interface{}) *gomock.Call
GetApps indicates an expected call of GetApps.
func (*MockClusterDaoMockRecorder) GetConfiguration ¶
func (mr *MockClusterDaoMockRecorder) GetConfiguration(appId interface{}) *gomock.Call
GetConfiguration indicates an expected call of GetConfiguration.
func (*MockClusterDaoMockRecorder) GetDCAwareApp ¶
func (mr *MockClusterDaoMockRecorder) GetDCAwareApp(appName interface{}) *gomock.Call
GetDCAwareApp indicates an expected call of GetDCAwareApp.
func (*MockClusterDaoMockRecorder) GetEntityInfo ¶
func (mr *MockClusterDaoMockRecorder) GetEntityInfo(id interface{}) *gomock.Call
GetEntityInfo indicates an expected call of GetEntityInfo.
func (*MockClusterDaoMockRecorder) InsertApp ¶
func (mr *MockClusterDaoMockRecorder) InsertApp(app interface{}) *gomock.Call
InsertApp indicates an expected call of InsertApp.
func (*MockClusterDaoMockRecorder) InvalidateSingleAppCache ¶
func (mr *MockClusterDaoMockRecorder) InvalidateSingleAppCache(appName interface{}) *gomock.Call
InvalidateSingleAppCache indicates an expected call of InvalidateSingleAppCache.
func (*MockClusterDaoMockRecorder) UpdateAppActiveStatus ¶
func (mr *MockClusterDaoMockRecorder) UpdateAppActiveStatus(appName, activeStatus interface{}) *gomock.Call
UpdateAppActiveStatus indicates an expected call of UpdateAppActiveStatus.
func (*MockClusterDaoMockRecorder) UpdateConfiguration ¶
func (mr *MockClusterDaoMockRecorder) UpdateConfiguration(appId, configuration interface{}) *gomock.Call
UpdateConfiguration indicates an expected call of UpdateConfiguration.
func (*MockClusterDaoMockRecorder) UpdateEntityStatus ¶
func (mr *MockClusterDaoMockRecorder) UpdateEntityStatus(id, nodeName, status interface{}) *gomock.Call
UpdateEntityStatus indicates an expected call of UpdateEntityStatus.
type MockIterInterface ¶
type MockIterInterface struct {
// contains filtered or unexported fields
}
MockIterInterface is a mock of IterInterface interface.
func NewMockIterInterface ¶
func NewMockIterInterface(ctrl *gomock.Controller) *MockIterInterface
NewMockIterInterface creates a new mock instance.
func (*MockIterInterface) Close ¶
func (m *MockIterInterface) Close() error
Close mocks base method.
func (*MockIterInterface) EXPECT ¶
func (m *MockIterInterface) EXPECT() *MockIterInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIterInterface) MapScan ¶
func (m_2 *MockIterInterface) MapScan(m map[string]interface{}) bool
MapScan mocks base method.
func (*MockIterInterface) PageState ¶
func (m *MockIterInterface) PageState() []byte
PageState mocks base method.
func (*MockIterInterface) Scan ¶
func (m *MockIterInterface) Scan(arg0 ...interface{}) bool
Scan mocks base method.
type MockIterInterfaceMockRecorder ¶
type MockIterInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockIterInterfaceMockRecorder is the mock recorder for MockIterInterface.
func (*MockIterInterfaceMockRecorder) Close ¶
func (mr *MockIterInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIterInterfaceMockRecorder) MapScan ¶
func (mr *MockIterInterfaceMockRecorder) MapScan(m interface{}) *gomock.Call
MapScan indicates an expected call of MapScan.
func (*MockIterInterfaceMockRecorder) PageState ¶
func (mr *MockIterInterfaceMockRecorder) PageState() *gomock.Call
PageState indicates an expected call of PageState.
func (*MockIterInterfaceMockRecorder) Scan ¶
func (mr *MockIterInterfaceMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockQueryInterface ¶
type MockQueryInterface struct {
// contains filtered or unexported fields
}
MockQueryInterface is a mock of QueryInterface interface.
func NewMockQueryInterface ¶
func NewMockQueryInterface(ctrl *gomock.Controller) *MockQueryInterface
NewMockQueryInterface creates a new mock instance.
func (*MockQueryInterface) Bind ¶
func (m *MockQueryInterface) Bind(arg0 ...interface{}) db_wrapper.QueryInterface
Bind mocks base method.
func (*MockQueryInterface) Consistency ¶
func (m *MockQueryInterface) Consistency(c gocql.Consistency) db_wrapper.QueryInterface
Consistency mocks base method.
func (*MockQueryInterface) EXPECT ¶
func (m *MockQueryInterface) EXPECT() *MockQueryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryInterface) Iter ¶
func (m *MockQueryInterface) Iter() db_wrapper.IterInterface
Iter mocks base method.
func (*MockQueryInterface) MapScan ¶
func (m_2 *MockQueryInterface) MapScan(m map[string]interface{}) error
MapScan mocks base method.
func (*MockQueryInterface) PageSize ¶
func (m *MockQueryInterface) PageSize(n int) db_wrapper.QueryInterface
PageSize mocks base method.
func (*MockQueryInterface) PageState ¶
func (m *MockQueryInterface) PageState(state []byte) db_wrapper.QueryInterface
PageState mocks base method.
func (*MockQueryInterface) RetryPolicy ¶
func (m *MockQueryInterface) RetryPolicy(policy gocql.RetryPolicy) db_wrapper.QueryInterface
RetryPolicy mocks base method.
func (*MockQueryInterface) Scan ¶
func (m *MockQueryInterface) Scan(arg0 ...interface{}) error
Scan mocks base method.
type MockQueryInterfaceMockRecorder ¶
type MockQueryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryInterfaceMockRecorder is the mock recorder for MockQueryInterface.
func (*MockQueryInterfaceMockRecorder) Bind ¶
func (mr *MockQueryInterfaceMockRecorder) Bind(arg0 ...interface{}) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockQueryInterfaceMockRecorder) Consistency ¶
func (mr *MockQueryInterfaceMockRecorder) Consistency(c interface{}) *gomock.Call
Consistency indicates an expected call of Consistency.
func (*MockQueryInterfaceMockRecorder) Exec ¶
func (mr *MockQueryInterfaceMockRecorder) Exec() *gomock.Call
Exec indicates an expected call of Exec.
func (*MockQueryInterfaceMockRecorder) Iter ¶
func (mr *MockQueryInterfaceMockRecorder) Iter() *gomock.Call
Iter indicates an expected call of Iter.
func (*MockQueryInterfaceMockRecorder) MapScan ¶
func (mr *MockQueryInterfaceMockRecorder) MapScan(m interface{}) *gomock.Call
MapScan indicates an expected call of MapScan.
func (*MockQueryInterfaceMockRecorder) PageSize ¶
func (mr *MockQueryInterfaceMockRecorder) PageSize(n interface{}) *gomock.Call
PageSize indicates an expected call of PageSize.
func (*MockQueryInterfaceMockRecorder) PageState ¶
func (mr *MockQueryInterfaceMockRecorder) PageState(state interface{}) *gomock.Call
PageState indicates an expected call of PageState.
func (*MockQueryInterfaceMockRecorder) RetryPolicy ¶
func (mr *MockQueryInterfaceMockRecorder) RetryPolicy(policy interface{}) *gomock.Call
RetryPolicy indicates an expected call of RetryPolicy.
func (*MockQueryInterfaceMockRecorder) Scan ¶
func (mr *MockQueryInterfaceMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
type MockSessionInterface ¶
type MockSessionInterface struct {
// contains filtered or unexported fields
}
MockSessionInterface is a mock of SessionInterface interface.
func NewMockSessionInterface ¶
func NewMockSessionInterface(ctrl *gomock.Controller) *MockSessionInterface
NewMockSessionInterface creates a new mock instance.
func (*MockSessionInterface) Close ¶
func (m *MockSessionInterface) Close()
Close mocks base method.
func (*MockSessionInterface) EXPECT ¶
func (m *MockSessionInterface) EXPECT() *MockSessionInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSessionInterface) ExecuteBatch ¶
func (m *MockSessionInterface) ExecuteBatch(batch *gocql.Batch) error
ExecuteBatch mocks base method.
func (*MockSessionInterface) Query ¶
func (m *MockSessionInterface) Query(arg0 string, arg1 ...interface{}) db_wrapper.QueryInterface
Query mocks base method.
type MockSessionInterfaceMockRecorder ¶
type MockSessionInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockSessionInterfaceMockRecorder is the mock recorder for MockSessionInterface.
func (*MockSessionInterfaceMockRecorder) Close ¶
func (mr *MockSessionInterfaceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSessionInterfaceMockRecorder) ExecuteBatch ¶
func (mr *MockSessionInterfaceMockRecorder) ExecuteBatch(batch interface{}) *gomock.Call
ExecuteBatch indicates an expected call of ExecuteBatch.
func (*MockSessionInterfaceMockRecorder) Query ¶
func (mr *MockSessionInterfaceMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Query indicates an expected call of Query.