action

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionHandler

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

func (*ActionHandler) ApproveRunTask

func (h *ActionHandler) ApproveRunTask(ctx context.Context, req *RunTaskApproveRequest) error

func (*ActionHandler) ChangeRunPhase

func (h *ActionHandler) ChangeRunPhase(ctx context.Context, req *RunChangePhaseRequest) error

func (*ActionHandler) CreateRun

func (h *ActionHandler) CreateRun(ctx context.Context, req *RunCreateRequest) (*types.RunBundle, error)

func (*ActionHandler) DeleteExecutor

func (h *ActionHandler) DeleteExecutor(ctx context.Context, executorID string) error

func (*ActionHandler) Export added in v0.2.0

func (h *ActionHandler) Export(ctx context.Context, w io.Writer) error

func (*ActionHandler) GetExecutorTask added in v0.3.0

func (h *ActionHandler) GetExecutorTask(ctx context.Context, etID string) (*types.ExecutorTask, error)

func (*ActionHandler) GetExecutorTasks added in v0.3.0

func (h *ActionHandler) GetExecutorTasks(ctx context.Context, executorID string) ([]*types.ExecutorTask, error)

func (*ActionHandler) Import added in v0.2.0

func (h *ActionHandler) Import(ctx context.Context, r io.Reader) error

func (*ActionHandler) MaintenanceMode added in v0.2.0

func (h *ActionHandler) MaintenanceMode(ctx context.Context, enable bool) error

func (*ActionHandler) RunTaskSetAnnotations

func (h *ActionHandler) RunTaskSetAnnotations(ctx context.Context, req *RunTaskSetAnnotationsRequest) error

func (*ActionHandler) SetMaintenanceMode added in v0.2.0

func (h *ActionHandler) SetMaintenanceMode(maintenanceMode bool)

func (*ActionHandler) StopRun

func (h *ActionHandler) StopRun(ctx context.Context, req *RunStopRequest) error

type RunChangePhaseRequest

type RunChangePhaseRequest struct {
	RunID                   string
	Phase                   types.RunPhase
	ChangeGroupsUpdateToken string
}

type RunCreateRequest

type RunCreateRequest struct {
	RunConfigTasks    map[string]*types.RunConfigTask
	Name              string
	Group             string
	SetupErrors       []string
	StaticEnvironment map[string]string
	CacheGroup        string

	// existing run fields
	RunID      string
	FromStart  bool
	ResetTasks []string

	// common fields
	Environment map[string]string
	Annotations map[string]string

	ChangeGroupsUpdateToken string
}

type RunStopRequest

type RunStopRequest struct {
	RunID                   string
	ChangeGroupsUpdateToken string
}

type RunTaskApproveRequest

type RunTaskApproveRequest struct {
	RunID                   string
	TaskID                  string
	ChangeGroupsUpdateToken string
}

type RunTaskSetAnnotationsRequest

type RunTaskSetAnnotationsRequest struct {
	RunID                   string
	TaskID                  string
	Annotations             map[string]string
	ChangeGroupsUpdateToken string
}

Jump to

Keyboard shortcuts

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