Documentation ¶
Index ¶
- Constants
- func ConvertTaskPhaseToHandlerStatus(taskStatus pluginsV1.TaskStatus) (handler.Status, error)
- func DisableTestMode()
- func IsTestModeEnabled() bool
- func New(eventSink events.EventSink, store *storage.DataStore, ...) handler.IFace
- func NewTaskHandlerForFactory(eventSink events.EventSink, store *storage.DataStore, ...) handler.IFace
- func SetTestFactory(tf Factory)
- type Factory
- type FactoryFuncs
Constants ¶
View Source
const IDMaxLength = 50
Variables ¶
This section is empty.
Functions ¶
func ConvertTaskPhaseToHandlerStatus ¶
func ConvertTaskPhaseToHandlerStatus(taskStatus pluginsV1.TaskStatus) (handler.Status, error)
func DisableTestMode ¶
func DisableTestMode()
func IsTestModeEnabled ¶
func IsTestModeEnabled() bool
func SetTestFactory ¶
func SetTestFactory(tf Factory)
Types ¶
type Factory ¶
type Factory interface { GetTaskExecutor(taskType v1alpha1.TaskType) (types.Executor, error) ListAllTaskExecutors() []types.Executor }
func NewFactory ¶
type FactoryFuncs ¶
type FactoryFuncs struct { GetTaskExecutorCb func(taskType v1alpha1.TaskType) (types.Executor, error) ListAllTaskExecutorsCb func() []types.Executor }
func (*FactoryFuncs) GetTaskExecutor ¶
func (*FactoryFuncs) ListAllTaskExecutors ¶
func (t *FactoryFuncs) ListAllTaskExecutors() []types.Executor
Click to show internal directories.
Click to hide internal directories.