testutil

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChangeState

type MockChangeState struct {
	mock.Mock
}

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.

Jump to

Keyboard shortcuts

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