Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDataStore
- func (m *MockDataStore) Connect(arg0 datalayer.DBConfig) (datalayer.DataStore, error)
- func (m *MockDataStore) CreateCollection(arg0 context.Context, arg1 string, arg2, arg3 map[string]interface{}) error
- func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
- func (m *MockDataStore) GetCollections(arg0 context.Context) ([]datalayer.CollectionVM, error)
- func (m *MockDataStore) GetItem(arg0 context.Context, arg1, arg2 string) (map[string]interface{}, error)
- func (m *MockDataStore) GetItems(arg0 context.Context, arg1 string, arg2 datalayer.QueryMeta) ([]map[string]interface{}, datalayer.ItemsResponseInfo, error)
- func (m *MockDataStore) GetSchema(arg0 context.Context, arg1 string) (map[string]interface{}, error)
- func (m *MockDataStore) SaveItem(arg0 context.Context, arg1, arg2 string, arg3 map[string]interface{}) error
- type MockDataStoreMockRecorder
- func (mr *MockDataStoreMockRecorder) Connect(arg0 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) CreateCollection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetCollections(arg0 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetItem(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetItems(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) GetSchema(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDataStoreMockRecorder) SaveItem(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataStore ¶
type MockDataStore struct {
// contains filtered or unexported fields
}
MockDataStore is a mock of DataStore interface
func NewMockDataStore ¶
func NewMockDataStore(ctrl *gomock.Controller) *MockDataStore
NewMockDataStore creates a new mock instance
func (*MockDataStore) CreateCollection ¶
func (m *MockDataStore) CreateCollection(arg0 context.Context, arg1 string, arg2, arg3 map[string]interface{}) error
CreateCollection mocks base method
func (*MockDataStore) EXPECT ¶
func (m *MockDataStore) EXPECT() *MockDataStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDataStore) GetCollections ¶
func (m *MockDataStore) GetCollections(arg0 context.Context) ([]datalayer.CollectionVM, error)
GetCollections mocks base method
func (*MockDataStore) GetItem ¶
func (m *MockDataStore) GetItem(arg0 context.Context, arg1, arg2 string) (map[string]interface{}, error)
GetItem mocks base method
func (*MockDataStore) GetItems ¶
func (m *MockDataStore) GetItems(arg0 context.Context, arg1 string, arg2 datalayer.QueryMeta) ([]map[string]interface{}, datalayer.ItemsResponseInfo, error)
GetItems mocks base method
type MockDataStoreMockRecorder ¶
type MockDataStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDataStoreMockRecorder is the mock recorder for MockDataStore
func (*MockDataStoreMockRecorder) Connect ¶
func (mr *MockDataStoreMockRecorder) Connect(arg0 interface{}) *gomock.Call
Connect indicates an expected call of Connect
func (*MockDataStoreMockRecorder) CreateCollection ¶
func (mr *MockDataStoreMockRecorder) CreateCollection(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CreateCollection indicates an expected call of CreateCollection
func (*MockDataStoreMockRecorder) GetCollections ¶
func (mr *MockDataStoreMockRecorder) GetCollections(arg0 interface{}) *gomock.Call
GetCollections indicates an expected call of GetCollections
func (*MockDataStoreMockRecorder) GetItem ¶
func (mr *MockDataStoreMockRecorder) GetItem(arg0, arg1, arg2 interface{}) *gomock.Call
GetItem indicates an expected call of GetItem
func (*MockDataStoreMockRecorder) GetItems ¶
func (mr *MockDataStoreMockRecorder) GetItems(arg0, arg1, arg2 interface{}) *gomock.Call
GetItems indicates an expected call of GetItems
func (*MockDataStoreMockRecorder) GetSchema ¶
func (mr *MockDataStoreMockRecorder) GetSchema(arg0, arg1 interface{}) *gomock.Call
GetSchema indicates an expected call of GetSchema
func (*MockDataStoreMockRecorder) SaveItem ¶
func (mr *MockDataStoreMockRecorder) SaveItem(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SaveItem indicates an expected call of SaveItem