types

package
v0.0.0-...-7947852 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitError

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

func NewExitError

func NewExitError(code int, err error) *ExitError

func (*ExitError) Error

func (e *ExitError) Error() string

func (*ExitError) ExitCode

func (e *ExitError) ExitCode() int

type Flow

type Flow struct {
	Name  string            `yaml:"name"`
	Envs  map[string]string `yaml:"envs"`
	Vars  map[string]any    `yaml:"vars"`
	If    *Step             `yaml:"if"`
	Steps []Step            `yaml:"steps"`
}

type Flowfile

type Flowfile struct {
	Flows map[string]Flow `yaml:"flows"`
}

func LoadFlowfile

func LoadFlowfile(path string) (Flowfile, error)

type Step

type Step struct {
	Name  string            `yaml:"name"`
	Envs  map[string]string `yaml:"envs"`
	Vars  map[string]any    `yaml:"vars"`
	Shell string            `yaml:"sh"`
	Flow  string            `yaml:"flow"`

	// Controls
	If    *Step  `yaml:"if"`
	Go    *Step  `yaml:"go"`
	Defer *Step  `yaml:"defer"`
	Group []Step `yaml:"group"`
	Range []any  `yaml:"range"`
}

Jump to

Keyboard shortcuts

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