Documentation ¶
Index ¶
- type MockJobStore
- func (_m *MockJobStore) CreateBuckets(_a0 *bbolt.Tx) error
- func (_m *MockJobStore) DeleteJobPlan(tx *bbolt.Tx, name string) error
- func (_m *MockJobStore) DeleteJobState(tx *bbolt.Tx, name string) error
- func (_m *MockJobStore) EXPECT() *MockJobStore_Expecter
- func (_m *MockJobStore) GetJobPlan(tx *bbolt.Tx, name string) (*raft_log.CompactionJobPlan, error)
- func (_m *MockJobStore) ListEntries(_a0 *bbolt.Tx) iter.Iterator[*raft_log.CompactionJobState]
- func (_m *MockJobStore) StoreJobPlan(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobPlan) error
- func (_m *MockJobStore) StoreJobState(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobState) error
- type MockJobStore_CreateBuckets_Call
- func (_c *MockJobStore_CreateBuckets_Call) Return(_a0 error) *MockJobStore_CreateBuckets_Call
- func (_c *MockJobStore_CreateBuckets_Call) Run(run func(_a0 *bbolt.Tx)) *MockJobStore_CreateBuckets_Call
- func (_c *MockJobStore_CreateBuckets_Call) RunAndReturn(run func(*bbolt.Tx) error) *MockJobStore_CreateBuckets_Call
- type MockJobStore_DeleteJobPlan_Call
- func (_c *MockJobStore_DeleteJobPlan_Call) Return(_a0 error) *MockJobStore_DeleteJobPlan_Call
- func (_c *MockJobStore_DeleteJobPlan_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_DeleteJobPlan_Call
- func (_c *MockJobStore_DeleteJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, string) error) *MockJobStore_DeleteJobPlan_Call
- type MockJobStore_DeleteJobState_Call
- func (_c *MockJobStore_DeleteJobState_Call) Return(_a0 error) *MockJobStore_DeleteJobState_Call
- func (_c *MockJobStore_DeleteJobState_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_DeleteJobState_Call
- func (_c *MockJobStore_DeleteJobState_Call) RunAndReturn(run func(*bbolt.Tx, string) error) *MockJobStore_DeleteJobState_Call
- type MockJobStore_Expecter
- func (_e *MockJobStore_Expecter) CreateBuckets(_a0 interface{}) *MockJobStore_CreateBuckets_Call
- func (_e *MockJobStore_Expecter) DeleteJobPlan(tx interface{}, name interface{}) *MockJobStore_DeleteJobPlan_Call
- func (_e *MockJobStore_Expecter) DeleteJobState(tx interface{}, name interface{}) *MockJobStore_DeleteJobState_Call
- func (_e *MockJobStore_Expecter) GetJobPlan(tx interface{}, name interface{}) *MockJobStore_GetJobPlan_Call
- func (_e *MockJobStore_Expecter) ListEntries(_a0 interface{}) *MockJobStore_ListEntries_Call
- func (_e *MockJobStore_Expecter) StoreJobPlan(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobPlan_Call
- func (_e *MockJobStore_Expecter) StoreJobState(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobState_Call
- type MockJobStore_GetJobPlan_Call
- func (_c *MockJobStore_GetJobPlan_Call) Return(_a0 *raft_log.CompactionJobPlan, _a1 error) *MockJobStore_GetJobPlan_Call
- func (_c *MockJobStore_GetJobPlan_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_GetJobPlan_Call
- func (_c *MockJobStore_GetJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, string) (*raft_log.CompactionJobPlan, error)) *MockJobStore_GetJobPlan_Call
- type MockJobStore_ListEntries_Call
- func (_c *MockJobStore_ListEntries_Call) Return(_a0 iter.Iterator[*raft_log.CompactionJobState]) *MockJobStore_ListEntries_Call
- func (_c *MockJobStore_ListEntries_Call) Run(run func(_a0 *bbolt.Tx)) *MockJobStore_ListEntries_Call
- func (_c *MockJobStore_ListEntries_Call) RunAndReturn(run func(*bbolt.Tx) iter.Iterator[*raft_log.CompactionJobState]) *MockJobStore_ListEntries_Call
- type MockJobStore_StoreJobPlan_Call
- func (_c *MockJobStore_StoreJobPlan_Call) Return(_a0 error) *MockJobStore_StoreJobPlan_Call
- func (_c *MockJobStore_StoreJobPlan_Call) Run(run func(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobPlan)) *MockJobStore_StoreJobPlan_Call
- func (_c *MockJobStore_StoreJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, *raft_log.CompactionJobPlan) error) *MockJobStore_StoreJobPlan_Call
- type MockJobStore_StoreJobState_Call
- func (_c *MockJobStore_StoreJobState_Call) Return(_a0 error) *MockJobStore_StoreJobState_Call
- func (_c *MockJobStore_StoreJobState_Call) Run(run func(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobState)) *MockJobStore_StoreJobState_Call
- func (_c *MockJobStore_StoreJobState_Call) RunAndReturn(run func(*bbolt.Tx, *raft_log.CompactionJobState) error) *MockJobStore_StoreJobState_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJobStore ¶
MockJobStore is an autogenerated mock type for the JobStore type
func NewMockJobStore ¶
func NewMockJobStore(t interface { mock.TestingT Cleanup(func()) }) *MockJobStore
NewMockJobStore creates a new instance of MockJobStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockJobStore) CreateBuckets ¶
func (_m *MockJobStore) CreateBuckets(_a0 *bbolt.Tx) error
CreateBuckets provides a mock function with given fields: _a0
func (*MockJobStore) DeleteJobPlan ¶
func (_m *MockJobStore) DeleteJobPlan(tx *bbolt.Tx, name string) error
DeleteJobPlan provides a mock function with given fields: tx, name
func (*MockJobStore) DeleteJobState ¶
func (_m *MockJobStore) DeleteJobState(tx *bbolt.Tx, name string) error
DeleteJobState provides a mock function with given fields: tx, name
func (*MockJobStore) EXPECT ¶
func (_m *MockJobStore) EXPECT() *MockJobStore_Expecter
func (*MockJobStore) GetJobPlan ¶
func (_m *MockJobStore) GetJobPlan(tx *bbolt.Tx, name string) (*raft_log.CompactionJobPlan, error)
GetJobPlan provides a mock function with given fields: tx, name
func (*MockJobStore) ListEntries ¶
func (_m *MockJobStore) ListEntries(_a0 *bbolt.Tx) iter.Iterator[*raft_log.CompactionJobState]
ListEntries provides a mock function with given fields: _a0
func (*MockJobStore) StoreJobPlan ¶
func (_m *MockJobStore) StoreJobPlan(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobPlan) error
StoreJobPlan provides a mock function with given fields: _a0, _a1
func (*MockJobStore) StoreJobState ¶
func (_m *MockJobStore) StoreJobState(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobState) error
StoreJobState provides a mock function with given fields: _a0, _a1
type MockJobStore_CreateBuckets_Call ¶
MockJobStore_CreateBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBuckets'
func (*MockJobStore_CreateBuckets_Call) Return ¶
func (_c *MockJobStore_CreateBuckets_Call) Return(_a0 error) *MockJobStore_CreateBuckets_Call
func (*MockJobStore_CreateBuckets_Call) Run ¶
func (_c *MockJobStore_CreateBuckets_Call) Run(run func(_a0 *bbolt.Tx)) *MockJobStore_CreateBuckets_Call
func (*MockJobStore_CreateBuckets_Call) RunAndReturn ¶
func (_c *MockJobStore_CreateBuckets_Call) RunAndReturn(run func(*bbolt.Tx) error) *MockJobStore_CreateBuckets_Call
type MockJobStore_DeleteJobPlan_Call ¶
MockJobStore_DeleteJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteJobPlan'
func (*MockJobStore_DeleteJobPlan_Call) Return ¶
func (_c *MockJobStore_DeleteJobPlan_Call) Return(_a0 error) *MockJobStore_DeleteJobPlan_Call
func (*MockJobStore_DeleteJobPlan_Call) Run ¶
func (_c *MockJobStore_DeleteJobPlan_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_DeleteJobPlan_Call
func (*MockJobStore_DeleteJobPlan_Call) RunAndReturn ¶
func (_c *MockJobStore_DeleteJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, string) error) *MockJobStore_DeleteJobPlan_Call
type MockJobStore_DeleteJobState_Call ¶
MockJobStore_DeleteJobState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteJobState'
func (*MockJobStore_DeleteJobState_Call) Return ¶
func (_c *MockJobStore_DeleteJobState_Call) Return(_a0 error) *MockJobStore_DeleteJobState_Call
func (*MockJobStore_DeleteJobState_Call) Run ¶
func (_c *MockJobStore_DeleteJobState_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_DeleteJobState_Call
func (*MockJobStore_DeleteJobState_Call) RunAndReturn ¶
func (_c *MockJobStore_DeleteJobState_Call) RunAndReturn(run func(*bbolt.Tx, string) error) *MockJobStore_DeleteJobState_Call
type MockJobStore_Expecter ¶
type MockJobStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockJobStore_Expecter) CreateBuckets ¶
func (_e *MockJobStore_Expecter) CreateBuckets(_a0 interface{}) *MockJobStore_CreateBuckets_Call
CreateBuckets is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockJobStore_Expecter) DeleteJobPlan ¶
func (_e *MockJobStore_Expecter) DeleteJobPlan(tx interface{}, name interface{}) *MockJobStore_DeleteJobPlan_Call
DeleteJobPlan is a helper method to define mock.On call
- tx *bbolt.Tx
- name string
func (*MockJobStore_Expecter) DeleteJobState ¶
func (_e *MockJobStore_Expecter) DeleteJobState(tx interface{}, name interface{}) *MockJobStore_DeleteJobState_Call
DeleteJobState is a helper method to define mock.On call
- tx *bbolt.Tx
- name string
func (*MockJobStore_Expecter) GetJobPlan ¶
func (_e *MockJobStore_Expecter) GetJobPlan(tx interface{}, name interface{}) *MockJobStore_GetJobPlan_Call
GetJobPlan is a helper method to define mock.On call
- tx *bbolt.Tx
- name string
func (*MockJobStore_Expecter) ListEntries ¶
func (_e *MockJobStore_Expecter) ListEntries(_a0 interface{}) *MockJobStore_ListEntries_Call
ListEntries is a helper method to define mock.On call
- _a0 *bbolt.Tx
func (*MockJobStore_Expecter) StoreJobPlan ¶
func (_e *MockJobStore_Expecter) StoreJobPlan(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobPlan_Call
StoreJobPlan is a helper method to define mock.On call
- _a0 *bbolt.Tx
- _a1 *raft_log.CompactionJobPlan
func (*MockJobStore_Expecter) StoreJobState ¶
func (_e *MockJobStore_Expecter) StoreJobState(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobState_Call
StoreJobState is a helper method to define mock.On call
- _a0 *bbolt.Tx
- _a1 *raft_log.CompactionJobState
type MockJobStore_GetJobPlan_Call ¶
MockJobStore_GetJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobPlan'
func (*MockJobStore_GetJobPlan_Call) Return ¶
func (_c *MockJobStore_GetJobPlan_Call) Return(_a0 *raft_log.CompactionJobPlan, _a1 error) *MockJobStore_GetJobPlan_Call
func (*MockJobStore_GetJobPlan_Call) Run ¶
func (_c *MockJobStore_GetJobPlan_Call) Run(run func(tx *bbolt.Tx, name string)) *MockJobStore_GetJobPlan_Call
func (*MockJobStore_GetJobPlan_Call) RunAndReturn ¶
func (_c *MockJobStore_GetJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, string) (*raft_log.CompactionJobPlan, error)) *MockJobStore_GetJobPlan_Call
type MockJobStore_ListEntries_Call ¶
MockJobStore_ListEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntries'
func (*MockJobStore_ListEntries_Call) Return ¶
func (_c *MockJobStore_ListEntries_Call) Return(_a0 iter.Iterator[*raft_log.CompactionJobState]) *MockJobStore_ListEntries_Call
func (*MockJobStore_ListEntries_Call) Run ¶
func (_c *MockJobStore_ListEntries_Call) Run(run func(_a0 *bbolt.Tx)) *MockJobStore_ListEntries_Call
func (*MockJobStore_ListEntries_Call) RunAndReturn ¶
func (_c *MockJobStore_ListEntries_Call) RunAndReturn(run func(*bbolt.Tx) iter.Iterator[*raft_log.CompactionJobState]) *MockJobStore_ListEntries_Call
type MockJobStore_StoreJobPlan_Call ¶
MockJobStore_StoreJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreJobPlan'
func (*MockJobStore_StoreJobPlan_Call) Return ¶
func (_c *MockJobStore_StoreJobPlan_Call) Return(_a0 error) *MockJobStore_StoreJobPlan_Call
func (*MockJobStore_StoreJobPlan_Call) Run ¶
func (_c *MockJobStore_StoreJobPlan_Call) Run(run func(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobPlan)) *MockJobStore_StoreJobPlan_Call
func (*MockJobStore_StoreJobPlan_Call) RunAndReturn ¶
func (_c *MockJobStore_StoreJobPlan_Call) RunAndReturn(run func(*bbolt.Tx, *raft_log.CompactionJobPlan) error) *MockJobStore_StoreJobPlan_Call
type MockJobStore_StoreJobState_Call ¶
MockJobStore_StoreJobState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreJobState'
func (*MockJobStore_StoreJobState_Call) Return ¶
func (_c *MockJobStore_StoreJobState_Call) Return(_a0 error) *MockJobStore_StoreJobState_Call
func (*MockJobStore_StoreJobState_Call) Run ¶
func (_c *MockJobStore_StoreJobState_Call) Run(run func(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobState)) *MockJobStore_StoreJobState_Call
func (*MockJobStore_StoreJobState_Call) RunAndReturn ¶
func (_c *MockJobStore_StoreJobState_Call) RunAndReturn(run func(*bbolt.Tx, *raft_log.CompactionJobState) error) *MockJobStore_StoreJobState_Call