controller

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDAG added in v1.8.8

func CreateDAG(file string) error

CreateDAG creates a new DAG.

func MoveDAG added in v1.8.8

func MoveDAG(oldDAGPath, newDAGPath string) error

MoveDAG moves the DAG file.

Types

type DAGController added in v1.8.8

type DAGController struct {
	*dag.DAG
}

DAGController is a object to interact with a DAG.

func NewDAGController added in v1.8.8

func NewDAGController(d *dag.DAG) *DAGController

func (*DAGController) DeleteDAG added in v1.8.8

func (dc *DAGController) DeleteDAG() error

func (*DAGController) GetLastStatus added in v1.8.8

func (dc *DAGController) GetLastStatus() (*models.Status, error)

func (*DAGController) GetRecentStatuses added in v1.8.8

func (dc *DAGController) GetRecentStatuses(n int) []*models.StatusFile

func (*DAGController) GetStatus added in v1.8.8

func (dc *DAGController) GetStatus() (*models.Status, error)

func (*DAGController) GetStatusByRequestId added in v1.8.8

func (dc *DAGController) GetStatusByRequestId(requestId string) (*models.Status, error)

func (*DAGController) Restart added in v1.8.8

func (dc *DAGController) Restart(bin string, workDir string) error

func (*DAGController) Retry added in v1.8.8

func (dc *DAGController) Retry(binPath string, workDir string, reqId string) (err error)

func (*DAGController) Start added in v1.8.8

func (dc *DAGController) Start(binPath string, workDir string, params string) error

func (*DAGController) StartAsync added in v1.8.8

func (dc *DAGController) StartAsync(binPath string, workDir string, params string)

func (*DAGController) Stop added in v1.8.8

func (dc *DAGController) Stop() error

func (*DAGController) UpdateDAGSpec added in v1.8.8

func (dc *DAGController) UpdateDAGSpec(value string) error

func (*DAGController) UpdateStatus added in v1.8.8

func (dc *DAGController) UpdateStatus(status *models.Status) error

type DAGStatus added in v1.7.0

type DAGStatus struct {
	File      string
	Dir       string
	DAG       *dag.DAG
	Status    *models.Status
	Suspended bool
	Error     error
	ErrorT    *string
}

DAGStatus is the struct to contain DAGStatus spec and status.

type DAGStatusReader added in v1.8.8

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

DAGStatusReader is the struct to read DAGStatus.

func NewDAGStatusReader added in v1.8.8

func NewDAGStatusReader() *DAGStatusReader

func (*DAGStatusReader) ReadAllStatus added in v1.8.8

func (dr *DAGStatusReader) ReadAllStatus(DAGsDir string) (statuses []*DAGStatus, errs []string, err error)

ReadAllStatus reads all DAGStatus

func (*DAGStatusReader) ReadStatus added in v1.8.8

func (dr *DAGStatusReader) ReadStatus(dagLocation string, loadMetadataOnly bool) (*DAGStatus, error)

ReadStatus loads DAG from config file.

type GrepResult added in v1.7.8

type GrepResult struct {
	Name    string
	DAG     *dag.DAG
	Matches []*grep.Match
}

GrepResult is a result of grep.

func GrepDAG added in v1.8.8

func GrepDAG(dir string, pattern string) (ret []*GrepResult, errs []string, err error)

GrepDAG returns all DAGs that contain the given string.

Jump to

Keyboard shortcuts

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