Documentation ¶
Overview ¶
Package mocksnapshotstore is a generated GoMock package.
Index ¶
- func NewInMemSnapshotStore() snapshotstore.SnapshotStore
- type MockSnapshotStore
- func (m *MockSnapshotStore) Create(version raft.SnapshotVersion, index, term uint64, ...) (raft.SnapshotSink, error)
- func (m *MockSnapshotStore) EXPECT() *MockSnapshotStoreMockRecorder
- func (m *MockSnapshotStore) List() ([]*raft.SnapshotMeta, error)
- func (m *MockSnapshotStore) Open(id string) (*raft.SnapshotMeta, io.ReadCloser, error)
- type MockSnapshotStoreMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemSnapshotStore ¶
func NewInMemSnapshotStore() snapshotstore.SnapshotStore
NewInMemSnapshotStore returns in-memory SnapshotStore
Types ¶
type MockSnapshotStore ¶
type MockSnapshotStore struct {
// contains filtered or unexported fields
}
MockSnapshotStore is a mock of SnapshotStore interface
func NewMockSnapshotStore ¶
func NewMockSnapshotStore(ctrl *gomock.Controller) *MockSnapshotStore
NewMockSnapshotStore creates a new mock instance
func (*MockSnapshotStore) Create ¶
func (m *MockSnapshotStore) Create(version raft.SnapshotVersion, index, term uint64, configuration raft.Configuration, configurationIndex uint64, trans raft.Transport) (raft.SnapshotSink, error)
Create mocks base method
func (*MockSnapshotStore) EXPECT ¶
func (m *MockSnapshotStore) EXPECT() *MockSnapshotStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSnapshotStore) List ¶
func (m *MockSnapshotStore) List() ([]*raft.SnapshotMeta, error)
List mocks base method
func (*MockSnapshotStore) Open ¶
func (m *MockSnapshotStore) Open(id string) (*raft.SnapshotMeta, io.ReadCloser, error)
Open mocks base method
type MockSnapshotStoreMockRecorder ¶
type MockSnapshotStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSnapshotStoreMockRecorder is the mock recorder for MockSnapshotStore
func (*MockSnapshotStoreMockRecorder) Create ¶
func (mr *MockSnapshotStoreMockRecorder) Create(version, index, term, configuration, configurationIndex, trans interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockSnapshotStoreMockRecorder) List ¶
func (mr *MockSnapshotStoreMockRecorder) List() *gomock.Call
List indicates an expected call of List
func (*MockSnapshotStoreMockRecorder) Open ¶
func (mr *MockSnapshotStoreMockRecorder) Open(id interface{}) *gomock.Call
Open indicates an expected call of Open
Click to show internal directories.
Click to hide internal directories.