run

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 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 Manifest

type Manifest struct {
	Kind   string // TaskRun or PipelineRun
	Raw    map[string]interface{}
	Params []*Param
}

Manifest holds the parsed run document.

func Load

func Load(path string) (*Manifest, error)

Load reads a local file and parses it as a manifest.

func LoadBytes

func LoadBytes(data []byte) (*Manifest, error)

LoadBytes parses a manifest from YAML bytes.

func (*Manifest) ApplyParams

func (m *Manifest) ApplyParams() ([]byte, error)

ApplyParams writes the resolved param values back into Raw and returns YAML bytes.

type Param

type Param struct {
	Name           string
	Description    string
	Default        *string  // raw schema default (before envsubst), nil if not declared
	Enum           []string // valid values, if constrained
	RawValue       string   // value as it appears in spec.params before envsubst
	Value          string   // resolved value (set by caller after envsubst)
	ExplicitInSpec bool     // true if this param appears in spec.params (even with "")
}

Param represents one Tekton pipeline/task parameter and its resolved state.

func (*Param) IsRequired

func (p *Param) IsRequired() bool

IsRequired returns true if the param needs a value from the user. A param is required when its resolved Value is empty AND it wasn't explicitly set to "" in spec.params. Params with an explicit "" are intentionally empty.

Jump to

Keyboard shortcuts

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