Documentation
¶
Index ¶
- func CreateDAG(file string) error
- func MoveDAG(oldDAGPath, newDAGPath string) error
- type DAGController
- func (dc *DAGController) DeleteDAG() error
- func (dc *DAGController) GetLastStatus() (*models.Status, error)
- func (dc *DAGController) GetRecentStatuses(n int) []*models.StatusFile
- func (dc *DAGController) GetStatus() (*models.Status, error)
- func (dc *DAGController) GetStatusByRequestId(requestId string) (*models.Status, error)
- func (dc *DAGController) Restart(bin string, workDir string) error
- func (dc *DAGController) Retry(binPath string, workDir string, reqId string) (err error)
- func (dc *DAGController) Start(binPath string, workDir string, params string) error
- func (dc *DAGController) StartAsync(binPath string, workDir string, params string)
- func (dc *DAGController) Stop() error
- func (dc *DAGController) UpdateDAGSpec(value string) error
- func (dc *DAGController) UpdateStatus(status *models.Status) error
- type DAGStatus
- type DAGStatusReader
- type GrepResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DAGController ¶ added in v1.8.8
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
GrepResult is a result of grep.
Click to show internal directories.
Click to hide internal directories.