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

objects

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const PipelineTaskLabel = "tekton.dev/pipelineTask"

Label added to TaskRuns identifying the associated pipeline Task

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	// Metadata associated to all Kubernetes objects
	metav1.Object
	// Runtime identifying data
	runtime.Object
}

Object is used as a base object of all Kubernetes objects ref: https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.4/pkg/client#Object

type PipelineRunObjectV1 added in v0.20.0

type PipelineRunObjectV1 struct {
	// The base PipelineRun
	*v1.PipelineRun
	// contains filtered or unexported fields
}

PipelineRunObjectV1 extends v1.PipelineRun with additional functions.

func NewPipelineRunObjectV1 added in v0.20.0

func NewPipelineRunObjectV1(pr *v1.PipelineRun) *PipelineRunObjectV1

func (*PipelineRunObjectV1) AppendTaskRun added in v0.20.0

func (pro *PipelineRunObjectV1) AppendTaskRun(tr *v1.TaskRun)

Append TaskRuns to this PipelineRun

func (*PipelineRunObjectV1) GetCompletitionTime added in v0.21.0

func (pro *PipelineRunObjectV1) GetCompletitionTime() *time.Time

GetCompletitionTime returns the time when the PipelineRun finished.

func (*PipelineRunObjectV1) GetExecutedTasks added in v0.21.0

func (pro *PipelineRunObjectV1) GetExecutedTasks() (tro []*TaskRunObjectV1)

GetExecutedTasks returns the tasks that were executed during the pipeline run.

func (*PipelineRunObjectV1) GetGVK added in v0.20.0

func (pro *PipelineRunObjectV1) GetGVK() string

Get the PipelineRun GroupVersionKind

func (*PipelineRunObjectV1) GetKindName added in v0.20.0

func (pro *PipelineRunObjectV1) GetKindName() string

func (*PipelineRunObjectV1) GetLatestAnnotations added in v0.20.0

func (pro *PipelineRunObjectV1) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)

Request the current annotations on the PipelineRun object

func (*PipelineRunObjectV1) GetObject added in v0.20.0

func (pro *PipelineRunObjectV1) GetObject() interface{}

Get the base PipelineRun

func (*PipelineRunObjectV1) GetProvenance added in v0.20.0

func (pro *PipelineRunObjectV1) GetProvenance() *v1.Provenance

func (*PipelineRunObjectV1) GetRemoteProvenance added in v0.20.0

func (pro *PipelineRunObjectV1) GetRemoteProvenance() *v1.Provenance

func (*PipelineRunObjectV1) GetResults added in v0.20.0

func (pro *PipelineRunObjectV1) GetResults() []Result

Get the resolved Pipelinerun results

func (*PipelineRunObjectV1) GetServiceAccountName added in v0.20.0

func (pro *PipelineRunObjectV1) GetServiceAccountName() string

Get the ServiceAccount declared in the PipelineRun

func (*PipelineRunObjectV1) GetStartTime added in v0.21.0

func (pro *PipelineRunObjectV1) GetStartTime() *time.Time

GetStartTime returns the time when the PipelineRun started.

func (*PipelineRunObjectV1) GetTaskRuns added in v0.20.0

func (pro *PipelineRunObjectV1) GetTaskRuns() []*v1.TaskRun

Append TaskRuns to this PipelineRun

func (*PipelineRunObjectV1) GetTaskRunsFromTask added in v0.22.0

func (pro *PipelineRunObjectV1) GetTaskRunsFromTask(taskName string) []*TaskRunObjectV1

Get the associated TaskRun via the Task name

func (*PipelineRunObjectV1) IsRemote added in v0.20.0

func (pro *PipelineRunObjectV1) IsRemote() bool

func (*PipelineRunObjectV1) IsSuccessful added in v0.20.0

func (pro *PipelineRunObjectV1) IsSuccessful() bool

Get the ServiceAccount declared in the PipelineRun

func (*PipelineRunObjectV1) Patch added in v0.20.0

func (pro *PipelineRunObjectV1) Patch(ctx context.Context, clientSet versioned.Interface, patchBytes []byte) error

Patch the original PipelineRun object

func (*PipelineRunObjectV1) SupportsOCIArtifact added in v0.20.0

func (pro *PipelineRunObjectV1) SupportsOCIArtifact() bool

func (*PipelineRunObjectV1) SupportsPipelineRunArtifact added in v0.20.0

func (pro *PipelineRunObjectV1) SupportsPipelineRunArtifact() bool

func (*PipelineRunObjectV1) SupportsTaskRunArtifact added in v0.20.0

func (pro *PipelineRunObjectV1) SupportsTaskRunArtifact() bool

type Result

type Result struct {
	Name  string
	Type  v1.ResultsType
	Value v1.ParamValue
}

Result is a generic key value store containing the results of Tekton operations. (eg. PipelineRun and TaskRun results)

type TaskRunObjectV1 added in v0.20.0

type TaskRunObjectV1 struct {
	*v1.TaskRun
}

TaskRunObjectV1 extends v1.TaskRun with additional functions.

func NewTaskRunObjectV1 added in v0.20.0

func NewTaskRunObjectV1(tr *v1.TaskRun) *TaskRunObjectV1

func (*TaskRunObjectV1) GetCompletitionTime added in v0.21.0

func (tro *TaskRunObjectV1) GetCompletitionTime() *time.Time

GetCompletitionTime returns the time when the TaskRun finished.

func (*TaskRunObjectV1) GetGVK added in v0.20.0

func (tro *TaskRunObjectV1) GetGVK() string

Get the TaskRun GroupVersionKind

func (*TaskRunObjectV1) GetKindName added in v0.20.0

func (tro *TaskRunObjectV1) GetKindName() string

func (*TaskRunObjectV1) GetLatestAnnotations added in v0.20.0

func (tro *TaskRunObjectV1) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)

Get the latest annotations on the TaskRun

func (*TaskRunObjectV1) GetObject added in v0.20.0

func (tro *TaskRunObjectV1) GetObject() interface{}

Get the base TaskRun object

func (*TaskRunObjectV1) GetProvenance added in v0.20.0

func (tro *TaskRunObjectV1) GetProvenance() *v1.Provenance

func (*TaskRunObjectV1) GetRemoteProvenance added in v0.20.0

func (tro *TaskRunObjectV1) GetRemoteProvenance() *v1.Provenance

func (*TaskRunObjectV1) GetResults added in v0.20.0

func (tro *TaskRunObjectV1) GetResults() []Result

Get the TaskRun results

func (*TaskRunObjectV1) GetServiceAccountName added in v0.20.0

func (tro *TaskRunObjectV1) GetServiceAccountName() string

Get the ServiceAccount declared in the TaskRun

func (*TaskRunObjectV1) GetSidecarImages added in v0.20.0

func (tro *TaskRunObjectV1) GetSidecarImages() []string

func (*TaskRunObjectV1) GetStartTime added in v0.21.0

func (tro *TaskRunObjectV1) GetStartTime() *time.Time

GetStartTime returns the time when the TaskRun started.

func (*TaskRunObjectV1) GetStepImages added in v0.20.0

func (tro *TaskRunObjectV1) GetStepImages() []string

func (*TaskRunObjectV1) GetStepResults added in v0.21.0

func (tro *TaskRunObjectV1) GetStepResults() []Result

GetStepResults returns all the results from associated StepActions.

func (*TaskRunObjectV1) IsRemote added in v0.20.0

func (tro *TaskRunObjectV1) IsRemote() bool

func (*TaskRunObjectV1) Patch added in v0.20.0

func (tro *TaskRunObjectV1) Patch(ctx context.Context, clientSet versioned.Interface, patchBytes []byte) error

Patch the original TaskRun object

func (*TaskRunObjectV1) SupportsOCIArtifact added in v0.20.0

func (tro *TaskRunObjectV1) SupportsOCIArtifact() bool

func (*TaskRunObjectV1) SupportsPipelineRunArtifact added in v0.20.0

func (tro *TaskRunObjectV1) SupportsPipelineRunArtifact() bool

func (*TaskRunObjectV1) SupportsTaskRunArtifact added in v0.20.0

func (tro *TaskRunObjectV1) SupportsTaskRunArtifact() bool

type TektonObject

type TektonObject interface {
	Object
	GetGVK() string
	GetKindName() string
	GetObject() interface{}
	GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)
	Patch(ctx context.Context, clientSet versioned.Interface, patchBytes []byte) error
	GetResults() []Result
	GetProvenance() *v1.Provenance
	GetServiceAccountName() string
	IsDone() bool
	IsSuccessful() bool
	SupportsTaskRunArtifact() bool
	SupportsPipelineRunArtifact() bool
	SupportsOCIArtifact() bool
	GetRemoteProvenance() *v1.Provenance
	IsRemote() bool
	GetStartTime() *time.Time
	GetCompletitionTime() *time.Time
}

Tekton object is an extended Kubernetes object with operations specific to Tekton objects.

func NewTektonObject

func NewTektonObject(i interface{}) (TektonObject, error)

Jump to

Keyboard shortcuts

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