Documentation
¶
Index ¶
- type IndexedWorkQueue
- func (_m *IndexedWorkQueue) EXPECT() *IndexedWorkQueue_Expecter
- func (_m *IndexedWorkQueue) Get(id string) (workqueue.WorkItemInfo, bool, error)
- func (_m *IndexedWorkQueue) Queue(ctx context.Context, id string, once workqueue.WorkItem) error
- func (_m *IndexedWorkQueue) Start(ctx context.Context) error
- type IndexedWorkQueue_Expecter
- type IndexedWorkQueue_Get_Call
- func (_c *IndexedWorkQueue_Get_Call) Return(info workqueue.WorkItemInfo, found bool, err error) *IndexedWorkQueue_Get_Call
- func (_c *IndexedWorkQueue_Get_Call) Run(run func(id string)) *IndexedWorkQueue_Get_Call
- func (_c *IndexedWorkQueue_Get_Call) RunAndReturn(run func(string) (workqueue.WorkItemInfo, bool, error)) *IndexedWorkQueue_Get_Call
- type IndexedWorkQueue_Queue_Call
- func (_c *IndexedWorkQueue_Queue_Call) Return(_a0 error) *IndexedWorkQueue_Queue_Call
- func (_c *IndexedWorkQueue_Queue_Call) Run(run func(ctx context.Context, id string, once workqueue.WorkItem)) *IndexedWorkQueue_Queue_Call
- func (_c *IndexedWorkQueue_Queue_Call) RunAndReturn(run func(context.Context, string, workqueue.WorkItem) error) *IndexedWorkQueue_Queue_Call
- type IndexedWorkQueue_Start_Call
- func (_c *IndexedWorkQueue_Start_Call) Return(_a0 error) *IndexedWorkQueue_Start_Call
- func (_c *IndexedWorkQueue_Start_Call) Run(run func(ctx context.Context)) *IndexedWorkQueue_Start_Call
- func (_c *IndexedWorkQueue_Start_Call) RunAndReturn(run func(context.Context) error) *IndexedWorkQueue_Start_Call
- type Processor
- type Processor_Expecter
- type Processor_Process_Call
- func (_c *Processor_Process_Call) Return(_a0 workqueue.WorkStatus, _a1 error) *Processor_Process_Call
- func (_c *Processor_Process_Call) Run(run func(ctx context.Context, workItem workqueue.WorkItem)) *Processor_Process_Call
- func (_c *Processor_Process_Call) RunAndReturn(run func(context.Context, workqueue.WorkItem) (workqueue.WorkStatus, error)) *Processor_Process_Call
- type WorkItem
- type WorkItemInfo
- type WorkItemInfo_Error_Call
- type WorkItemInfo_Expecter
- type WorkItemInfo_ID_Call
- type WorkItemInfo_Item_Call
- type WorkItemInfo_Status_Call
- type WorkItem_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexedWorkQueue ¶
IndexedWorkQueue is an autogenerated mock type for the IndexedWorkQueue type
func NewIndexedWorkQueue ¶ added in v1.15.1
func NewIndexedWorkQueue(t interface {
mock.TestingT
Cleanup(func())
}) *IndexedWorkQueue
NewIndexedWorkQueue creates a new instance of IndexedWorkQueue. 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 (*IndexedWorkQueue) EXPECT ¶ added in v1.15.1
func (_m *IndexedWorkQueue) EXPECT() *IndexedWorkQueue_Expecter
func (*IndexedWorkQueue) Get ¶
func (_m *IndexedWorkQueue) Get(id string) (workqueue.WorkItemInfo, bool, error)
Get provides a mock function with given fields: id
type IndexedWorkQueue_Expecter ¶ added in v1.15.1
type IndexedWorkQueue_Expecter struct {
// contains filtered or unexported fields
}
func (*IndexedWorkQueue_Expecter) Get ¶ added in v1.15.1
func (_e *IndexedWorkQueue_Expecter) Get(id interface{}) *IndexedWorkQueue_Get_Call
Get is a helper method to define mock.On call
- id string
func (*IndexedWorkQueue_Expecter) Queue ¶ added in v1.15.1
func (_e *IndexedWorkQueue_Expecter) Queue(ctx interface{}, id interface{}, once interface{}) *IndexedWorkQueue_Queue_Call
Queue is a helper method to define mock.On call
- ctx context.Context
- id string
- once workqueue.WorkItem
func (*IndexedWorkQueue_Expecter) Start ¶ added in v1.15.1
func (_e *IndexedWorkQueue_Expecter) Start(ctx interface{}) *IndexedWorkQueue_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type IndexedWorkQueue_Get_Call ¶ added in v1.15.1
IndexedWorkQueue_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*IndexedWorkQueue_Get_Call) Return ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Get_Call) Return(info workqueue.WorkItemInfo, found bool, err error) *IndexedWorkQueue_Get_Call
func (*IndexedWorkQueue_Get_Call) Run ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Get_Call) Run(run func(id string)) *IndexedWorkQueue_Get_Call
func (*IndexedWorkQueue_Get_Call) RunAndReturn ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Get_Call) RunAndReturn(run func(string) (workqueue.WorkItemInfo, bool, error)) *IndexedWorkQueue_Get_Call
type IndexedWorkQueue_Queue_Call ¶ added in v1.15.1
IndexedWorkQueue_Queue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Queue'
func (*IndexedWorkQueue_Queue_Call) Return ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Queue_Call) Return(_a0 error) *IndexedWorkQueue_Queue_Call
func (*IndexedWorkQueue_Queue_Call) Run ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Queue_Call) Run(run func(ctx context.Context, id string, once workqueue.WorkItem)) *IndexedWorkQueue_Queue_Call
func (*IndexedWorkQueue_Queue_Call) RunAndReturn ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Queue_Call) RunAndReturn(run func(context.Context, string, workqueue.WorkItem) error) *IndexedWorkQueue_Queue_Call
type IndexedWorkQueue_Start_Call ¶ added in v1.15.1
IndexedWorkQueue_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*IndexedWorkQueue_Start_Call) Return ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Start_Call) Return(_a0 error) *IndexedWorkQueue_Start_Call
func (*IndexedWorkQueue_Start_Call) Run ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Start_Call) Run(run func(ctx context.Context)) *IndexedWorkQueue_Start_Call
func (*IndexedWorkQueue_Start_Call) RunAndReturn ¶ added in v1.15.1
func (_c *IndexedWorkQueue_Start_Call) RunAndReturn(run func(context.Context) error) *IndexedWorkQueue_Start_Call
type Processor ¶
Processor is an autogenerated mock type for the Processor type
func NewProcessor ¶ added in v1.15.1
NewProcessor creates a new instance of Processor. 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 (*Processor) EXPECT ¶ added in v1.15.1
func (_m *Processor) EXPECT() *Processor_Expecter
type Processor_Expecter ¶ added in v1.15.1
type Processor_Expecter struct {
// contains filtered or unexported fields
}
func (*Processor_Expecter) Process ¶ added in v1.15.1
func (_e *Processor_Expecter) Process(ctx interface{}, workItem interface{}) *Processor_Process_Call
Process is a helper method to define mock.On call
- ctx context.Context
- workItem workqueue.WorkItem
type Processor_Process_Call ¶ added in v1.15.1
Processor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*Processor_Process_Call) Return ¶ added in v1.15.1
func (_c *Processor_Process_Call) Return(_a0 workqueue.WorkStatus, _a1 error) *Processor_Process_Call
func (*Processor_Process_Call) Run ¶ added in v1.15.1
func (_c *Processor_Process_Call) Run(run func(ctx context.Context, workItem workqueue.WorkItem)) *Processor_Process_Call
func (*Processor_Process_Call) RunAndReturn ¶ added in v1.15.1
func (_c *Processor_Process_Call) RunAndReturn(run func(context.Context, workqueue.WorkItem) (workqueue.WorkStatus, error)) *Processor_Process_Call
type WorkItem ¶
WorkItem is an autogenerated mock type for the WorkItem type
func NewWorkItem ¶ added in v1.15.1
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 ¶ added in v1.15.1
func (_m *WorkItem) EXPECT() *WorkItem_Expecter
type WorkItemInfo ¶
WorkItemInfo is an autogenerated mock type for the WorkItemInfo type
func NewWorkItemInfo ¶ added in v1.15.1
func NewWorkItemInfo(t interface {
mock.TestingT
Cleanup(func())
}) *WorkItemInfo
NewWorkItemInfo creates a new instance of WorkItemInfo. 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 (*WorkItemInfo) EXPECT ¶ added in v1.15.1
func (_m *WorkItemInfo) EXPECT() *WorkItemInfo_Expecter
func (*WorkItemInfo) Error ¶
func (_m *WorkItemInfo) Error() error
Error provides a mock function with no fields
func (*WorkItemInfo) ID ¶
func (_m *WorkItemInfo) ID() string
ID provides a mock function with no fields
func (*WorkItemInfo) Item ¶
func (_m *WorkItemInfo) Item() workqueue.WorkItem
Item provides a mock function with no fields
func (*WorkItemInfo) Status ¶
func (_m *WorkItemInfo) Status() workqueue.WorkStatus
Status provides a mock function with no fields
type WorkItemInfo_Error_Call ¶ added in v1.15.1
WorkItemInfo_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*WorkItemInfo_Error_Call) Return ¶ added in v1.15.1
func (_c *WorkItemInfo_Error_Call) Return(_a0 error) *WorkItemInfo_Error_Call
func (*WorkItemInfo_Error_Call) Run ¶ added in v1.15.1
func (_c *WorkItemInfo_Error_Call) Run(run func()) *WorkItemInfo_Error_Call
func (*WorkItemInfo_Error_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WorkItemInfo_Error_Call) RunAndReturn(run func() error) *WorkItemInfo_Error_Call
type WorkItemInfo_Expecter ¶ added in v1.15.1
type WorkItemInfo_Expecter struct {
// contains filtered or unexported fields
}
func (*WorkItemInfo_Expecter) Error ¶ added in v1.15.1
func (_e *WorkItemInfo_Expecter) Error() *WorkItemInfo_Error_Call
Error is a helper method to define mock.On call
func (*WorkItemInfo_Expecter) ID ¶ added in v1.15.1
func (_e *WorkItemInfo_Expecter) ID() *WorkItemInfo_ID_Call
ID is a helper method to define mock.On call
func (*WorkItemInfo_Expecter) Item ¶ added in v1.15.1
func (_e *WorkItemInfo_Expecter) Item() *WorkItemInfo_Item_Call
Item is a helper method to define mock.On call
func (*WorkItemInfo_Expecter) Status ¶ added in v1.15.1
func (_e *WorkItemInfo_Expecter) Status() *WorkItemInfo_Status_Call
Status is a helper method to define mock.On call
type WorkItemInfo_ID_Call ¶ added in v1.15.1
WorkItemInfo_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'
func (*WorkItemInfo_ID_Call) Return ¶ added in v1.15.1
func (_c *WorkItemInfo_ID_Call) Return(_a0 string) *WorkItemInfo_ID_Call
func (*WorkItemInfo_ID_Call) Run ¶ added in v1.15.1
func (_c *WorkItemInfo_ID_Call) Run(run func()) *WorkItemInfo_ID_Call
func (*WorkItemInfo_ID_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WorkItemInfo_ID_Call) RunAndReturn(run func() string) *WorkItemInfo_ID_Call
type WorkItemInfo_Item_Call ¶ added in v1.15.1
WorkItemInfo_Item_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Item'
func (*WorkItemInfo_Item_Call) Return ¶ added in v1.15.1
func (_c *WorkItemInfo_Item_Call) Return(_a0 workqueue.WorkItem) *WorkItemInfo_Item_Call
func (*WorkItemInfo_Item_Call) Run ¶ added in v1.15.1
func (_c *WorkItemInfo_Item_Call) Run(run func()) *WorkItemInfo_Item_Call
func (*WorkItemInfo_Item_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WorkItemInfo_Item_Call) RunAndReturn(run func() workqueue.WorkItem) *WorkItemInfo_Item_Call
type WorkItemInfo_Status_Call ¶ added in v1.15.1
WorkItemInfo_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*WorkItemInfo_Status_Call) Return ¶ added in v1.15.1
func (_c *WorkItemInfo_Status_Call) Return(_a0 workqueue.WorkStatus) *WorkItemInfo_Status_Call
func (*WorkItemInfo_Status_Call) Run ¶ added in v1.15.1
func (_c *WorkItemInfo_Status_Call) Run(run func()) *WorkItemInfo_Status_Call
func (*WorkItemInfo_Status_Call) RunAndReturn ¶ added in v1.15.1
func (_c *WorkItemInfo_Status_Call) RunAndReturn(run func() workqueue.WorkStatus) *WorkItemInfo_Status_Call
type WorkItem_Expecter ¶ added in v1.15.1
type WorkItem_Expecter struct {
// contains filtered or unexported fields
}