mock_skydb

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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
}

Mock of Conn interface

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

func (*MockConn) AddRelation

func (_m *MockConn) AddRelation(_param0 string, _param1 string, _param2 string) error

func (*MockConn) Close

func (_m *MockConn) Close() error

func (*MockConn) CreateUser

func (_m *MockConn) CreateUser(_param0 *skydb.UserInfo) error

func (*MockConn) DeleteDevice

func (_m *MockConn) DeleteDevice(_param0 string) error

func (*MockConn) DeleteDevicesByToken

func (_m *MockConn) DeleteDevicesByToken(_param0 string, _param1 time.Time) error

func (*MockConn) DeleteEmptyDevicesByTime

func (_m *MockConn) DeleteEmptyDevicesByTime(_param0 time.Time) error

func (*MockConn) DeleteUser

func (_m *MockConn) DeleteUser(_param0 string) error

func (*MockConn) EXPECT

func (_m *MockConn) EXPECT() *_MockConnRecorder

func (*MockConn) GetAdminRoles

func (_m *MockConn) GetAdminRoles() ([]string, error)

func (*MockConn) GetAsset

func (_m *MockConn) GetAsset(_param0 string, _param1 *skydb.Asset) error

func (*MockConn) GetDefaultRoles

func (_m *MockConn) GetDefaultRoles() ([]string, error)

func (*MockConn) GetDevice

func (_m *MockConn) GetDevice(_param0 string, _param1 *skydb.Device) error

func (*MockConn) GetRecordAccess

func (_m *MockConn) GetRecordAccess(_param0 string) (skydb.RecordACL, error)

func (*MockConn) GetUser

func (_m *MockConn) GetUser(_param0 string, _param1 *skydb.UserInfo) error

func (*MockConn) GetUserByPrincipalID

func (_m *MockConn) GetUserByPrincipalID(_param0 string, _param1 *skydb.UserInfo) error

func (*MockConn) GetUserByUsernameEmail

func (_m *MockConn) GetUserByUsernameEmail(_param0 string, _param1 string, _param2 *skydb.UserInfo) error

func (*MockConn) PrivateDB

func (_m *MockConn) PrivateDB(_param0 string) skydb.Database

func (*MockConn) PublicDB

func (_m *MockConn) PublicDB() skydb.Database

func (*MockConn) QueryDevicesByUser

func (_m *MockConn) QueryDevicesByUser(_param0 string) ([]skydb.Device, error)

func (*MockConn) QueryRelation

func (_m *MockConn) QueryRelation(_param0 string, _param1 string, _param2 string, _param3 skydb.QueryConfig) []skydb.UserInfo

func (*MockConn) QueryRelationCount

func (_m *MockConn) QueryRelationCount(_param0 string, _param1 string, _param2 string) (uint64, error)

func (*MockConn) QueryUser

func (_m *MockConn) QueryUser(_param0 []string, _param1 []string) ([]skydb.UserInfo, error)

func (*MockConn) RemoveRelation

func (_m *MockConn) RemoveRelation(_param0 string, _param1 string, _param2 string) error

func (*MockConn) SaveAsset

func (_m *MockConn) SaveAsset(_param0 *skydb.Asset) error

func (*MockConn) SaveDevice

func (_m *MockConn) SaveDevice(_param0 *skydb.Device) error

func (*MockConn) SetAdminRoles

func (_m *MockConn) SetAdminRoles(_param0 []string) error

func (*MockConn) SetDefaultRoles

func (_m *MockConn) SetDefaultRoles(_param0 []string) error

func (*MockConn) SetRecordAccess

func (_m *MockConn) SetRecordAccess(_param0 string, _param1 skydb.RecordACL) error

func (*MockConn) Subscribe

func (_m *MockConn) Subscribe(_param0 chan skydb.RecordEvent) error

func (*MockConn) UnionDB

func (_m *MockConn) UnionDB() skydb.Database

func (*MockConn) UpdateUser

func (_m *MockConn) UpdateUser(_param0 *skydb.UserInfo) error

type MockDatabase

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

Mock of Database interface

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

func (*MockDatabase) Conn

func (_m *MockDatabase) Conn() skydb.Conn

func (*MockDatabase) DatabaseType

func (_m *MockDatabase) DatabaseType() skydb.DatabaseType

func (*MockDatabase) Delete

func (_m *MockDatabase) Delete(_param0 skydb.RecordID) error

func (*MockDatabase) DeleteSchema

func (_m *MockDatabase) DeleteSchema(_param0 string, _param1 string) error

func (*MockDatabase) DeleteSubscription

func (_m *MockDatabase) DeleteSubscription(_param0 string, _param1 string) error

func (*MockDatabase) EXPECT

func (_m *MockDatabase) EXPECT() *_MockDatabaseRecorder

func (*MockDatabase) Extend

func (_m *MockDatabase) Extend(_param0 string, _param1 skydb.RecordSchema) error

func (*MockDatabase) Get

func (_m *MockDatabase) Get(_param0 skydb.RecordID, _param1 *skydb.Record) error

func (*MockDatabase) GetByIDs

func (_m *MockDatabase) GetByIDs(_param0 []skydb.RecordID) (*skydb.Rows, error)

func (*MockDatabase) GetMatchingSubscriptions

func (_m *MockDatabase) GetMatchingSubscriptions(_param0 *skydb.Record) []skydb.Subscription

func (*MockDatabase) GetRecordSchemas

func (_m *MockDatabase) GetRecordSchemas() (map[string]skydb.RecordSchema, error)

func (*MockDatabase) GetSchema

func (_m *MockDatabase) GetSchema(_param0 string) (skydb.RecordSchema, error)

func (*MockDatabase) GetSubscription

func (_m *MockDatabase) GetSubscription(_param0 string, _param1 string, _param2 *skydb.Subscription) error

func (*MockDatabase) GetSubscriptionsByDeviceID

func (_m *MockDatabase) GetSubscriptionsByDeviceID(_param0 string) []skydb.Subscription

func (*MockDatabase) ID

func (_m *MockDatabase) ID() string

func (*MockDatabase) IsReadOnly

func (_m *MockDatabase) IsReadOnly() bool

func (*MockDatabase) Query

func (_m *MockDatabase) Query(_param0 *skydb.Query) (*skydb.Rows, error)

func (*MockDatabase) QueryCount

func (_m *MockDatabase) QueryCount(_param0 *skydb.Query) (uint64, error)

func (*MockDatabase) RenameSchema

func (_m *MockDatabase) RenameSchema(_param0 string, _param1 string, _param2 string) error

func (*MockDatabase) Save

func (_m *MockDatabase) Save(_param0 *skydb.Record) error

func (*MockDatabase) SaveSubscription

func (_m *MockDatabase) SaveSubscription(_param0 *skydb.Subscription) error

func (*MockDatabase) UserRecordType

func (_m *MockDatabase) UserRecordType() string

Jump to

Keyboard shortcuts

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