mocks

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexedWorkQueue

type IndexedWorkQueue struct {
	mock.Mock
}

IndexedWorkQueue is an autogenerated mock type for the IndexedWorkQueue type

func (*IndexedWorkQueue) Get

Get provides a mock function with given fields: id

func (*IndexedWorkQueue) OnGet

func (*IndexedWorkQueue) OnGetMatch

func (_m *IndexedWorkQueue) OnGetMatch(matchers ...interface{}) *IndexedWorkQueue_Get

func (*IndexedWorkQueue) OnQueue

func (*IndexedWorkQueue) OnQueueMatch

func (_m *IndexedWorkQueue) OnQueueMatch(matchers ...interface{}) *IndexedWorkQueue_Queue

func (*IndexedWorkQueue) OnStart

func (*IndexedWorkQueue) OnStartMatch

func (_m *IndexedWorkQueue) OnStartMatch(matchers ...interface{}) *IndexedWorkQueue_Start

func (*IndexedWorkQueue) Queue

func (_m *IndexedWorkQueue) Queue(ctx context.Context, id string, once workqueue.WorkItem) error

Queue provides a mock function with given fields: ctx, id, once

func (*IndexedWorkQueue) Start

func (_m *IndexedWorkQueue) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

type IndexedWorkQueue_Get

type IndexedWorkQueue_Get struct {
	*mock.Call
}

func (IndexedWorkQueue_Get) Return

type IndexedWorkQueue_Queue

type IndexedWorkQueue_Queue struct {
	*mock.Call
}

func (IndexedWorkQueue_Queue) Return

type IndexedWorkQueue_Start

type IndexedWorkQueue_Start struct {
	*mock.Call
}

func (IndexedWorkQueue_Start) Return

type Processor

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func (*Processor) OnProcess

func (_m *Processor) OnProcess(ctx context.Context, workItem workqueue.WorkItem) *Processor_Process

func (*Processor) OnProcessMatch

func (_m *Processor) OnProcessMatch(matchers ...interface{}) *Processor_Process

func (*Processor) Process

func (_m *Processor) Process(ctx context.Context, workItem workqueue.WorkItem) (workqueue.WorkStatus, error)

Process provides a mock function with given fields: ctx, workItem

type Processor_Process

type Processor_Process struct {
	*mock.Call
}

func (Processor_Process) Return

type WorkItem

type WorkItem struct {
	mock.Mock
}

WorkItem is an autogenerated mock type for the WorkItem type

type WorkItemInfo

type WorkItemInfo struct {
	mock.Mock
}

WorkItemInfo is an autogenerated mock type for the WorkItemInfo type

func (*WorkItemInfo) Error

func (_m *WorkItemInfo) Error() error

Error provides a mock function with given fields:

func (*WorkItemInfo) ID

func (_m *WorkItemInfo) ID() string

ID provides a mock function with given fields:

func (*WorkItemInfo) Item

func (_m *WorkItemInfo) Item() workqueue.WorkItem

Item provides a mock function with given fields:

func (*WorkItemInfo) OnError

func (_m *WorkItemInfo) OnError() *WorkItemInfo_Error

func (*WorkItemInfo) OnErrorMatch

func (_m *WorkItemInfo) OnErrorMatch(matchers ...interface{}) *WorkItemInfo_Error

func (*WorkItemInfo) OnID

func (_m *WorkItemInfo) OnID() *WorkItemInfo_ID

func (*WorkItemInfo) OnIDMatch

func (_m *WorkItemInfo) OnIDMatch(matchers ...interface{}) *WorkItemInfo_ID

func (*WorkItemInfo) OnItem

func (_m *WorkItemInfo) OnItem() *WorkItemInfo_Item

func (*WorkItemInfo) OnItemMatch

func (_m *WorkItemInfo) OnItemMatch(matchers ...interface{}) *WorkItemInfo_Item

func (*WorkItemInfo) OnStatus

func (_m *WorkItemInfo) OnStatus() *WorkItemInfo_Status

func (*WorkItemInfo) OnStatusMatch

func (_m *WorkItemInfo) OnStatusMatch(matchers ...interface{}) *WorkItemInfo_Status

func (*WorkItemInfo) Status

func (_m *WorkItemInfo) Status() workqueue.WorkStatus

Status provides a mock function with given fields:

type WorkItemInfo_Error

type WorkItemInfo_Error struct {
	*mock.Call
}

func (WorkItemInfo_Error) Return

type WorkItemInfo_ID

type WorkItemInfo_ID struct {
	*mock.Call
}

func (WorkItemInfo_ID) Return

func (_m WorkItemInfo_ID) Return(_a0 string) *WorkItemInfo_ID

type WorkItemInfo_Item

type WorkItemInfo_Item struct {
	*mock.Call
}

func (WorkItemInfo_Item) Return

type WorkItemInfo_Status

type WorkItemInfo_Status struct {
	*mock.Call
}

func (WorkItemInfo_Status) Return

Jump to

Keyboard shortcuts

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