edit

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edit

func Edit(content []byte, wf *Workflow, timeouts map[string]int, timeout int) ([]byte, error)

func ListJobsWithoutTimeout

func ListJobsWithoutTimeout(jobs map[string]*Job) map[string]struct{}

Types

type Job

type Job struct {
	Name           string
	Steps          []*Step
	Uses           string
	TimeoutMinutes int `yaml:"timeout-minutes"`
	Strategy       any
}

func (*Job) GetName

func (j *Job) GetName(k string) (string, *regexp.Regexp, error)

func (*Job) Validate

func (j *Job) Validate() error

type Position

type Position struct {
	JobKey string
	Line   int
	Column int
}

type Step

type Step struct {
	TimeoutMinutes int `yaml:"timeout-minutes"`
}

func (*Step) Validate

func (s *Step) Validate() error

type Workflow

type Workflow struct {
	Jobs map[string]*Job
}

func (*Workflow) Validate

func (w *Workflow) Validate() error

Jump to

Keyboard shortcuts

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