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 (*Manifest) ApplyParams ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.