mocks

package
v0.0.0-...-d2438c5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

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

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) After

func (m *MockClock) After(arg0 time.Duration) <-chan time.Time

After mocks base method

func (*MockClock) EXPECT

func (m *MockClock) EXPECT() *MockClockMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClock) Now

func (m *MockClock) Now() time.Time

Now mocks base method

func (*MockClock) UTC

func (m *MockClock) UTC() time.Time

UTC mocks base method

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) NodeID

func (m *MockCluster) NodeID(arg0 int64)

NodeID 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) Begin

func (m *MockDB) Begin() (database.Tx, error)

Begin mocks base method

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDB) Ping

func (m *MockDB) Ping() error

Ping mocks base method

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

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) Lock

func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)

Lock 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) OpenFile

func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)

OpenFile 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 (m *MockFileSystem) Symlink(arg0, arg1 string) error

Symlink mocks base method

func (*MockFileSystem) Walk

func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error

Walk 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 (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

func (*MockNode) Transaction

func (m *MockNode) Transaction(arg0 func(*db.NodeTx) error) error

Transaction mocks base method

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

func (m *MockOS) GlobalDatabaseDir() string

GlobalDatabaseDir mocks base method

func (*MockOS) GlobalDatabasePath

func (m *MockOS) GlobalDatabasePath() string

GlobalDatabasePath mocks base method

func (*MockOS) LocalDatabasePath

func (m *MockOS) LocalDatabasePath() string

LocalDatabasePath mocks base method

func (*MockOS) VarDir

func (m *MockOS) VarDir() string

VarDir 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) Close

func (m *MockRows) Close() error

Close mocks base method

func (*MockRows) ColumnTypes

func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)

ColumnTypes mocks base method

func (*MockRows) Columns

func (m *MockRows) Columns() ([]string, error)

Columns mocks base method

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method

func (*MockRows) Scan

func (m *MockRows) Scan(arg0 ...interface{}) error

Scan mocks base method

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) Close

func (m *MockServer) Close() error

Close mocks base method

func (*MockServer) Dump

func (m *MockServer) Dump(arg0, arg1 string) error

Dump mocks base method

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) Cluster

func (m *MockState) Cluster() notifier.Cluster

Cluster mocks base method

func (*MockState) EXPECT

func (m *MockState) EXPECT() *MockStateMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockState) Node

func (m *MockState) Node() notifier.Node

Node mocks base method

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

Disk mocks base method

func (*MockStoreProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStoreProvider) Memory

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

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) Commit

func (m *MockTx) Commit() error

Commit mocks base method

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTx) Exec

func (m *MockTx) Exec(arg0 string, arg1 ...interface{}) (sql.Result, error)

Exec mocks base method

func (*MockTx) Query

func (m *MockTx) Query(arg0 string, arg1 ...interface{}) (database.Rows, error)

Query mocks base method

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method

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

Jump to

Keyboard shortcuts

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