hooks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunnerHook

type RunnerHook interface {
	Name() string
}

type RunnerPostrunHook

type RunnerPostrunHook interface {
	RunnerHook
	Postrun() error
}

type RunnerPrerunHook

type RunnerPrerunHook interface {
	RunnerHook
	Prerun() error
}

type TaskHook

type TaskHook interface {
	Name() string
}

type TaskHookFactory

type TaskHookFactory func(logger hclog.Logger, task *proto.Task) TaskHook

type TaskPoststartHook

type TaskPoststartHook interface {
	TaskHook

	Poststart(chan struct{}, *TaskPoststartHookRequest) error
}

type TaskPoststartHookRequest

type TaskPoststartHookRequest struct {
	Spec *proto.TaskHandle_Network
}

type TaskPrestartHook

type TaskPrestartHook interface {
	TaskHook

	Prestart(chan struct{}, *TaskPrestartHookRequest) error
}

type TaskPrestartHookRequest

type TaskPrestartHookRequest struct {
}

Jump to

Keyboard shortcuts

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