Documentation ¶
Index ¶
- type MockChangeState
- func (m *MockChangeState) ApplyChangeLog(cl *spec.ChangeLog) error
- func (m *MockChangeState) ChangeHash() uint64
- func (m *MockChangeState) ChangeLogs() []*spec.ChangeLog
- func (m *MockChangeState) DocumentManager() resources.DocumentManager
- func (m *MockChangeState) ProcessChangeLog(cl *spec.ChangeLog, a bool) error
- func (m *MockChangeState) Raft() *raft.Raft
- func (m *MockChangeState) Ready() bool
- func (m *MockChangeState) ReloadState(a bool, cls ...*spec.ChangeLog) error
- func (m *MockChangeState) ResourceManager() *resources.ResourceManager
- func (m *MockChangeState) SetReady(ready bool)
- func (m *MockChangeState) SetupRaft(*raft.Raft, *raftadmin.Client)
- func (m *MockChangeState) Version() string
- func (m *MockChangeState) WaitForChanges(cl *spec.ChangeLog) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChangeState ¶
func NewMockChangeState ¶
func NewMockChangeState() *MockChangeState
func (*MockChangeState) ApplyChangeLog ¶
func (m *MockChangeState) ApplyChangeLog(cl *spec.ChangeLog) error
ApplyChangeLog implements changestate.ChangeState.
func (*MockChangeState) ChangeHash ¶
func (m *MockChangeState) ChangeHash() uint64
ChangeHash implements changestate.ChangeState.
func (*MockChangeState) ChangeLogs ¶ added in v0.11.0
func (m *MockChangeState) ChangeLogs() []*spec.ChangeLog
ChangeLogs implements changestate.ChangeState.
func (*MockChangeState) DocumentManager ¶
func (m *MockChangeState) DocumentManager() resources.DocumentManager
DocumentManager implements changestate.ChangeState.
func (*MockChangeState) ProcessChangeLog ¶
func (m *MockChangeState) ProcessChangeLog(cl *spec.ChangeLog, a bool) error
ProcessChangeLog implements changestate.ChangeState.
func (*MockChangeState) Raft ¶
func (m *MockChangeState) Raft() *raft.Raft
Raft implements changestate.ChangeState.
func (*MockChangeState) Ready ¶
func (m *MockChangeState) Ready() bool
Ready implements changestate.ChangeState.
func (*MockChangeState) ReloadState ¶
func (m *MockChangeState) ReloadState(a bool, cls ...*spec.ChangeLog) error
ReloadState implements changestate.ChangeState.
func (*MockChangeState) ResourceManager ¶
func (m *MockChangeState) ResourceManager() *resources.ResourceManager
ResourceManager implements changestate.ChangeState.
func (*MockChangeState) SetReady ¶
func (m *MockChangeState) SetReady(ready bool)
SetReady implements changestate.ChangeState.
func (*MockChangeState) SetupRaft ¶
func (m *MockChangeState) SetupRaft(*raft.Raft, *raftadmin.Client)
SetupRaft implements changestate.ChangeState.
func (*MockChangeState) Version ¶
func (m *MockChangeState) Version() string
Version implements changestate.ChangeState.
func (*MockChangeState) WaitForChanges ¶
func (m *MockChangeState) WaitForChanges(cl *spec.ChangeLog) error
WaitForChanges implements changestate.ChangeState.
Click to show internal directories.
Click to hide internal directories.