mocks

package
v0.6.138 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Mock implementation of a WorkflowExecutor for use in tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockEventScheduler

func NewMockEventScheduler() interfaces.EventScheduler

Types

type AddScheduleFunc

type AddScheduleFunc func(ctx context.Context, input interfaces.AddScheduleInput) error

type MockEventScheduler

type MockEventScheduler struct {
	// contains filtered or unexported fields
}

func (*MockEventScheduler) AddSchedule

func (*MockEventScheduler) CreateScheduleInput added in v0.6.23

func (s *MockEventScheduler) CreateScheduleInput(ctx context.Context, appConfig *runtimeInterfaces.SchedulerConfig,
	identifier core.Identifier, schedule *admin.Schedule) (interfaces.AddScheduleInput, error)

func (*MockEventScheduler) RemoveSchedule

func (s *MockEventScheduler) RemoveSchedule(ctx context.Context, input interfaces.RemoveScheduleInput) error

func (*MockEventScheduler) SetAddScheduleFunc

func (s *MockEventScheduler) SetAddScheduleFunc(addScheduleFunc AddScheduleFunc)

func (*MockEventScheduler) SetRemoveScheduleFunc

func (s *MockEventScheduler) SetRemoveScheduleFunc(removeScheduleFunc RemoveScheduleFunc)

type MockWorkflowExecutor

type MockWorkflowExecutor struct {
	// contains filtered or unexported fields
}

func (*MockWorkflowExecutor) Run

func (e *MockWorkflowExecutor) Run()

func (*MockWorkflowExecutor) SetRunFunc

func (e *MockWorkflowExecutor) SetRunFunc(runFunc func())

func (*MockWorkflowExecutor) SetStopFunc

func (e *MockWorkflowExecutor) SetStopFunc(stopFunc func() error)

func (*MockWorkflowExecutor) Stop

func (e *MockWorkflowExecutor) Stop() error

type RemoveScheduleFunc

type RemoveScheduleFunc func(ctx context.Context, input interfaces.RemoveScheduleInput) error

Jump to

Keyboard shortcuts

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