Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClock
- type MockClockMockRecorder
- type MockCluster
- type MockClusterMockRecorder
- type MockDB
- type MockDBMockRecorder
- type MockFileSystem
- func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error
- func (m *MockFileSystem) CopyDir(arg0, arg1 string) error
- func (m *MockFileSystem) CopyFile(arg0, arg1 string) error
- func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) Exists(arg0 string) bool
- func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)
- func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)
- func (m *MockFileSystem) Remove(arg0 string) error
- func (m *MockFileSystem) RemoveAll(arg0 string) error
- func (m *MockFileSystem) Rename(arg0, arg1 string) error
- func (m *MockFileSystem) Symlink(arg0, arg1 string) error
- func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call
- type MockNode
- type MockNodeMockRecorder
- type MockOS
- type MockOSMockRecorder
- type MockRows
- func (m *MockRows) Close() error
- func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
- func (m *MockRows) Columns() ([]string, error)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) Next() bool
- func (m *MockRows) Scan(arg0 ...interface{}) error
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- type MockServer
- type MockServerMockRecorder
- type MockState
- type MockStateMockRecorder
- type MockStoreProvider
- type MockStoreProviderMockRecorder
- type MockTx
- type MockTxMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClock ¶
type MockClock struct {
// contains filtered or unexported fields
}
MockClock is a mock of Clock interface
func NewMockClock ¶
func NewMockClock(ctrl *gomock.Controller) *MockClock
NewMockClock creates a new mock instance
func (*MockClock) EXPECT ¶
func (m *MockClock) EXPECT() *MockClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockClockMockRecorder ¶
type MockClockMockRecorder struct {
// contains filtered or unexported fields
}
MockClockMockRecorder is the mock recorder for MockClock
func (*MockClockMockRecorder) After ¶
func (mr *MockClockMockRecorder) After(arg0 interface{}) *gomock.Call
After indicates an expected call of After
func (*MockClockMockRecorder) Now ¶
func (mr *MockClockMockRecorder) Now() *gomock.Call
Now indicates an expected call of Now
func (*MockClockMockRecorder) UTC ¶
func (mr *MockClockMockRecorder) UTC() *gomock.Call
UTC indicates an expected call of UTC
type MockCluster ¶
type MockCluster struct {
// contains filtered or unexported fields
}
MockCluster is a mock of Cluster interface
func NewMockCluster ¶
func NewMockCluster(ctrl *gomock.Controller) *MockCluster
NewMockCluster creates a new mock instance
func (*MockCluster) EXPECT ¶
func (m *MockCluster) EXPECT() *MockClusterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCluster) EnterExclusive ¶
func (m *MockCluster) EnterExclusive() error
EnterExclusive mocks base method
func (*MockCluster) ExitExclusive ¶
func (m *MockCluster) ExitExclusive(arg0 func(*db.ClusterTx) error) error
ExitExclusive mocks base method
func (*MockCluster) Transaction ¶
func (m *MockCluster) Transaction(arg0 func(*db.ClusterTx) error) error
Transaction mocks base method
type MockClusterMockRecorder ¶
type MockClusterMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterMockRecorder is the mock recorder for MockCluster
func (*MockClusterMockRecorder) EnterExclusive ¶
func (mr *MockClusterMockRecorder) EnterExclusive() *gomock.Call
EnterExclusive indicates an expected call of EnterExclusive
func (*MockClusterMockRecorder) ExitExclusive ¶
func (mr *MockClusterMockRecorder) ExitExclusive(arg0 interface{}) *gomock.Call
ExitExclusive indicates an expected call of ExitExclusive
func (*MockClusterMockRecorder) NodeID ¶
func (mr *MockClusterMockRecorder) NodeID(arg0 interface{}) *gomock.Call
NodeID indicates an expected call of NodeID
func (*MockClusterMockRecorder) Transaction ¶
func (mr *MockClusterMockRecorder) Transaction(arg0 interface{}) *gomock.Call
Transaction indicates an expected call of Transaction
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) Begin ¶
func (mr *MockDBMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDBMockRecorder) Ping ¶
func (mr *MockDBMockRecorder) Ping() *gomock.Call
Ping indicates an expected call of Ping
type MockFileSystem ¶
type MockFileSystem struct {
// contains filtered or unexported fields
}
MockFileSystem is a mock of FileSystem interface
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
NewMockFileSystem creates a new mock instance
func (*MockFileSystem) Chtimes ¶
func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error
Chtimes mocks base method
func (*MockFileSystem) CopyDir ¶
func (m *MockFileSystem) CopyDir(arg0, arg1 string) error
CopyDir mocks base method
func (*MockFileSystem) CopyFile ¶
func (m *MockFileSystem) CopyFile(arg0, arg1 string) error
CopyFile mocks base method
func (*MockFileSystem) Create ¶
func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)
Create mocks base method
func (*MockFileSystem) EXPECT ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileSystem) Exists ¶
func (m *MockFileSystem) Exists(arg0 string) bool
Exists mocks base method
func (*MockFileSystem) Mkdir ¶
func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error
Mkdir mocks base method
func (*MockFileSystem) MkdirAll ¶
func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
MkdirAll mocks base method
func (*MockFileSystem) Open ¶
func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)
Open mocks base method
func (*MockFileSystem) Remove ¶
func (m *MockFileSystem) Remove(arg0 string) error
Remove mocks base method
func (*MockFileSystem) RemoveAll ¶
func (m *MockFileSystem) RemoveAll(arg0 string) error
RemoveAll mocks base method
func (*MockFileSystem) Rename ¶
func (m *MockFileSystem) Rename(arg0, arg1 string) error
Rename mocks base method
func (*MockFileSystem) Symlink ¶
func (m *MockFileSystem) Symlink(arg0, arg1 string) error
Symlink mocks base method
type MockFileSystemMockRecorder ¶
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem
func (*MockFileSystemMockRecorder) Chtimes ¶
func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call
Chtimes indicates an expected call of Chtimes
func (*MockFileSystemMockRecorder) CopyDir ¶
func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call
CopyDir indicates an expected call of CopyDir
func (*MockFileSystemMockRecorder) CopyFile ¶
func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call
CopyFile indicates an expected call of CopyFile
func (*MockFileSystemMockRecorder) Create ¶
func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockFileSystemMockRecorder) Exists ¶
func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists
func (*MockFileSystemMockRecorder) Lock ¶
func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call
Lock indicates an expected call of Lock
func (*MockFileSystemMockRecorder) Mkdir ¶
func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call
Mkdir indicates an expected call of Mkdir
func (*MockFileSystemMockRecorder) MkdirAll ¶
func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
MkdirAll indicates an expected call of MkdirAll
func (*MockFileSystemMockRecorder) Open ¶
func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open
func (*MockFileSystemMockRecorder) OpenFile ¶
func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
OpenFile indicates an expected call of OpenFile
func (*MockFileSystemMockRecorder) Remove ¶
func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockFileSystemMockRecorder) RemoveAll ¶
func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
RemoveAll indicates an expected call of RemoveAll
func (*MockFileSystemMockRecorder) Rename ¶
func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
Rename indicates an expected call of Rename
func (*MockFileSystemMockRecorder) Symlink ¶
func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call
Symlink indicates an expected call of Symlink
func (*MockFileSystemMockRecorder) Walk ¶
func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call
Walk indicates an expected call of Walk
type MockNode ¶
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface
func NewMockNode ¶
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance
func (*MockNode) EXPECT ¶
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNodeMockRecorder ¶
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode
func (*MockNodeMockRecorder) Transaction ¶
func (mr *MockNodeMockRecorder) Transaction(arg0 interface{}) *gomock.Call
Transaction indicates an expected call of Transaction
type MockOS ¶
type MockOS struct {
// contains filtered or unexported fields
}
MockOS is a mock of OS interface
func NewMockOS ¶
func NewMockOS(ctrl *gomock.Controller) *MockOS
NewMockOS creates a new mock instance
func (*MockOS) EXPECT ¶
func (m *MockOS) EXPECT() *MockOSMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockOS) GlobalDatabaseDir ¶
GlobalDatabaseDir mocks base method
func (*MockOS) GlobalDatabasePath ¶
GlobalDatabasePath mocks base method
func (*MockOS) LocalDatabasePath ¶
LocalDatabasePath mocks base method
type MockOSMockRecorder ¶
type MockOSMockRecorder struct {
// contains filtered or unexported fields
}
MockOSMockRecorder is the mock recorder for MockOS
func (*MockOSMockRecorder) GlobalDatabaseDir ¶
func (mr *MockOSMockRecorder) GlobalDatabaseDir() *gomock.Call
GlobalDatabaseDir indicates an expected call of GlobalDatabaseDir
func (*MockOSMockRecorder) GlobalDatabasePath ¶
func (mr *MockOSMockRecorder) GlobalDatabasePath() *gomock.Call
GlobalDatabasePath indicates an expected call of GlobalDatabasePath
func (*MockOSMockRecorder) LocalDatabasePath ¶
func (mr *MockOSMockRecorder) LocalDatabasePath() *gomock.Call
LocalDatabasePath indicates an expected call of LocalDatabasePath
func (*MockOSMockRecorder) VarDir ¶
func (mr *MockOSMockRecorder) VarDir() *gomock.Call
VarDir indicates an expected call of VarDir
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance
func (*MockRows) ColumnTypes ¶
func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
ColumnTypes mocks base method
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockRowsMockRecorder) ColumnTypes ¶
func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
ColumnTypes indicates an expected call of ColumnTypes
func (*MockRowsMockRecorder) Columns ¶
func (mr *MockRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
MockServer is a mock of Server interface
func NewMockServer ¶
func NewMockServer(ctrl *gomock.Controller) *MockServer
NewMockServer creates a new mock instance
func (*MockServer) EXPECT ¶
func (m *MockServer) EXPECT() *MockServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockServerMockRecorder ¶
type MockServerMockRecorder struct {
// contains filtered or unexported fields
}
MockServerMockRecorder is the mock recorder for MockServer
func (*MockServerMockRecorder) Close ¶
func (mr *MockServerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockServerMockRecorder) Dump ¶
func (mr *MockServerMockRecorder) Dump(arg0, arg1 interface{}) *gomock.Call
Dump indicates an expected call of Dump
type MockState ¶
type MockState struct {
// contains filtered or unexported fields
}
MockState is a mock of State interface
func NewMockState ¶
func NewMockState(ctrl *gomock.Controller) *MockState
NewMockState creates a new mock instance
func (*MockState) EXPECT ¶
func (m *MockState) EXPECT() *MockStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStateMockRecorder ¶
type MockStateMockRecorder struct {
// contains filtered or unexported fields
}
MockStateMockRecorder is the mock recorder for MockState
func (*MockStateMockRecorder) Cluster ¶
func (mr *MockStateMockRecorder) Cluster() *gomock.Call
Cluster indicates an expected call of Cluster
func (*MockStateMockRecorder) Node ¶
func (mr *MockStateMockRecorder) Node() *gomock.Call
Node indicates an expected call of Node
type MockStoreProvider ¶
type MockStoreProvider struct {
// contains filtered or unexported fields
}
MockStoreProvider is a mock of StoreProvider interface
func NewMockStoreProvider ¶
func NewMockStoreProvider(ctrl *gomock.Controller) *MockStoreProvider
NewMockStoreProvider creates a new mock instance
func (*MockStoreProvider) Disk ¶
func (m *MockStoreProvider) Disk(arg0 database.DB) (cluster.ServerStore, error)
Disk mocks base method
func (*MockStoreProvider) EXPECT ¶
func (m *MockStoreProvider) EXPECT() *MockStoreProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStoreProvider) Memory ¶
func (m *MockStoreProvider) Memory() cluster.ServerStore
Memory mocks base method
type MockStoreProviderMockRecorder ¶
type MockStoreProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreProviderMockRecorder is the mock recorder for MockStoreProvider
func (*MockStoreProviderMockRecorder) Disk ¶
func (mr *MockStoreProviderMockRecorder) Disk(arg0 interface{}) *gomock.Call
Disk indicates an expected call of Disk
func (*MockStoreProviderMockRecorder) Memory ¶
func (mr *MockStoreProviderMockRecorder) Memory() *gomock.Call
Memory indicates an expected call of Memory
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
MockTx is a mock of Tx interface
func NewMockTx ¶
func NewMockTx(ctrl *gomock.Controller) *MockTx
NewMockTx creates a new mock instance
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTxMockRecorder) Exec ¶
func (mr *MockTxMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Query indicates an expected call of Query
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback