Documentation
¶
Index ¶
Constants ¶
View Source
const ImplicitPhaseName = "default"
Variables ¶
This section is empty.
Functions ¶
func StateKeyWithContext ¶ added in v0.2.6
func WorkflowRootForPath ¶
Types ¶
type LoadOptions ¶
type Phase ¶
type Phase struct {
Name string `yaml:"name" json:"name"`
MaxParallelism int `yaml:"maxParallelism,omitempty" json:"maxParallelism,omitempty"`
Imports []PhaseImport `yaml:"imports,omitempty" json:"imports,omitempty"`
Steps []Step `yaml:"steps,omitempty" json:"steps,omitempty"`
}
func NormalizedPhases ¶
type PhaseImport ¶
type Step ¶
type Step struct {
ID string `yaml:"id" json:"id"`
APIVersion string `yaml:"apiVersion" json:"apiVersion"`
Kind string `yaml:"kind" json:"kind"`
Metadata map[string]any `yaml:"metadata" json:"metadata,omitempty"`
When string `yaml:"when" json:"when,omitempty"`
ParallelGroup string `yaml:"parallelGroup,omitempty" json:"parallelGroup,omitempty"`
Register map[string]string `yaml:"register" json:"register,omitempty"`
Retry int `yaml:"retry" json:"retry,omitempty"`
Timeout string `yaml:"timeout" json:"timeout,omitempty"`
Spec map[string]any `yaml:"spec" json:"spec"`
}
type Workflow ¶
type Workflow struct {
Version string `yaml:"version" json:"version"`
Vars map[string]any `yaml:"vars" json:"vars,omitempty"`
Phases []Phase `yaml:"phases,omitempty" json:"phases,omitempty"`
Steps []Step `yaml:"steps,omitempty" json:"-"`
StateKey string `yaml:"-" json:"-"`
WorkflowSHA256 string `yaml:"-" json:"-"`
}
func LoadWithOptions ¶
Click to show internal directories.
Click to hide internal directories.