Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_m *Manager) Monitor(key string, f func() error) func() error
- func (_m *Manager) MonitorWithContext(key string, f func(context.Context) error) func(context.Context) error
- func (_m *Manager) PrintReport(logger log.Logger)
- func (_m *Manager) StartWork(key string, steps int) status.WorkItem
- type Manager_Expecter
- func (_e *Manager_Expecter) Monitor(key interface{}, f interface{}) *Manager_Monitor_Call
- func (_e *Manager_Expecter) MonitorWithContext(key interface{}, f interface{}) *Manager_MonitorWithContext_Call
- func (_e *Manager_Expecter) PrintReport(logger interface{}) *Manager_PrintReport_Call
- func (_e *Manager_Expecter) StartWork(key interface{}, steps interface{}) *Manager_StartWork_Call
- type Manager_MonitorWithContext_Call
- func (_c *Manager_MonitorWithContext_Call) Return(_a0 func(context.Context) error) *Manager_MonitorWithContext_Call
- func (_c *Manager_MonitorWithContext_Call) Run(run func(key string, f func(context.Context) error)) *Manager_MonitorWithContext_Call
- func (_c *Manager_MonitorWithContext_Call) RunAndReturn(run func(string, func(context.Context) error) func(context.Context) error) *Manager_MonitorWithContext_Call
- type Manager_Monitor_Call
- type Manager_PrintReport_Call
- type Manager_StartWork_Call
- type WorkItem
- type WorkItem_Expecter
- func (_e *WorkItem_Expecter) Monitor(f interface{}) *WorkItem_Monitor_Call
- func (_e *WorkItem_Expecter) ReportDone() *WorkItem_ReportDone_Call
- func (_e *WorkItem_Expecter) ReportError(err interface{}) *WorkItem_ReportError_Call
- func (_e *WorkItem_Expecter) ReportProgress(step interface{}, progress interface{}) *WorkItem_ReportProgress_Call
- type WorkItem_Monitor_Call
- type WorkItem_ReportDone_Call
- type WorkItem_ReportError_Call
- type WorkItem_ReportProgress_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) MonitorWithContext ¶
func (_m *Manager) MonitorWithContext(key string, f func(context.Context) error) func(context.Context) error
MonitorWithContext provides a mock function with given fields: key, f
func (*Manager) PrintReport ¶
PrintReport provides a mock function with given fields: logger
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Monitor ¶
func (_e *Manager_Expecter) Monitor(key interface{}, f interface{}) *Manager_Monitor_Call
Monitor is a helper method to define mock.On call
- key string
- f func() error
func (*Manager_Expecter) MonitorWithContext ¶
func (_e *Manager_Expecter) MonitorWithContext(key interface{}, f interface{}) *Manager_MonitorWithContext_Call
MonitorWithContext is a helper method to define mock.On call
- key string
- f func(context.Context) error
func (*Manager_Expecter) PrintReport ¶
func (_e *Manager_Expecter) PrintReport(logger interface{}) *Manager_PrintReport_Call
PrintReport is a helper method to define mock.On call
- logger log.Logger
func (*Manager_Expecter) StartWork ¶
func (_e *Manager_Expecter) StartWork(key interface{}, steps interface{}) *Manager_StartWork_Call
StartWork is a helper method to define mock.On call
- key string
- steps int
type Manager_MonitorWithContext_Call ¶
Manager_MonitorWithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MonitorWithContext'
func (*Manager_MonitorWithContext_Call) Return ¶
func (_c *Manager_MonitorWithContext_Call) Return(_a0 func(context.Context) error) *Manager_MonitorWithContext_Call
func (*Manager_MonitorWithContext_Call) Run ¶
func (_c *Manager_MonitorWithContext_Call) Run(run func(key string, f func(context.Context) error)) *Manager_MonitorWithContext_Call
func (*Manager_MonitorWithContext_Call) RunAndReturn ¶
func (_c *Manager_MonitorWithContext_Call) RunAndReturn(run func(string, func(context.Context) error) func(context.Context) error) *Manager_MonitorWithContext_Call
type Manager_Monitor_Call ¶
Manager_Monitor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Monitor'
func (*Manager_Monitor_Call) Return ¶
func (_c *Manager_Monitor_Call) Return(_a0 func() error) *Manager_Monitor_Call
func (*Manager_Monitor_Call) Run ¶
func (_c *Manager_Monitor_Call) Run(run func(key string, f func() error)) *Manager_Monitor_Call
func (*Manager_Monitor_Call) RunAndReturn ¶
func (_c *Manager_Monitor_Call) RunAndReturn(run func(string, func() error) func() error) *Manager_Monitor_Call
type Manager_PrintReport_Call ¶
Manager_PrintReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PrintReport'
func (*Manager_PrintReport_Call) Return ¶
func (_c *Manager_PrintReport_Call) Return() *Manager_PrintReport_Call
func (*Manager_PrintReport_Call) Run ¶
func (_c *Manager_PrintReport_Call) Run(run func(logger log.Logger)) *Manager_PrintReport_Call
func (*Manager_PrintReport_Call) RunAndReturn ¶
func (_c *Manager_PrintReport_Call) RunAndReturn(run func(log.Logger)) *Manager_PrintReport_Call
type Manager_StartWork_Call ¶
Manager_StartWork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartWork'
func (*Manager_StartWork_Call) Return ¶
func (_c *Manager_StartWork_Call) Return(_a0 status.WorkItem) *Manager_StartWork_Call
func (*Manager_StartWork_Call) Run ¶
func (_c *Manager_StartWork_Call) Run(run func(key string, steps int)) *Manager_StartWork_Call
func (*Manager_StartWork_Call) RunAndReturn ¶
func (_c *Manager_StartWork_Call) RunAndReturn(run func(string, int) status.WorkItem) *Manager_StartWork_Call
type WorkItem ¶
WorkItem is an autogenerated mock type for the WorkItem type
func NewWorkItem ¶
NewWorkItem creates a new instance of WorkItem. 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 (*WorkItem) EXPECT ¶
func (_m *WorkItem) EXPECT() *WorkItem_Expecter
func (*WorkItem) ReportDone ¶
func (_m *WorkItem) ReportDone()
ReportDone provides a mock function with given fields:
func (*WorkItem) ReportError ¶
ReportError provides a mock function with given fields: err
func (*WorkItem) ReportProgress ¶
ReportProgress provides a mock function with given fields: step, progress
type WorkItem_Expecter ¶
type WorkItem_Expecter struct {
// contains filtered or unexported fields
}
func (*WorkItem_Expecter) Monitor ¶
func (_e *WorkItem_Expecter) Monitor(f interface{}) *WorkItem_Monitor_Call
Monitor is a helper method to define mock.On call
- f func() error
func (*WorkItem_Expecter) ReportDone ¶
func (_e *WorkItem_Expecter) ReportDone() *WorkItem_ReportDone_Call
ReportDone is a helper method to define mock.On call
func (*WorkItem_Expecter) ReportError ¶
func (_e *WorkItem_Expecter) ReportError(err interface{}) *WorkItem_ReportError_Call
ReportError is a helper method to define mock.On call
- err error
func (*WorkItem_Expecter) ReportProgress ¶
func (_e *WorkItem_Expecter) ReportProgress(step interface{}, progress interface{}) *WorkItem_ReportProgress_Call
ReportProgress is a helper method to define mock.On call
- step int
- progress float64
type WorkItem_Monitor_Call ¶
WorkItem_Monitor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Monitor'
func (*WorkItem_Monitor_Call) Return ¶
func (_c *WorkItem_Monitor_Call) Return(_a0 func() error) *WorkItem_Monitor_Call
func (*WorkItem_Monitor_Call) Run ¶
func (_c *WorkItem_Monitor_Call) Run(run func(f func() error)) *WorkItem_Monitor_Call
func (*WorkItem_Monitor_Call) RunAndReturn ¶
func (_c *WorkItem_Monitor_Call) RunAndReturn(run func(func() error) func() error) *WorkItem_Monitor_Call
type WorkItem_ReportDone_Call ¶
WorkItem_ReportDone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportDone'
func (*WorkItem_ReportDone_Call) Return ¶
func (_c *WorkItem_ReportDone_Call) Return() *WorkItem_ReportDone_Call
func (*WorkItem_ReportDone_Call) Run ¶
func (_c *WorkItem_ReportDone_Call) Run(run func()) *WorkItem_ReportDone_Call
func (*WorkItem_ReportDone_Call) RunAndReturn ¶
func (_c *WorkItem_ReportDone_Call) RunAndReturn(run func()) *WorkItem_ReportDone_Call
type WorkItem_ReportError_Call ¶
WorkItem_ReportError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportError'
func (*WorkItem_ReportError_Call) Return ¶
func (_c *WorkItem_ReportError_Call) Return() *WorkItem_ReportError_Call
func (*WorkItem_ReportError_Call) Run ¶
func (_c *WorkItem_ReportError_Call) Run(run func(err error)) *WorkItem_ReportError_Call
func (*WorkItem_ReportError_Call) RunAndReturn ¶
func (_c *WorkItem_ReportError_Call) RunAndReturn(run func(error)) *WorkItem_ReportError_Call
type WorkItem_ReportProgress_Call ¶
WorkItem_ReportProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportProgress'
func (*WorkItem_ReportProgress_Call) Return ¶
func (_c *WorkItem_ReportProgress_Call) Return() *WorkItem_ReportProgress_Call
func (*WorkItem_ReportProgress_Call) Run ¶
func (_c *WorkItem_ReportProgress_Call) Run(run func(step int, progress float64)) *WorkItem_ReportProgress_Call
func (*WorkItem_ReportProgress_Call) RunAndReturn ¶
func (_c *WorkItem_ReportProgress_Call) RunAndReturn(run func(int, float64)) *WorkItem_ReportProgress_Call