Help us shape the future of Go! Take the 2026 Go Developer Survey

timeout

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrIndentNotCalculated is returned when indentation calculation fails
	ErrIndentNotCalculated = errors.New("could not calculate indent for timeout-minutes line")
	// ErrFlowStyleNotSupported is returned when flow style YAML is detected in job definitions
	ErrFlowStyleNotSupported = errors.New("flow style YAML is not supported for job definitions")
	// ErrCompactJobSyntaxNotSupported is returned when compact job syntax is detected
	ErrCompactJobSyntaxNotSupported = errors.New("compact job syntax (job_name: { ... }) is not supported, please use regular YAML syntax")
)

Functions

This section is empty.

Types

type Timeout

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

func NewTimeout

func NewTimeout(timeoutMinutes uint64) Timeout

func (Timeout) Insert

func (f Timeout) Insert(ctx context.Context, input string) (string, bool, error)

Insert adds timeout-minutes to jobs that don't have it Jobs that use reusable workflows (have "uses" field) are skipped

Jump to

Keyboard shortcuts

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