types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retry

type Retry struct {
	Attempts int           `yaml:"attempts"`
	Delay    time.Duration `yaml:"delay"`
}

type Step

type Step struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description,omitempty"`
	Run         string `yaml:"run"`
	When        string `yaml:"when,omitempty"`
	Parallel    bool   `yaml:"parallel,omitempty"`
	Retry       *Retry `yaml:"retry,omitempty"`
}

type StepResult

type StepResult struct {
	Name     string
	State    StepState
	Output   string
	Error    string
	ExitCode int
	Started  time.Time
	Finished time.Time
	Attempts int
}

func (*StepResult) Duration

func (r *StepResult) Duration() time.Duration

type StepState

type StepState string
const (
	StatePending   StepState = "pending"
	StateRunning   StepState = "running"
	StateCompleted StepState = "completed"
	StateFailed    StepState = "failed"
	StateSkipped   StepState = "skipped"
)

type Workflow

type Workflow struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description,omitempty"`
	Steps       []Step `yaml:"steps"`
}

Jump to

Keyboard shortcuts

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