Documentation ¶
Index ¶
- type MockConn
- func (_m *MockConn) AddRelation(_param0 string, _param1 string, _param2 string) error
- func (_m *MockConn) AssignRoles(_param0 []string, _param1 []string) error
- func (_m *MockConn) Close() error
- func (_m *MockConn) CreateAuth(_param0 *skydb.AuthInfo) error
- func (_m *MockConn) CreateCustomTokenInfo(_param0 *skydb.CustomTokenInfo) error
- func (_m *MockConn) CreateOAuthInfo(_param0 *skydb.OAuthInfo) error
- func (_m *MockConn) DeleteAuth(_param0 string) error
- func (_m *MockConn) DeleteCustomTokenInfo(_param0 string) error
- func (_m *MockConn) DeleteDevice(_param0 string) error
- func (_m *MockConn) DeleteDevicesByToken(_param0 string, _param1 time.Time) error
- func (_m *MockConn) DeleteEmptyDevicesByTime(_param0 time.Time) error
- func (_m *MockConn) DeleteOAuth(_param0 string, _param1 string) error
- func (_m *MockConn) EXPECT() *MockConnMockRecorder
- func (_m *MockConn) EnsureAuthRecordKeysExist(_param0 [][]string) error
- func (_m *MockConn) EnsureAuthRecordKeysIndexesMatch(_param0 [][]string) error
- func (_m *MockConn) GetAdminRoles() ([]string, error)
- func (_m *MockConn) GetAsset(_param0 string, _param1 *skydb.Asset) error
- func (_m *MockConn) GetAssets(_param0 []string) ([]skydb.Asset, error)
- func (_m *MockConn) GetAuth(_param0 string, _param1 *skydb.AuthInfo) error
- func (_m *MockConn) GetAuthByPrincipalID(_param0 string, _param1 *skydb.AuthInfo) error
- func (_m *MockConn) GetCustomTokenInfo(_param0 string, _param1 *skydb.CustomTokenInfo) error
- func (_m *MockConn) GetDefaultRoles() ([]string, error)
- func (_m *MockConn) GetDevice(_param0 string, _param1 *skydb.Device) error
- func (_m *MockConn) GetOAuthInfo(_param0 string, _param1 string, _param2 *skydb.OAuthInfo) error
- func (_m *MockConn) GetOAuthInfoByProviderAndUserID(_param0 string, _param1 string, _param2 *skydb.OAuthInfo) error
- func (_m *MockConn) GetPasswordHistory(_param0 string, _param1 int, _param2 int) ([]skydb.PasswordHistory, error)
- func (_m *MockConn) GetRecordAccess(_param0 string) (skydb.RecordACL, error)
- func (_m *MockConn) GetRecordDefaultAccess(_param0 string) (skydb.RecordACL, error)
- func (_m *MockConn) GetRecordFieldAccess() (skydb.FieldACL, error)
- func (_m *MockConn) GetRoles(_param0 []string) (map[string][]string, error)
- func (_m *MockConn) PrivateDB(_param0 string) skydb.Database
- func (_m *MockConn) PublicDB() skydb.Database
- func (_m *MockConn) QueryDevicesByUser(_param0 string) ([]skydb.Device, error)
- func (_m *MockConn) QueryDevicesByUserAndTopic(_param0 string, _param1 string) ([]skydb.Device, error)
- func (_m *MockConn) QueryRelation(_param0 string, _param1 string, _param2 string, _param3 skydb.QueryConfig) []skydb.AuthInfo
- func (_m *MockConn) QueryRelationCount(_param0 string, _param1 string, _param2 string) (uint64, error)
- func (_m *MockConn) RemovePasswordHistory(_param0 string, _param1 int, _param2 int) error
- func (_m *MockConn) RemoveRelation(_param0 string, _param1 string, _param2 string) error
- func (_m *MockConn) RevokeRoles(_param0 []string, _param1 []string) error
- func (_m *MockConn) SaveAsset(_param0 *skydb.Asset) error
- func (_m *MockConn) SaveDevice(_param0 *skydb.Device) error
- func (_m *MockConn) SetAdminRoles(_param0 []string) error
- func (_m *MockConn) SetDefaultRoles(_param0 []string) error
- func (_m *MockConn) SetRecordAccess(_param0 string, _param1 skydb.RecordACL) error
- func (_m *MockConn) SetRecordDefaultAccess(_param0 string, _param1 skydb.RecordACL) error
- func (_m *MockConn) SetRecordFieldAccess(_param0 skydb.FieldACL) error
- func (_m *MockConn) Subscribe(_param0 chan skydb.RecordEvent) error
- func (_m *MockConn) UnionDB() skydb.Database
- func (_m *MockConn) UpdateAuth(_param0 *skydb.AuthInfo) error
- func (_m *MockConn) UpdateOAuthInfo(_param0 *skydb.OAuthInfo) error
- type MockConnMockRecorder
- func (_mr *MockConnMockRecorder) AddRelation(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) AssignRoles(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) Close() *gomock.Call
- func (_mr *MockConnMockRecorder) CreateAuth(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) CreateCustomTokenInfo(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) CreateOAuthInfo(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteAuth(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteCustomTokenInfo(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteDevice(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteDevicesByToken(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteEmptyDevicesByTime(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) DeleteOAuth(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) EnsureAuthRecordKeysExist(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) EnsureAuthRecordKeysIndexesMatch(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetAdminRoles() *gomock.Call
- func (_mr *MockConnMockRecorder) GetAsset(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetAssets(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetAuth(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetAuthByPrincipalID(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetCustomTokenInfo(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetDefaultRoles() *gomock.Call
- func (_mr *MockConnMockRecorder) GetDevice(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetOAuthInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetOAuthInfoByProviderAndUserID(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetPasswordHistory(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetRecordAccess(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetRecordDefaultAccess(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) GetRecordFieldAccess() *gomock.Call
- func (_mr *MockConnMockRecorder) GetRoles(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) PrivateDB(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) PublicDB() *gomock.Call
- func (_mr *MockConnMockRecorder) QueryDevicesByUser(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) QueryDevicesByUserAndTopic(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) QueryRelation(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) QueryRelationCount(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) RemovePasswordHistory(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) RemoveRelation(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) RevokeRoles(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SaveAsset(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SaveDevice(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetAdminRoles(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetDefaultRoles(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetRecordAccess(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetRecordDefaultAccess(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) SetRecordFieldAccess(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) Subscribe(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) UnionDB() *gomock.Call
- func (_mr *MockConnMockRecorder) UpdateAuth(arg0 interface{}) *gomock.Call
- func (_mr *MockConnMockRecorder) UpdateOAuthInfo(arg0 interface{}) *gomock.Call
- type MockDatabase
- func (_m *MockDatabase) Conn() skydb.Conn
- func (_m *MockDatabase) DatabaseType() skydb.DatabaseType
- func (_m *MockDatabase) Delete(_param0 skydb.RecordID) error
- func (_m *MockDatabase) DeleteIndex(_param0 string, _param1 string) error
- func (_m *MockDatabase) DeleteSchema(_param0 string, _param1 string) error
- func (_m *MockDatabase) DeleteSubscription(_param0 string, _param1 string) error
- func (_m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (_m *MockDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) (bool, error)
- func (_m *MockDatabase) Get(_param0 skydb.RecordID, _param1 *skydb.Record) error
- func (_m *MockDatabase) GetByIDs(_param0 []skydb.RecordID, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
- func (_m *MockDatabase) GetIndexesByRecordType(_param0 string) (map[string]skydb.Index, error)
- func (_m *MockDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
- func (_m *MockDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
- func (_m *MockDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
- func (_m *MockDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
- func (_m *MockDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
- func (_m *MockDatabase) ID() string
- func (_m *MockDatabase) IsReadOnly() bool
- func (_m *MockDatabase) Query(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
- func (_m *MockDatabase) QueryCount(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (uint64, error)
- func (_m *MockDatabase) RemoteColumnTypes(_param0 string) (skydb.RecordSchema, error)
- func (_m *MockDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
- func (_m *MockDatabase) Save(_param0 *skydb.Record) error
- func (_m *MockDatabase) SaveIndex(_param0 string, _param1 string, _param2 skydb.Index) error
- func (_m *MockDatabase) SaveSubscription(_param0 *skydb.Subscription) error
- func (_m *MockDatabase) TableName(_param0 string) string
- func (_m *MockDatabase) UserRecordType() string
- type MockDatabaseMockRecorder
- func (_mr *MockDatabaseMockRecorder) Conn() *gomock.Call
- func (_mr *MockDatabaseMockRecorder) DatabaseType() *gomock.Call
- func (_mr *MockDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) DeleteIndex(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) DeleteSchema(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) DeleteSubscription(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) Extend(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetByIDs(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetIndexesByRecordType(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetMatchingSubscriptions(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetRecordSchemas() *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetSchema(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) GetSubscriptionsByDeviceID(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) ID() *gomock.Call
- func (_mr *MockDatabaseMockRecorder) IsReadOnly() *gomock.Call
- func (_mr *MockDatabaseMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) QueryCount(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) RemoteColumnTypes(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) RenameSchema(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) Save(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) SaveIndex(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) SaveSubscription(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) TableName(arg0 interface{}) *gomock.Call
- func (_mr *MockDatabaseMockRecorder) UserRecordType() *gomock.Call
- type MockTxDatabase
- func (_m *MockTxDatabase) Begin() error
- func (_m *MockTxDatabase) Commit() error
- func (_m *MockTxDatabase) Conn() skydb.Conn
- func (_m *MockTxDatabase) DatabaseType() skydb.DatabaseType
- func (_m *MockTxDatabase) Delete(_param0 skydb.RecordID) error
- func (_m *MockTxDatabase) DeleteIndex(_param0 string, _param1 string) error
- func (_m *MockTxDatabase) DeleteSchema(_param0 string, _param1 string) error
- func (_m *MockTxDatabase) DeleteSubscription(_param0 string, _param1 string) error
- func (_m *MockTxDatabase) EXPECT() *MockTxDatabaseMockRecorder
- func (_m *MockTxDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) (bool, error)
- func (_m *MockTxDatabase) Get(_param0 skydb.RecordID, _param1 *skydb.Record) error
- func (_m *MockTxDatabase) GetByIDs(_param0 []skydb.RecordID, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
- func (_m *MockTxDatabase) GetIndexesByRecordType(_param0 string) (map[string]skydb.Index, error)
- func (_m *MockTxDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
- func (_m *MockTxDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
- func (_m *MockTxDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
- func (_m *MockTxDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
- func (_m *MockTxDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
- func (_m *MockTxDatabase) ID() string
- func (_m *MockTxDatabase) IsReadOnly() bool
- func (_m *MockTxDatabase) Query(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
- func (_m *MockTxDatabase) QueryCount(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (uint64, error)
- func (_m *MockTxDatabase) RemoteColumnTypes(_param0 string) (skydb.RecordSchema, error)
- func (_m *MockTxDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
- func (_m *MockTxDatabase) Rollback() error
- func (_m *MockTxDatabase) Save(_param0 *skydb.Record) error
- func (_m *MockTxDatabase) SaveIndex(_param0 string, _param1 string, _param2 skydb.Index) error
- func (_m *MockTxDatabase) SaveSubscription(_param0 *skydb.Subscription) error
- func (_m *MockTxDatabase) TableName(_param0 string) string
- func (_m *MockTxDatabase) UserRecordType() string
- type MockTxDatabaseMockRecorder
- func (_mr *MockTxDatabaseMockRecorder) Begin() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Commit() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Conn() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) DatabaseType() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) DeleteIndex(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) DeleteSchema(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) DeleteSubscription(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Extend(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetByIDs(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetIndexesByRecordType(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetMatchingSubscriptions(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetRecordSchemas() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetSchema(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) GetSubscriptionsByDeviceID(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) ID() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) IsReadOnly() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) QueryCount(arg0, arg1 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) RemoteColumnTypes(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) RenameSchema(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Rollback() *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) Save(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) SaveIndex(arg0, arg1, arg2 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) SaveSubscription(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) TableName(arg0 interface{}) *gomock.Call
- func (_mr *MockTxDatabaseMockRecorder) UserRecordType() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance
func (*MockConn) AddRelation ¶
AddRelation mocks base method
func (*MockConn) AssignRoles ¶ added in v1.1.0
AssignRoles mocks base method
func (*MockConn) CreateAuth ¶ added in v1.1.0
CreateAuth mocks base method
func (*MockConn) CreateCustomTokenInfo ¶ added in v1.3.0
func (_m *MockConn) CreateCustomTokenInfo(_param0 *skydb.CustomTokenInfo) error
CreateCustomTokenInfo mocks base method
func (*MockConn) CreateOAuthInfo ¶ added in v1.2.0
CreateOAuthInfo mocks base method
func (*MockConn) DeleteAuth ¶ added in v1.1.0
DeleteAuth mocks base method
func (*MockConn) DeleteCustomTokenInfo ¶ added in v1.3.0
DeleteCustomTokenInfo mocks base method
func (*MockConn) DeleteDevice ¶
DeleteDevice mocks base method
func (*MockConn) DeleteDevicesByToken ¶
DeleteDevicesByToken mocks base method
func (*MockConn) DeleteEmptyDevicesByTime ¶
DeleteEmptyDevicesByTime mocks base method
func (*MockConn) DeleteOAuth ¶ added in v1.2.0
DeleteOAuth mocks base method
func (*MockConn) EXPECT ¶
func (_m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockConn) EnsureAuthRecordKeysExist ¶ added in v1.1.0
EnsureAuthRecordKeysExist mocks base method
func (*MockConn) EnsureAuthRecordKeysIndexesMatch ¶ added in v1.1.0
EnsureAuthRecordKeysIndexesMatch mocks base method
func (*MockConn) GetAdminRoles ¶
GetAdminRoles mocks base method
func (*MockConn) GetAuthByPrincipalID ¶ added in v1.1.0
GetAuthByPrincipalID mocks base method
func (*MockConn) GetCustomTokenInfo ¶ added in v1.3.0
func (_m *MockConn) GetCustomTokenInfo(_param0 string, _param1 *skydb.CustomTokenInfo) error
GetCustomTokenInfo mocks base method
func (*MockConn) GetDefaultRoles ¶
GetDefaultRoles mocks base method
func (*MockConn) GetOAuthInfo ¶ added in v1.2.0
GetOAuthInfo mocks base method
func (*MockConn) GetOAuthInfoByProviderAndUserID ¶ added in v1.2.0
func (_m *MockConn) GetOAuthInfoByProviderAndUserID(_param0 string, _param1 string, _param2 *skydb.OAuthInfo) error
GetOAuthInfoByProviderAndUserID mocks base method
func (*MockConn) GetPasswordHistory ¶ added in v1.3.2
func (_m *MockConn) GetPasswordHistory(_param0 string, _param1 int, _param2 int) ([]skydb.PasswordHistory, error)
GetPasswordHistory mocks base method
func (*MockConn) GetRecordAccess ¶
GetRecordAccess mocks base method
func (*MockConn) GetRecordDefaultAccess ¶ added in v0.23.0
GetRecordDefaultAccess mocks base method
func (*MockConn) GetRecordFieldAccess ¶ added in v1.1.0
GetRecordFieldAccess mocks base method
func (*MockConn) QueryDevicesByUser ¶
QueryDevicesByUser mocks base method
func (*MockConn) QueryDevicesByUserAndTopic ¶ added in v0.21.0
func (_m *MockConn) QueryDevicesByUserAndTopic(_param0 string, _param1 string) ([]skydb.Device, error)
QueryDevicesByUserAndTopic mocks base method
func (*MockConn) QueryRelation ¶
func (_m *MockConn) QueryRelation(_param0 string, _param1 string, _param2 string, _param3 skydb.QueryConfig) []skydb.AuthInfo
QueryRelation mocks base method
func (*MockConn) QueryRelationCount ¶
func (_m *MockConn) QueryRelationCount(_param0 string, _param1 string, _param2 string) (uint64, error)
QueryRelationCount mocks base method
func (*MockConn) RemovePasswordHistory ¶ added in v1.3.2
RemovePasswordHistory mocks base method
func (*MockConn) RemoveRelation ¶
RemoveRelation mocks base method
func (*MockConn) RevokeRoles ¶ added in v1.1.0
RevokeRoles mocks base method
func (*MockConn) SaveDevice ¶
SaveDevice mocks base method
func (*MockConn) SetAdminRoles ¶
SetAdminRoles mocks base method
func (*MockConn) SetDefaultRoles ¶
SetDefaultRoles mocks base method
func (*MockConn) SetRecordAccess ¶
SetRecordAccess mocks base method
func (*MockConn) SetRecordDefaultAccess ¶ added in v0.23.0
SetRecordDefaultAccess mocks base method
func (*MockConn) SetRecordFieldAccess ¶ added in v1.1.0
SetRecordFieldAccess mocks base method
func (*MockConn) Subscribe ¶
func (_m *MockConn) Subscribe(_param0 chan skydb.RecordEvent) error
Subscribe mocks base method
func (*MockConn) UpdateAuth ¶ added in v1.1.0
UpdateAuth mocks base method
type MockConnMockRecorder ¶ added in v0.25.0
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) AddRelation ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) AddRelation(arg0, arg1, arg2 interface{}) *gomock.Call
AddRelation indicates an expected call of AddRelation
func (*MockConnMockRecorder) AssignRoles ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) AssignRoles(arg0, arg1 interface{}) *gomock.Call
AssignRoles indicates an expected call of AssignRoles
func (*MockConnMockRecorder) Close ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) CreateAuth ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) CreateAuth(arg0 interface{}) *gomock.Call
CreateAuth indicates an expected call of CreateAuth
func (*MockConnMockRecorder) CreateCustomTokenInfo ¶ added in v1.3.0
func (_mr *MockConnMockRecorder) CreateCustomTokenInfo(arg0 interface{}) *gomock.Call
CreateCustomTokenInfo indicates an expected call of CreateCustomTokenInfo
func (*MockConnMockRecorder) CreateOAuthInfo ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) CreateOAuthInfo(arg0 interface{}) *gomock.Call
CreateOAuthInfo indicates an expected call of CreateOAuthInfo
func (*MockConnMockRecorder) DeleteAuth ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) DeleteAuth(arg0 interface{}) *gomock.Call
DeleteAuth indicates an expected call of DeleteAuth
func (*MockConnMockRecorder) DeleteCustomTokenInfo ¶ added in v1.3.0
func (_mr *MockConnMockRecorder) DeleteCustomTokenInfo(arg0 interface{}) *gomock.Call
DeleteCustomTokenInfo indicates an expected call of DeleteCustomTokenInfo
func (*MockConnMockRecorder) DeleteDevice ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) DeleteDevice(arg0 interface{}) *gomock.Call
DeleteDevice indicates an expected call of DeleteDevice
func (*MockConnMockRecorder) DeleteDevicesByToken ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) DeleteDevicesByToken(arg0, arg1 interface{}) *gomock.Call
DeleteDevicesByToken indicates an expected call of DeleteDevicesByToken
func (*MockConnMockRecorder) DeleteEmptyDevicesByTime ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) DeleteEmptyDevicesByTime(arg0 interface{}) *gomock.Call
DeleteEmptyDevicesByTime indicates an expected call of DeleteEmptyDevicesByTime
func (*MockConnMockRecorder) DeleteOAuth ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) DeleteOAuth(arg0, arg1 interface{}) *gomock.Call
DeleteOAuth indicates an expected call of DeleteOAuth
func (*MockConnMockRecorder) EnsureAuthRecordKeysExist ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) EnsureAuthRecordKeysExist(arg0 interface{}) *gomock.Call
EnsureAuthRecordKeysExist indicates an expected call of EnsureAuthRecordKeysExist
func (*MockConnMockRecorder) EnsureAuthRecordKeysIndexesMatch ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) EnsureAuthRecordKeysIndexesMatch(arg0 interface{}) *gomock.Call
EnsureAuthRecordKeysIndexesMatch indicates an expected call of EnsureAuthRecordKeysIndexesMatch
func (*MockConnMockRecorder) GetAdminRoles ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetAdminRoles() *gomock.Call
GetAdminRoles indicates an expected call of GetAdminRoles
func (*MockConnMockRecorder) GetAsset ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetAsset(arg0, arg1 interface{}) *gomock.Call
GetAsset indicates an expected call of GetAsset
func (*MockConnMockRecorder) GetAssets ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetAssets(arg0 interface{}) *gomock.Call
GetAssets indicates an expected call of GetAssets
func (*MockConnMockRecorder) GetAuth ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetAuth(arg0, arg1 interface{}) *gomock.Call
GetAuth indicates an expected call of GetAuth
func (*MockConnMockRecorder) GetAuthByPrincipalID ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetAuthByPrincipalID(arg0, arg1 interface{}) *gomock.Call
GetAuthByPrincipalID indicates an expected call of GetAuthByPrincipalID
func (*MockConnMockRecorder) GetCustomTokenInfo ¶ added in v1.3.0
func (_mr *MockConnMockRecorder) GetCustomTokenInfo(arg0, arg1 interface{}) *gomock.Call
GetCustomTokenInfo indicates an expected call of GetCustomTokenInfo
func (*MockConnMockRecorder) GetDefaultRoles ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetDefaultRoles() *gomock.Call
GetDefaultRoles indicates an expected call of GetDefaultRoles
func (*MockConnMockRecorder) GetDevice ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetDevice(arg0, arg1 interface{}) *gomock.Call
GetDevice indicates an expected call of GetDevice
func (*MockConnMockRecorder) GetOAuthInfo ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetOAuthInfo(arg0, arg1, arg2 interface{}) *gomock.Call
GetOAuthInfo indicates an expected call of GetOAuthInfo
func (*MockConnMockRecorder) GetOAuthInfoByProviderAndUserID ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetOAuthInfoByProviderAndUserID(arg0, arg1, arg2 interface{}) *gomock.Call
GetOAuthInfoByProviderAndUserID indicates an expected call of GetOAuthInfoByProviderAndUserID
func (*MockConnMockRecorder) GetPasswordHistory ¶ added in v1.3.2
func (_mr *MockConnMockRecorder) GetPasswordHistory(arg0, arg1, arg2 interface{}) *gomock.Call
GetPasswordHistory indicates an expected call of GetPasswordHistory
func (*MockConnMockRecorder) GetRecordAccess ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetRecordAccess(arg0 interface{}) *gomock.Call
GetRecordAccess indicates an expected call of GetRecordAccess
func (*MockConnMockRecorder) GetRecordDefaultAccess ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) GetRecordDefaultAccess(arg0 interface{}) *gomock.Call
GetRecordDefaultAccess indicates an expected call of GetRecordDefaultAccess
func (*MockConnMockRecorder) GetRecordFieldAccess ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetRecordFieldAccess() *gomock.Call
GetRecordFieldAccess indicates an expected call of GetRecordFieldAccess
func (*MockConnMockRecorder) GetRoles ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) GetRoles(arg0 interface{}) *gomock.Call
GetRoles indicates an expected call of GetRoles
func (*MockConnMockRecorder) PrivateDB ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) PrivateDB(arg0 interface{}) *gomock.Call
PrivateDB indicates an expected call of PrivateDB
func (*MockConnMockRecorder) PublicDB ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) PublicDB() *gomock.Call
PublicDB indicates an expected call of PublicDB
func (*MockConnMockRecorder) QueryDevicesByUser ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) QueryDevicesByUser(arg0 interface{}) *gomock.Call
QueryDevicesByUser indicates an expected call of QueryDevicesByUser
func (*MockConnMockRecorder) QueryDevicesByUserAndTopic ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) QueryDevicesByUserAndTopic(arg0, arg1 interface{}) *gomock.Call
QueryDevicesByUserAndTopic indicates an expected call of QueryDevicesByUserAndTopic
func (*MockConnMockRecorder) QueryRelation ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) QueryRelation(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
QueryRelation indicates an expected call of QueryRelation
func (*MockConnMockRecorder) QueryRelationCount ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) QueryRelationCount(arg0, arg1, arg2 interface{}) *gomock.Call
QueryRelationCount indicates an expected call of QueryRelationCount
func (*MockConnMockRecorder) RemovePasswordHistory ¶ added in v1.3.2
func (_mr *MockConnMockRecorder) RemovePasswordHistory(arg0, arg1, arg2 interface{}) *gomock.Call
RemovePasswordHistory indicates an expected call of RemovePasswordHistory
func (*MockConnMockRecorder) RemoveRelation ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) RemoveRelation(arg0, arg1, arg2 interface{}) *gomock.Call
RemoveRelation indicates an expected call of RemoveRelation
func (*MockConnMockRecorder) RevokeRoles ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) RevokeRoles(arg0, arg1 interface{}) *gomock.Call
RevokeRoles indicates an expected call of RevokeRoles
func (*MockConnMockRecorder) SaveAsset ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SaveAsset(arg0 interface{}) *gomock.Call
SaveAsset indicates an expected call of SaveAsset
func (*MockConnMockRecorder) SaveDevice ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SaveDevice(arg0 interface{}) *gomock.Call
SaveDevice indicates an expected call of SaveDevice
func (*MockConnMockRecorder) SetAdminRoles ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SetAdminRoles(arg0 interface{}) *gomock.Call
SetAdminRoles indicates an expected call of SetAdminRoles
func (*MockConnMockRecorder) SetDefaultRoles ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SetDefaultRoles(arg0 interface{}) *gomock.Call
SetDefaultRoles indicates an expected call of SetDefaultRoles
func (*MockConnMockRecorder) SetRecordAccess ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SetRecordAccess(arg0, arg1 interface{}) *gomock.Call
SetRecordAccess indicates an expected call of SetRecordAccess
func (*MockConnMockRecorder) SetRecordDefaultAccess ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) SetRecordDefaultAccess(arg0, arg1 interface{}) *gomock.Call
SetRecordDefaultAccess indicates an expected call of SetRecordDefaultAccess
func (*MockConnMockRecorder) SetRecordFieldAccess ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) SetRecordFieldAccess(arg0 interface{}) *gomock.Call
SetRecordFieldAccess indicates an expected call of SetRecordFieldAccess
func (*MockConnMockRecorder) Subscribe ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) Subscribe(arg0 interface{}) *gomock.Call
Subscribe indicates an expected call of Subscribe
func (*MockConnMockRecorder) UnionDB ¶ added in v0.25.0
func (_mr *MockConnMockRecorder) UnionDB() *gomock.Call
UnionDB indicates an expected call of UnionDB
func (*MockConnMockRecorder) UpdateAuth ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) UpdateAuth(arg0 interface{}) *gomock.Call
UpdateAuth indicates an expected call of UpdateAuth
func (*MockConnMockRecorder) UpdateOAuthInfo ¶ added in v1.2.0
func (_mr *MockConnMockRecorder) UpdateOAuthInfo(arg0 interface{}) *gomock.Call
UpdateOAuthInfo indicates an expected call of UpdateOAuthInfo
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance
func (*MockDatabase) DatabaseType ¶
func (_m *MockDatabase) DatabaseType() skydb.DatabaseType
DatabaseType mocks base method
func (*MockDatabase) Delete ¶
func (_m *MockDatabase) Delete(_param0 skydb.RecordID) error
Delete mocks base method
func (*MockDatabase) DeleteIndex ¶ added in v1.1.0
func (_m *MockDatabase) DeleteIndex(_param0 string, _param1 string) error
DeleteIndex mocks base method
func (*MockDatabase) DeleteSchema ¶
func (_m *MockDatabase) DeleteSchema(_param0 string, _param1 string) error
DeleteSchema mocks base method
func (*MockDatabase) DeleteSubscription ¶
func (_m *MockDatabase) DeleteSubscription(_param0 string, _param1 string) error
DeleteSubscription mocks base method
func (*MockDatabase) EXPECT ¶
func (_m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) Extend ¶
func (_m *MockDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) (bool, error)
Extend mocks base method
func (*MockDatabase) GetByIDs ¶
func (_m *MockDatabase) GetByIDs(_param0 []skydb.RecordID, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
GetByIDs mocks base method
func (*MockDatabase) GetIndexesByRecordType ¶ added in v1.1.0
GetIndexesByRecordType mocks base method
func (*MockDatabase) GetMatchingSubscriptions ¶
func (_m *MockDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
GetMatchingSubscriptions mocks base method
func (*MockDatabase) GetRecordSchemas ¶
func (_m *MockDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
GetRecordSchemas mocks base method
func (*MockDatabase) GetSchema ¶
func (_m *MockDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
GetSchema mocks base method
func (*MockDatabase) GetSubscription ¶
func (_m *MockDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
GetSubscription mocks base method
func (*MockDatabase) GetSubscriptionsByDeviceID ¶
func (_m *MockDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
GetSubscriptionsByDeviceID mocks base method
func (*MockDatabase) IsReadOnly ¶
func (_m *MockDatabase) IsReadOnly() bool
IsReadOnly mocks base method
func (*MockDatabase) Query ¶
func (_m *MockDatabase) Query(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
Query mocks base method
func (*MockDatabase) QueryCount ¶
func (_m *MockDatabase) QueryCount(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (uint64, error)
QueryCount mocks base method
func (*MockDatabase) RemoteColumnTypes ¶ added in v0.23.0
func (_m *MockDatabase) RemoteColumnTypes(_param0 string) (skydb.RecordSchema, error)
RemoteColumnTypes mocks base method
func (*MockDatabase) RenameSchema ¶
func (_m *MockDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
RenameSchema mocks base method
func (*MockDatabase) Save ¶
func (_m *MockDatabase) Save(_param0 *skydb.Record) error
Save mocks base method
func (*MockDatabase) SaveSubscription ¶
func (_m *MockDatabase) SaveSubscription(_param0 *skydb.Subscription) error
SaveSubscription mocks base method
func (*MockDatabase) TableName ¶ added in v0.23.0
func (_m *MockDatabase) TableName(_param0 string) string
TableName mocks base method
func (*MockDatabase) UserRecordType ¶
func (_m *MockDatabase) UserRecordType() string
UserRecordType mocks base method
type MockDatabaseMockRecorder ¶ added in v0.25.0
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) Conn ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Conn() *gomock.Call
Conn indicates an expected call of Conn
func (*MockDatabaseMockRecorder) DatabaseType ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) DatabaseType() *gomock.Call
DatabaseType indicates an expected call of DatabaseType
func (*MockDatabaseMockRecorder) Delete ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockDatabaseMockRecorder) DeleteIndex ¶ added in v1.2.0
func (_mr *MockDatabaseMockRecorder) DeleteIndex(arg0, arg1 interface{}) *gomock.Call
DeleteIndex indicates an expected call of DeleteIndex
func (*MockDatabaseMockRecorder) DeleteSchema ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) DeleteSchema(arg0, arg1 interface{}) *gomock.Call
DeleteSchema indicates an expected call of DeleteSchema
func (*MockDatabaseMockRecorder) DeleteSubscription ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) DeleteSubscription(arg0, arg1 interface{}) *gomock.Call
DeleteSubscription indicates an expected call of DeleteSubscription
func (*MockDatabaseMockRecorder) Extend ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Extend(arg0, arg1 interface{}) *gomock.Call
Extend indicates an expected call of Extend
func (*MockDatabaseMockRecorder) Get ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockDatabaseMockRecorder) GetByIDs ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetByIDs(arg0, arg1 interface{}) *gomock.Call
GetByIDs indicates an expected call of GetByIDs
func (*MockDatabaseMockRecorder) GetIndexesByRecordType ¶ added in v1.2.0
func (_mr *MockDatabaseMockRecorder) GetIndexesByRecordType(arg0 interface{}) *gomock.Call
GetIndexesByRecordType indicates an expected call of GetIndexesByRecordType
func (*MockDatabaseMockRecorder) GetMatchingSubscriptions ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetMatchingSubscriptions(arg0 interface{}) *gomock.Call
GetMatchingSubscriptions indicates an expected call of GetMatchingSubscriptions
func (*MockDatabaseMockRecorder) GetRecordSchemas ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetRecordSchemas() *gomock.Call
GetRecordSchemas indicates an expected call of GetRecordSchemas
func (*MockDatabaseMockRecorder) GetSchema ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetSchema(arg0 interface{}) *gomock.Call
GetSchema indicates an expected call of GetSchema
func (*MockDatabaseMockRecorder) GetSubscription ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
GetSubscription indicates an expected call of GetSubscription
func (*MockDatabaseMockRecorder) GetSubscriptionsByDeviceID ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) GetSubscriptionsByDeviceID(arg0 interface{}) *gomock.Call
GetSubscriptionsByDeviceID indicates an expected call of GetSubscriptionsByDeviceID
func (*MockDatabaseMockRecorder) ID ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockDatabaseMockRecorder) IsReadOnly ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) IsReadOnly() *gomock.Call
IsReadOnly indicates an expected call of IsReadOnly
func (*MockDatabaseMockRecorder) Query ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call
Query indicates an expected call of Query
func (*MockDatabaseMockRecorder) QueryCount ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) QueryCount(arg0, arg1 interface{}) *gomock.Call
QueryCount indicates an expected call of QueryCount
func (*MockDatabaseMockRecorder) RemoteColumnTypes ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) RemoteColumnTypes(arg0 interface{}) *gomock.Call
RemoteColumnTypes indicates an expected call of RemoteColumnTypes
func (*MockDatabaseMockRecorder) RenameSchema ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) RenameSchema(arg0, arg1, arg2 interface{}) *gomock.Call
RenameSchema indicates an expected call of RenameSchema
func (*MockDatabaseMockRecorder) Save ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
func (*MockDatabaseMockRecorder) SaveIndex ¶ added in v1.2.0
func (_mr *MockDatabaseMockRecorder) SaveIndex(arg0, arg1, arg2 interface{}) *gomock.Call
SaveIndex indicates an expected call of SaveIndex
func (*MockDatabaseMockRecorder) SaveSubscription ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) SaveSubscription(arg0 interface{}) *gomock.Call
SaveSubscription indicates an expected call of SaveSubscription
func (*MockDatabaseMockRecorder) TableName ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) TableName(arg0 interface{}) *gomock.Call
TableName indicates an expected call of TableName
func (*MockDatabaseMockRecorder) UserRecordType ¶ added in v0.25.0
func (_mr *MockDatabaseMockRecorder) UserRecordType() *gomock.Call
UserRecordType indicates an expected call of UserRecordType
type MockTxDatabase ¶ added in v1.1.0
type MockTxDatabase struct {
// contains filtered or unexported fields
}
MockTxDatabase is a mock of TxDatabase interface
func NewMockTxDatabase ¶ added in v1.1.0
func NewMockTxDatabase(ctrl *gomock.Controller) *MockTxDatabase
NewMockTxDatabase creates a new mock instance
func (*MockTxDatabase) Begin ¶ added in v1.1.0
func (_m *MockTxDatabase) Begin() error
Begin mocks base method
func (*MockTxDatabase) Commit ¶ added in v1.1.0
func (_m *MockTxDatabase) Commit() error
Commit mocks base method
func (*MockTxDatabase) Conn ¶ added in v1.1.0
func (_m *MockTxDatabase) Conn() skydb.Conn
Conn mocks base method
func (*MockTxDatabase) DatabaseType ¶ added in v1.1.0
func (_m *MockTxDatabase) DatabaseType() skydb.DatabaseType
DatabaseType mocks base method
func (*MockTxDatabase) Delete ¶ added in v1.1.0
func (_m *MockTxDatabase) Delete(_param0 skydb.RecordID) error
Delete mocks base method
func (*MockTxDatabase) DeleteIndex ¶ added in v1.1.0
func (_m *MockTxDatabase) DeleteIndex(_param0 string, _param1 string) error
DeleteIndex mocks base method
func (*MockTxDatabase) DeleteSchema ¶ added in v1.1.0
func (_m *MockTxDatabase) DeleteSchema(_param0 string, _param1 string) error
DeleteSchema mocks base method
func (*MockTxDatabase) DeleteSubscription ¶ added in v1.1.0
func (_m *MockTxDatabase) DeleteSubscription(_param0 string, _param1 string) error
DeleteSubscription mocks base method
func (*MockTxDatabase) EXPECT ¶ added in v1.1.0
func (_m *MockTxDatabase) EXPECT() *MockTxDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTxDatabase) Extend ¶ added in v1.1.0
func (_m *MockTxDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) (bool, error)
Extend mocks base method
func (*MockTxDatabase) GetByIDs ¶ added in v1.1.0
func (_m *MockTxDatabase) GetByIDs(_param0 []skydb.RecordID, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
GetByIDs mocks base method
func (*MockTxDatabase) GetIndexesByRecordType ¶ added in v1.1.0
GetIndexesByRecordType mocks base method
func (*MockTxDatabase) GetMatchingSubscriptions ¶ added in v1.1.0
func (_m *MockTxDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription
GetMatchingSubscriptions mocks base method
func (*MockTxDatabase) GetRecordSchemas ¶ added in v1.1.0
func (_m *MockTxDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)
GetRecordSchemas mocks base method
func (*MockTxDatabase) GetSchema ¶ added in v1.1.0
func (_m *MockTxDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)
GetSchema mocks base method
func (*MockTxDatabase) GetSubscription ¶ added in v1.1.0
func (_m *MockTxDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error
GetSubscription mocks base method
func (*MockTxDatabase) GetSubscriptionsByDeviceID ¶ added in v1.1.0
func (_m *MockTxDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription
GetSubscriptionsByDeviceID mocks base method
func (*MockTxDatabase) ID ¶ added in v1.1.0
func (_m *MockTxDatabase) ID() string
ID mocks base method
func (*MockTxDatabase) IsReadOnly ¶ added in v1.1.0
func (_m *MockTxDatabase) IsReadOnly() bool
IsReadOnly mocks base method
func (*MockTxDatabase) Query ¶ added in v1.1.0
func (_m *MockTxDatabase) Query(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (*skydb.Rows, error)
Query mocks base method
func (*MockTxDatabase) QueryCount ¶ added in v1.1.0
func (_m *MockTxDatabase) QueryCount(_param0 *skydb.Query, _param1 *skydb.AccessControlOptions) (uint64, error)
QueryCount mocks base method
func (*MockTxDatabase) RemoteColumnTypes ¶ added in v1.1.0
func (_m *MockTxDatabase) RemoteColumnTypes(_param0 string) (skydb.RecordSchema, error)
RemoteColumnTypes mocks base method
func (*MockTxDatabase) RenameSchema ¶ added in v1.1.0
func (_m *MockTxDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error
RenameSchema mocks base method
func (*MockTxDatabase) Rollback ¶ added in v1.1.0
func (_m *MockTxDatabase) Rollback() error
Rollback mocks base method
func (*MockTxDatabase) Save ¶ added in v1.1.0
func (_m *MockTxDatabase) Save(_param0 *skydb.Record) error
Save mocks base method
func (*MockTxDatabase) SaveSubscription ¶ added in v1.1.0
func (_m *MockTxDatabase) SaveSubscription(_param0 *skydb.Subscription) error
SaveSubscription mocks base method
func (*MockTxDatabase) TableName ¶ added in v1.1.0
func (_m *MockTxDatabase) TableName(_param0 string) string
TableName mocks base method
func (*MockTxDatabase) UserRecordType ¶ added in v1.1.0
func (_m *MockTxDatabase) UserRecordType() string
UserRecordType mocks base method
type MockTxDatabaseMockRecorder ¶ added in v1.2.0
type MockTxDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockTxDatabaseMockRecorder is the mock recorder for MockTxDatabase
func (*MockTxDatabaseMockRecorder) Begin ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockTxDatabaseMockRecorder) Commit ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTxDatabaseMockRecorder) Conn ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Conn() *gomock.Call
Conn indicates an expected call of Conn
func (*MockTxDatabaseMockRecorder) DatabaseType ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) DatabaseType() *gomock.Call
DatabaseType indicates an expected call of DatabaseType
func (*MockTxDatabaseMockRecorder) Delete ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockTxDatabaseMockRecorder) DeleteIndex ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) DeleteIndex(arg0, arg1 interface{}) *gomock.Call
DeleteIndex indicates an expected call of DeleteIndex
func (*MockTxDatabaseMockRecorder) DeleteSchema ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) DeleteSchema(arg0, arg1 interface{}) *gomock.Call
DeleteSchema indicates an expected call of DeleteSchema
func (*MockTxDatabaseMockRecorder) DeleteSubscription ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) DeleteSubscription(arg0, arg1 interface{}) *gomock.Call
DeleteSubscription indicates an expected call of DeleteSubscription
func (*MockTxDatabaseMockRecorder) Extend ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Extend(arg0, arg1 interface{}) *gomock.Call
Extend indicates an expected call of Extend
func (*MockTxDatabaseMockRecorder) Get ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockTxDatabaseMockRecorder) GetByIDs ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetByIDs(arg0, arg1 interface{}) *gomock.Call
GetByIDs indicates an expected call of GetByIDs
func (*MockTxDatabaseMockRecorder) GetIndexesByRecordType ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetIndexesByRecordType(arg0 interface{}) *gomock.Call
GetIndexesByRecordType indicates an expected call of GetIndexesByRecordType
func (*MockTxDatabaseMockRecorder) GetMatchingSubscriptions ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetMatchingSubscriptions(arg0 interface{}) *gomock.Call
GetMatchingSubscriptions indicates an expected call of GetMatchingSubscriptions
func (*MockTxDatabaseMockRecorder) GetRecordSchemas ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetRecordSchemas() *gomock.Call
GetRecordSchemas indicates an expected call of GetRecordSchemas
func (*MockTxDatabaseMockRecorder) GetSchema ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetSchema(arg0 interface{}) *gomock.Call
GetSchema indicates an expected call of GetSchema
func (*MockTxDatabaseMockRecorder) GetSubscription ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetSubscription(arg0, arg1, arg2 interface{}) *gomock.Call
GetSubscription indicates an expected call of GetSubscription
func (*MockTxDatabaseMockRecorder) GetSubscriptionsByDeviceID ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) GetSubscriptionsByDeviceID(arg0 interface{}) *gomock.Call
GetSubscriptionsByDeviceID indicates an expected call of GetSubscriptionsByDeviceID
func (*MockTxDatabaseMockRecorder) ID ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockTxDatabaseMockRecorder) IsReadOnly ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) IsReadOnly() *gomock.Call
IsReadOnly indicates an expected call of IsReadOnly
func (*MockTxDatabaseMockRecorder) Query ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Query(arg0, arg1 interface{}) *gomock.Call
Query indicates an expected call of Query
func (*MockTxDatabaseMockRecorder) QueryCount ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) QueryCount(arg0, arg1 interface{}) *gomock.Call
QueryCount indicates an expected call of QueryCount
func (*MockTxDatabaseMockRecorder) RemoteColumnTypes ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) RemoteColumnTypes(arg0 interface{}) *gomock.Call
RemoteColumnTypes indicates an expected call of RemoteColumnTypes
func (*MockTxDatabaseMockRecorder) RenameSchema ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) RenameSchema(arg0, arg1, arg2 interface{}) *gomock.Call
RenameSchema indicates an expected call of RenameSchema
func (*MockTxDatabaseMockRecorder) Rollback ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback
func (*MockTxDatabaseMockRecorder) Save ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save
func (*MockTxDatabaseMockRecorder) SaveIndex ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) SaveIndex(arg0, arg1, arg2 interface{}) *gomock.Call
SaveIndex indicates an expected call of SaveIndex
func (*MockTxDatabaseMockRecorder) SaveSubscription ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) SaveSubscription(arg0 interface{}) *gomock.Call
SaveSubscription indicates an expected call of SaveSubscription
func (*MockTxDatabaseMockRecorder) TableName ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) TableName(arg0 interface{}) *gomock.Call
TableName indicates an expected call of TableName
func (*MockTxDatabaseMockRecorder) UserRecordType ¶ added in v1.2.0
func (_mr *MockTxDatabaseMockRecorder) UserRecordType() *gomock.Call
UserRecordType indicates an expected call of UserRecordType