workflow

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: GPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWorkflows

type IWorkflows interface {
	NewWorkflow(string) (*Workflow, error)
	NewWorkflowFromText(string) (*Workflow, error)
}

func NewWorkflows

func NewWorkflows(t tasks.ITasks, logger *zap.Logger) (workflows IWorkflows)

type Workflow

type Workflow struct {
	Version         string                   `yaml:"version,omitempty"`
	EnvironmentList []map[string]string      `yaml:"environment,omitempty"`
	TaskList        []map[string]interface{} `yaml:"task,omitempty"`
	Node            string                   `yaml:",omitempty"`
	Tasks           tasks.ITasks             `yaml:",omitempty"`
	Logger          *zap.Logger              `yaml:",omitempty"`
}

func (*Workflow) Run

func (w *Workflow) Run() (err error)

func (*Workflow) SplitNodes

func (w *Workflow) SplitNodes() (newWorkflowList []Workflow)

func (*Workflow) Validate added in v0.1.2

func (w *Workflow) Validate() (err error)

type Workflows

type Workflows struct {
	Tasks  tasks.ITasks
	Logger *zap.Logger
}

func (*Workflows) NewWorkflow

func (w *Workflows) NewWorkflow(filePath string) (workflow *Workflow, err error)

func (*Workflows) NewWorkflowFromText

func (w *Workflows) NewWorkflowFromText(text string) (workflow *Workflow, err error)

Jump to

Keyboard shortcuts

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