mocks

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventRecorder

type EventRecorder struct {
	mock.Mock
}

EventRecorder is an autogenerated mock type for the EventRecorder type

func (*EventRecorder) OnRecordNodeEvent

func (*EventRecorder) OnRecordNodeEventMatch

func (_m *EventRecorder) OnRecordNodeEventMatch(matchers ...interface{}) *EventRecorder_RecordNodeEvent

func (*EventRecorder) OnRecordTaskEvent

func (*EventRecorder) OnRecordTaskEventMatch

func (_m *EventRecorder) OnRecordTaskEventMatch(matchers ...interface{}) *EventRecorder_RecordTaskEvent

func (*EventRecorder) OnRecordWorkflowEvent

func (*EventRecorder) OnRecordWorkflowEventMatch

func (_m *EventRecorder) OnRecordWorkflowEventMatch(matchers ...interface{}) *EventRecorder_RecordWorkflowEvent

func (*EventRecorder) RecordNodeEvent

func (_m *EventRecorder) RecordNodeEvent(ctx context.Context, _a1 *event.NodeExecutionEvent) error

RecordNodeEvent provides a mock function with given fields: ctx, _a1

func (*EventRecorder) RecordTaskEvent

func (_m *EventRecorder) RecordTaskEvent(ctx context.Context, _a1 *event.TaskExecutionEvent) error

RecordTaskEvent provides a mock function with given fields: ctx, _a1

func (*EventRecorder) RecordWorkflowEvent

func (_m *EventRecorder) RecordWorkflowEvent(ctx context.Context, _a1 *event.WorkflowExecutionEvent) error

RecordWorkflowEvent provides a mock function with given fields: ctx, _a1

type EventRecorder_RecordNodeEvent

type EventRecorder_RecordNodeEvent struct {
	*mock.Call
}

func (EventRecorder_RecordNodeEvent) Return

type EventRecorder_RecordTaskEvent

type EventRecorder_RecordTaskEvent struct {
	*mock.Call
}

func (EventRecorder_RecordTaskEvent) Return

type EventRecorder_RecordWorkflowEvent

type EventRecorder_RecordWorkflowEvent struct {
	*mock.Call
}

func (EventRecorder_RecordWorkflowEvent) Return

type EventSink

type EventSink struct {
	mock.Mock
}

EventSink is an autogenerated mock type for the EventSink type

func (*EventSink) Close

func (_m *EventSink) Close() error

Close provides a mock function with given fields:

func (*EventSink) OnClose

func (_m *EventSink) OnClose() *EventSink_Close

func (*EventSink) OnCloseMatch

func (_m *EventSink) OnCloseMatch(matchers ...interface{}) *EventSink_Close

func (*EventSink) OnSink

func (_m *EventSink) OnSink(ctx context.Context, message protoiface.MessageV1) *EventSink_Sink

func (*EventSink) OnSinkMatch

func (_m *EventSink) OnSinkMatch(matchers ...interface{}) *EventSink_Sink

func (*EventSink) Sink

func (_m *EventSink) Sink(ctx context.Context, message protoiface.MessageV1) error

Sink provides a mock function with given fields: ctx, message

type EventSink_Close

type EventSink_Close struct {
	*mock.Call
}

func (EventSink_Close) Return

func (_m EventSink_Close) Return(_a0 error) *EventSink_Close

type EventSink_Sink

type EventSink_Sink struct {
	*mock.Call
}

func (EventSink_Sink) Return

func (_m EventSink_Sink) Return(_a0 error) *EventSink_Sink

type MockEventSink

type MockEventSink struct {
	SinkCb  func(ctx context.Context, message proto.Message) error
	CloseCb func() error
}

func NewMockEventSink

func NewMockEventSink() *MockEventSink

func (*MockEventSink) Close

func (t *MockEventSink) Close() error

func (*MockEventSink) Sink

func (t *MockEventSink) Sink(ctx context.Context, message proto.Message) error

type NodeEventRecorder

type NodeEventRecorder struct {
	mock.Mock
}

NodeEventRecorder is an autogenerated mock type for the NodeEventRecorder type

func (*NodeEventRecorder) OnRecordNodeEvent

func (*NodeEventRecorder) OnRecordNodeEventMatch

func (_m *NodeEventRecorder) OnRecordNodeEventMatch(matchers ...interface{}) *NodeEventRecorder_RecordNodeEvent

func (*NodeEventRecorder) RecordNodeEvent

func (_m *NodeEventRecorder) RecordNodeEvent(ctx context.Context, _a1 *event.NodeExecutionEvent, eventConfig *config.EventConfig) error

RecordNodeEvent provides a mock function with given fields: ctx, _a1, eventConfig

type NodeEventRecorder_RecordNodeEvent

type NodeEventRecorder_RecordNodeEvent struct {
	*mock.Call
}

func (NodeEventRecorder_RecordNodeEvent) Return

type TaskEventRecorder

type TaskEventRecorder struct {
	mock.Mock
}

TaskEventRecorder is an autogenerated mock type for the TaskEventRecorder type

func (*TaskEventRecorder) OnRecordTaskEvent

func (*TaskEventRecorder) OnRecordTaskEventMatch

func (_m *TaskEventRecorder) OnRecordTaskEventMatch(matchers ...interface{}) *TaskEventRecorder_RecordTaskEvent

func (*TaskEventRecorder) RecordTaskEvent

func (_m *TaskEventRecorder) RecordTaskEvent(ctx context.Context, _a1 *event.TaskExecutionEvent, eventConfig *config.EventConfig) error

RecordTaskEvent provides a mock function with given fields: ctx, _a1, eventConfig

type TaskEventRecorder_RecordTaskEvent

type TaskEventRecorder_RecordTaskEvent struct {
	*mock.Call
}

func (TaskEventRecorder_RecordTaskEvent) Return

type WorkflowEventRecorder

type WorkflowEventRecorder struct {
	mock.Mock
}

WorkflowEventRecorder is an autogenerated mock type for the WorkflowEventRecorder type

func (*WorkflowEventRecorder) OnRecordWorkflowEvent

func (*WorkflowEventRecorder) OnRecordWorkflowEventMatch

func (_m *WorkflowEventRecorder) OnRecordWorkflowEventMatch(matchers ...interface{}) *WorkflowEventRecorder_RecordWorkflowEvent

func (*WorkflowEventRecorder) RecordWorkflowEvent

func (_m *WorkflowEventRecorder) RecordWorkflowEvent(ctx context.Context, _a1 *event.WorkflowExecutionEvent, eventConfig *config.EventConfig) error

RecordWorkflowEvent provides a mock function with given fields: ctx, _a1, eventConfig

type WorkflowEventRecorder_RecordWorkflowEvent

type WorkflowEventRecorder_RecordWorkflowEvent struct {
	*mock.Call
}

func (WorkflowEventRecorder_RecordWorkflowEvent) Return

Jump to

Keyboard shortcuts

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