2020-10-21 09:56:03 +02:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-01-26 23:13:46 +01:00
|
|
|
// Source: github.com/mattermost/focalboard/server/services/store (interfaces: Store)
|
2020-10-21 09:56:03 +02:00
|
|
|
|
|
|
|
// Package mockstore is a generated GoMock package.
|
|
|
|
package mockstore
|
|
|
|
|
|
|
|
import (
|
2021-03-26 19:01:54 +01:00
|
|
|
reflect "reflect"
|
|
|
|
|
2020-10-21 09:56:03 +02:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2021-01-26 23:13:46 +01:00
|
|
|
model "github.com/mattermost/focalboard/server/model"
|
2021-03-26 19:01:54 +01:00
|
|
|
store "github.com/mattermost/focalboard/server/services/store"
|
2020-10-21 09:56:03 +02:00
|
|
|
)
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// MockStore is a mock of Store interface.
|
2020-10-21 09:56:03 +02:00
|
|
|
type MockStore struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockStoreMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// MockStoreMockRecorder is the mock recorder for MockStore.
|
2020-10-21 09:56:03 +02:00
|
|
|
type MockStoreMockRecorder struct {
|
|
|
|
mock *MockStore
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// NewMockStore creates a new mock instance.
|
2020-10-21 09:56:03 +02:00
|
|
|
func NewMockStore(ctrl *gomock.Controller) *MockStore {
|
|
|
|
mock := &MockStore{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStoreMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-10-21 09:56:03 +02:00
|
|
|
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CleanUpSessions mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) CleanUpSessions(expireTime int64) error {
|
2021-01-11 15:33:34 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "CleanUpSessions", expireTime)
|
2021-01-11 15:33:34 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CleanUpSessions indicates an expected call of CleanUpSessions.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) CleanUpSessions(expireTime interface{}) *gomock.Call {
|
2021-01-11 15:33:34 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CleanUpSessions", reflect.TypeOf((*MockStore)(nil).CleanUpSessions), expireTime)
|
2021-01-11 15:33:34 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CreateSession mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) CreateSession(session *model.Session) error {
|
2020-12-04 16:04:28 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "CreateSession", session)
|
2020-12-04 16:04:28 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CreateSession indicates an expected call of CreateSession.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) CreateSession(session interface{}) *gomock.Call {
|
2020-12-04 16:04:28 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateSession", reflect.TypeOf((*MockStore)(nil).CreateSession), session)
|
2020-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CreateUser mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) CreateUser(user *model.User) error {
|
2020-11-17 15:43:56 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "CreateUser", user)
|
2020-11-17 15:43:56 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// CreateUser indicates an expected call of CreateUser.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) CreateUser(user interface{}) *gomock.Call {
|
2020-11-17 15:43:56 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateUser", reflect.TypeOf((*MockStore)(nil).CreateUser), user)
|
2020-11-17 15:43:56 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// DeleteBlock mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) DeleteBlock(c store.Container, blockID, modifiedBy string) error {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "DeleteBlock", c, blockID, modifiedBy)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// DeleteBlock indicates an expected call of DeleteBlock.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) DeleteBlock(c, blockID, modifiedBy interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBlock", reflect.TypeOf((*MockStore)(nil).DeleteBlock), c, blockID, modifiedBy)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// DeleteSession mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) DeleteSession(sessionId string) error {
|
2020-12-04 16:04:28 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "DeleteSession", sessionId)
|
2020-12-04 16:04:28 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// DeleteSession indicates an expected call of DeleteSession.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) DeleteSession(sessionId interface{}) *gomock.Call {
|
2020-12-04 16:04:28 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteSession", reflect.TypeOf((*MockStore)(nil).DeleteSession), sessionId)
|
2020-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetActiveUserCount mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetActiveUserCount(updatedSecondsAgo int64) (int, error) {
|
2021-01-27 19:01:24 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetActiveUserCount", updatedSecondsAgo)
|
2021-01-27 19:01:24 +01:00
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetActiveUserCount indicates an expected call of GetActiveUserCount.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetActiveUserCount(updatedSecondsAgo interface{}) *gomock.Call {
|
2021-01-27 19:01:24 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActiveUserCount", reflect.TypeOf((*MockStore)(nil).GetActiveUserCount), updatedSecondsAgo)
|
2021-01-27 19:01:24 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetAllBlocks mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetAllBlocks(c store.Container) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetAllBlocks", c)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetAllBlocks indicates an expected call of GetAllBlocks.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetAllBlocks(c interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAllBlocks", reflect.TypeOf((*MockStore)(nil).GetAllBlocks), c)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-06-04 16:38:49 +02:00
|
|
|
// GetBlockCountsByType mocks base method.
|
|
|
|
func (m *MockStore) GetBlockCountsByType() (map[string]int64, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetBlockCountsByType")
|
|
|
|
ret0, _ := ret[0].(map[string]int64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetBlockCountsByType indicates an expected call of GetBlockCountsByType.
|
|
|
|
func (mr *MockStoreMockRecorder) GetBlockCountsByType() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlockCountsByType", reflect.TypeOf((*MockStore)(nil).GetBlockCountsByType))
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithParent mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetBlocksWithParent(c store.Container, parentID string) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetBlocksWithParent", c, parentID)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithParent indicates an expected call of GetBlocksWithParent.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetBlocksWithParent(c, parentID interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlocksWithParent", reflect.TypeOf((*MockStore)(nil).GetBlocksWithParent), c, parentID)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithParentAndType mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetBlocksWithParentAndType(c store.Container, parentID, blockType string) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetBlocksWithParentAndType", c, parentID, blockType)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithParentAndType indicates an expected call of GetBlocksWithParentAndType.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetBlocksWithParentAndType(c, parentID, blockType interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlocksWithParentAndType", reflect.TypeOf((*MockStore)(nil).GetBlocksWithParentAndType), c, parentID, blockType)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-05-13 23:04:49 +02:00
|
|
|
// GetBlocksWithRootID mocks base method.
|
|
|
|
func (m *MockStore) GetBlocksWithRootID(arg0 store.Container, arg1 string) ([]model.Block, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetBlocksWithRootID", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetBlocksWithRootID indicates an expected call of GetBlocksWithRootID.
|
|
|
|
func (mr *MockStoreMockRecorder) GetBlocksWithRootID(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlocksWithRootID", reflect.TypeOf((*MockStore)(nil).GetBlocksWithRootID), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithType mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetBlocksWithType(c store.Container, blockType string) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetBlocksWithType", c, blockType)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetBlocksWithType indicates an expected call of GetBlocksWithType.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetBlocksWithType(c, blockType interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlocksWithType", reflect.TypeOf((*MockStore)(nil).GetBlocksWithType), c, blockType)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetParentID mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetParentID(c store.Container, blockID string) (string, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetParentID", c, blockID)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetParentID indicates an expected call of GetParentID.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetParentID(c, blockID interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParentID", reflect.TypeOf((*MockStore)(nil).GetParentID), c, blockID)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetRegisteredUserCount mocks base method.
|
2021-01-27 18:22:33 +01:00
|
|
|
func (m *MockStore) GetRegisteredUserCount() (int, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetRegisteredUserCount")
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetRegisteredUserCount indicates an expected call of GetRegisteredUserCount.
|
2021-01-27 18:22:33 +01:00
|
|
|
func (mr *MockStoreMockRecorder) GetRegisteredUserCount() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRegisteredUserCount", reflect.TypeOf((*MockStore)(nil).GetRegisteredUserCount))
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetRootID mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetRootID(c store.Container, blockID string) (string, error) {
|
2021-01-13 22:01:34 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetRootID", c, blockID)
|
2021-01-13 22:01:34 +01:00
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetRootID indicates an expected call of GetRootID.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetRootID(c, blockID interface{}) *gomock.Call {
|
2021-01-13 22:01:34 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRootID", reflect.TypeOf((*MockStore)(nil).GetRootID), c, blockID)
|
2021-01-13 22:01:34 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSession mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetSession(token string, expireTime int64) (*model.Session, error) {
|
2020-12-04 16:04:28 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetSession", token, expireTime)
|
2020-12-04 16:04:28 +01:00
|
|
|
ret0, _ := ret[0].(*model.Session)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSession indicates an expected call of GetSession.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetSession(token, expireTime interface{}) *gomock.Call {
|
2020-12-04 16:04:28 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSession", reflect.TypeOf((*MockStore)(nil).GetSession), token, expireTime)
|
2020-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSharing mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetSharing(c store.Container, rootID string) (*model.Sharing, error) {
|
2021-01-13 00:35:30 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetSharing", c, rootID)
|
2021-01-13 00:35:30 +01:00
|
|
|
ret0, _ := ret[0].(*model.Sharing)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSharing indicates an expected call of GetSharing.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetSharing(c, rootID interface{}) *gomock.Call {
|
2021-01-13 00:35:30 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSharing", reflect.TypeOf((*MockStore)(nil).GetSharing), c, rootID)
|
2021-01-13 00:35:30 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSubTree2 mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetSubTree2(c store.Container, blockID string) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetSubTree2", c, blockID)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSubTree2 indicates an expected call of GetSubTree2.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetSubTree2(c, blockID interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubTree2", reflect.TypeOf((*MockStore)(nil).GetSubTree2), c, blockID)
|
2020-11-12 19:48:08 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSubTree3 mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetSubTree3(c store.Container, blockID string) ([]model.Block, error) {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetSubTree3", c, blockID)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].([]model.Block)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSubTree3 indicates an expected call of GetSubTree3.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetSubTree3(c, blockID interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubTree3", reflect.TypeOf((*MockStore)(nil).GetSubTree3), c, blockID)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSystemSettings mocks base method.
|
2020-10-21 09:56:03 +02:00
|
|
|
func (m *MockStore) GetSystemSettings() (map[string]string, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetSystemSettings")
|
|
|
|
ret0, _ := ret[0].(map[string]string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetSystemSettings indicates an expected call of GetSystemSettings.
|
2020-10-21 09:56:03 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetSystemSettings() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemSettings", reflect.TypeOf((*MockStore)(nil).GetSystemSettings))
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserByEmail mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetUserByEmail(email string) (*model.User, error) {
|
2020-11-17 15:43:56 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetUserByEmail", email)
|
2020-11-17 15:43:56 +01:00
|
|
|
ret0, _ := ret[0].(*model.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserByEmail indicates an expected call of GetUserByEmail.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetUserByEmail(email interface{}) *gomock.Call {
|
2020-11-17 15:43:56 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByEmail", reflect.TypeOf((*MockStore)(nil).GetUserByEmail), email)
|
2020-11-17 15:43:56 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserById mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetUserById(userID string) (*model.User, error) {
|
2020-11-17 15:43:56 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetUserById", userID)
|
2020-11-17 15:43:56 +01:00
|
|
|
ret0, _ := ret[0].(*model.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserById indicates an expected call of GetUserById.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetUserById(userID interface{}) *gomock.Call {
|
2020-11-17 15:43:56 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserById", reflect.TypeOf((*MockStore)(nil).GetUserById), userID)
|
2020-11-17 15:43:56 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserByUsername mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetUserByUsername(username string) (*model.User, error) {
|
2020-11-17 15:43:56 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetUserByUsername", username)
|
2020-11-17 15:43:56 +01:00
|
|
|
ret0, _ := ret[0].(*model.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetUserByUsername indicates an expected call of GetUserByUsername.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetUserByUsername(username interface{}) *gomock.Call {
|
2020-11-17 15:43:56 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUserByUsername", reflect.TypeOf((*MockStore)(nil).GetUserByUsername), username)
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetUsersByWorkspace mocks base method.
|
|
|
|
func (m *MockStore) GetUsersByWorkspace(workspaceID string) ([]*model.User, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetUsersByWorkspace", workspaceID)
|
|
|
|
ret0, _ := ret[0].([]*model.User)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetUsersByWorkspace indicates an expected call of GetUsersByWorkspace.
|
|
|
|
func (mr *MockStoreMockRecorder) GetUsersByWorkspace(workspaceID interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetUsersByWorkspace", reflect.TypeOf((*MockStore)(nil).GetUsersByWorkspace), workspaceID)
|
2020-11-17 15:43:56 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetWorkspace mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) GetWorkspace(ID string) (*model.Workspace, error) {
|
2021-01-14 01:56:01 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "GetWorkspace", ID)
|
2021-01-14 01:56:01 +01:00
|
|
|
ret0, _ := ret[0].(*model.Workspace)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// GetWorkspace indicates an expected call of GetWorkspace.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) GetWorkspace(ID interface{}) *gomock.Call {
|
2021-01-14 01:56:01 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkspace", reflect.TypeOf((*MockStore)(nil).GetWorkspace), ID)
|
2021-01-14 01:56:01 +01:00
|
|
|
}
|
|
|
|
|
2021-06-04 16:38:49 +02:00
|
|
|
// GetWorkspaceCount mocks base method.
|
|
|
|
func (m *MockStore) GetWorkspaceCount() (int64, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetWorkspaceCount")
|
|
|
|
ret0, _ := ret[0].(int64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetWorkspaceCount indicates an expected call of GetWorkspaceCount.
|
|
|
|
func (mr *MockStoreMockRecorder) GetWorkspaceCount() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkspaceCount", reflect.TypeOf((*MockStore)(nil).GetWorkspaceCount))
|
|
|
|
}
|
|
|
|
|
2021-05-24 19:06:11 +02:00
|
|
|
// HasWorkspaceAccess mocks base method.
|
|
|
|
func (m *MockStore) HasWorkspaceAccess(arg0, arg1 string) (bool, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "HasWorkspaceAccess", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// HasWorkspaceAccess indicates an expected call of HasWorkspaceAccess.
|
|
|
|
func (mr *MockStoreMockRecorder) HasWorkspaceAccess(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasWorkspaceAccess", reflect.TypeOf((*MockStore)(nil).HasWorkspaceAccess), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// InsertBlock mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) InsertBlock(c store.Container, block model.Block) error {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "InsertBlock", c, block)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// InsertBlock indicates an expected call of InsertBlock.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) InsertBlock(c, block interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InsertBlock", reflect.TypeOf((*MockStore)(nil).InsertBlock), c, block)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// RefreshSession mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) RefreshSession(session *model.Session) error {
|
2020-12-04 16:04:28 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "RefreshSession", session)
|
2020-12-04 16:04:28 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// RefreshSession indicates an expected call of RefreshSession.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) RefreshSession(session interface{}) *gomock.Call {
|
2020-12-04 16:04:28 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RefreshSession", reflect.TypeOf((*MockStore)(nil).RefreshSession), session)
|
2020-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// SetSystemSetting mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) SetSystemSetting(key, value string) error {
|
2020-10-21 09:56:03 +02:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "SetSystemSetting", key, value)
|
2020-10-21 09:56:03 +02:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// SetSystemSetting indicates an expected call of SetSystemSetting.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) SetSystemSetting(key, value interface{}) *gomock.Call {
|
2020-10-21 09:56:03 +02:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSystemSetting", reflect.TypeOf((*MockStore)(nil).SetSystemSetting), key, value)
|
2020-10-21 09:56:03 +02:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// Shutdown mocks base method.
|
2020-10-21 09:56:03 +02:00
|
|
|
func (m *MockStore) Shutdown() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Shutdown")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// Shutdown indicates an expected call of Shutdown.
|
2020-10-21 09:56:03 +02:00
|
|
|
func (mr *MockStoreMockRecorder) Shutdown() *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockStore)(nil).Shutdown))
|
|
|
|
}
|
2020-11-17 15:43:56 +01:00
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateSession mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpdateSession(session *model.Session) error {
|
2020-12-04 16:04:28 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpdateSession", session)
|
2020-12-04 16:04:28 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateSession indicates an expected call of UpdateSession.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateSession(session interface{}) *gomock.Call {
|
2020-12-04 16:04:28 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSession", reflect.TypeOf((*MockStore)(nil).UpdateSession), session)
|
2020-12-04 16:04:28 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUser mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpdateUser(user *model.User) error {
|
2020-11-17 15:43:56 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpdateUser", user)
|
2020-11-17 15:43:56 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUser indicates an expected call of UpdateUser.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateUser(user interface{}) *gomock.Call {
|
2020-11-17 15:43:56 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUser", reflect.TypeOf((*MockStore)(nil).UpdateUser), user)
|
2020-11-17 15:43:56 +01:00
|
|
|
}
|
2021-01-13 00:35:30 +01:00
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUserPassword mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpdateUserPassword(username, password string) error {
|
2021-01-20 22:52:54 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpdateUserPassword", username, password)
|
2021-01-20 22:52:54 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUserPassword indicates an expected call of UpdateUserPassword.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateUserPassword(username, password interface{}) *gomock.Call {
|
2021-01-20 22:52:54 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPassword", reflect.TypeOf((*MockStore)(nil).UpdateUserPassword), username, password)
|
2021-01-20 22:52:54 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUserPasswordByID mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpdateUserPasswordByID(userID, password string) error {
|
2021-01-21 19:25:35 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpdateUserPasswordByID", userID, password)
|
2021-01-21 19:25:35 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpdateUserPasswordByID indicates an expected call of UpdateUserPasswordByID.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpdateUserPasswordByID(userID, password interface{}) *gomock.Call {
|
2021-01-21 19:25:35 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUserPasswordByID", reflect.TypeOf((*MockStore)(nil).UpdateUserPasswordByID), userID, password)
|
2021-01-21 19:25:35 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertSharing mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpsertSharing(c store.Container, sharing model.Sharing) error {
|
2021-01-13 00:35:30 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpsertSharing", c, sharing)
|
2021-01-13 00:35:30 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertSharing indicates an expected call of UpsertSharing.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpsertSharing(c, sharing interface{}) *gomock.Call {
|
2021-01-13 00:35:30 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertSharing", reflect.TypeOf((*MockStore)(nil).UpsertSharing), c, sharing)
|
2021-01-13 00:35:30 +01:00
|
|
|
}
|
2021-01-14 01:56:01 +01:00
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertWorkspaceSettings mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpsertWorkspaceSettings(workspace model.Workspace) error {
|
2021-01-14 01:56:01 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpsertWorkspaceSettings", workspace)
|
2021-01-14 01:56:01 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertWorkspaceSettings indicates an expected call of UpsertWorkspaceSettings.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpsertWorkspaceSettings(workspace interface{}) *gomock.Call {
|
2021-01-14 01:56:01 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertWorkspaceSettings", reflect.TypeOf((*MockStore)(nil).UpsertWorkspaceSettings), workspace)
|
2021-01-14 01:56:01 +01:00
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertWorkspaceSignupToken mocks base method.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (m *MockStore) UpsertWorkspaceSignupToken(workspace model.Workspace) error {
|
2021-01-14 01:56:01 +01:00
|
|
|
m.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
ret := m.ctrl.Call(m, "UpsertWorkspaceSignupToken", workspace)
|
2021-01-14 01:56:01 +01:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-03-26 19:01:54 +01:00
|
|
|
// UpsertWorkspaceSignupToken indicates an expected call of UpsertWorkspaceSignupToken.
|
2021-06-04 15:23:15 +02:00
|
|
|
func (mr *MockStoreMockRecorder) UpsertWorkspaceSignupToken(workspace interface{}) *gomock.Call {
|
2021-01-14 01:56:01 +01:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-06-04 15:23:15 +02:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpsertWorkspaceSignupToken", reflect.TypeOf((*MockStore)(nil).UpsertWorkspaceSignupToken), workspace)
|
2021-01-14 01:56:01 +01:00
|
|
|
}
|