action

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 23 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 NewActionHandler

func NewActionHandler(log zerolog.Logger, d *db.DB, ost objectstorage.ObjStorage, lf lock.LockFactory) *ActionHandler

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) Export added in v0.2.0

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

func (*ActionHandler) GetChangeGroupsUpdateTokens added in v0.8.0

func (h *ActionHandler) GetChangeGroupsUpdateTokens(tx *sql.Tx, changeGroupsNames []string) (*types.ChangeGroupsUpdateToken, error)

func (*ActionHandler) GetExecutorTask added in v0.3.0

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

func (*ActionHandler) GetExecutorTasks added in v0.3.0

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

func (*ActionHandler) GetGroupRuns added in v0.9.0

func (*ActionHandler) Import added in v0.2.0

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

func (*ActionHandler) IsMaintenanceEnabled added in v0.8.0

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

func (*ActionHandler) IsMaintenanceMode added in v0.9.0

func (h *ActionHandler) IsMaintenanceMode() bool

func (*ActionHandler) RunTaskSetAnnotations

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

func (*ActionHandler) SetMaintenanceEnabled added in v0.9.0

func (h *ActionHandler) SetMaintenanceEnabled(ctx context.Context, enable bool) 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

func (*ActionHandler) UpdateChangeGroups added in v0.8.0

func (h *ActionHandler) UpdateChangeGroups(tx *sql.Tx, cgt *types.ChangeGroupsUpdateToken) error

type GetExecutorTaskResponse added in v0.8.0

type GetExecutorTaskResponse struct {
	Et         *types.ExecutorTask
	EtSpecData *types.ExecutorTaskSpecData
}

type GetGroupRunsRequest added in v0.9.0

type GetGroupRunsRequest struct {
	Group string

	Limit         int
	SortDirection types.SortDirection

	ChangeGroups    []string
	StartRunCounter uint64
	PhaseFilter     []types.RunPhase
	ResultFilter    []types.RunResult
}

type GetGroupRunsResponse added in v0.9.0

type GetGroupRunsResponse struct {
	Runs                    []*types.Run
	ChangeGroupsUpdateToken string

	HasMore bool
}

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