Documentation
¶
Index ¶
- Constants
- type Object
- type PipelineRunObject
- func (pro *PipelineRunObject) AppendTaskRun(tr *v1beta1.TaskRun)
- func (pro *PipelineRunObject) GetGVK() string
- func (pro *PipelineRunObject) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)
- func (pro *PipelineRunObject) GetObject() interface{}
- func (pro *PipelineRunObject) GetPullSecrets() []string
- func (pro *PipelineRunObject) GetResults() []Result
- func (pro *PipelineRunObject) GetServiceAccountName() string
- func (pro *PipelineRunObject) GetTaskRunFromTask(taskName string) *v1beta1.TaskRun
- func (pro *PipelineRunObject) IsSuccessful() bool
- func (pro *PipelineRunObject) Patch(ctx context.Context, clientSet versioned.Interface, patchBytes []byte) error
- type Result
- type TaskRunObject
- func (tro *TaskRunObject) GetGVK() string
- func (tro *TaskRunObject) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)
- func (tro *TaskRunObject) GetObject() interface{}
- func (tro *TaskRunObject) GetPullSecrets() []string
- func (tro *TaskRunObject) GetResults() []Result
- func (tro *TaskRunObject) GetServiceAccountName() string
- func (tro *TaskRunObject) Patch(ctx context.Context, clientSet versioned.Interface, patchBytes []byte) error
- type TektonObject
Constants ¶
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 PipelineRunObject ¶
type PipelineRunObject struct {
// The base PipelineRun
*v1beta1.PipelineRun
// contains filtered or unexported fields
}
PipelineRunObject extends v1beta1.PipelineRun with additional functions.
func NewPipelineRunObject ¶
func NewPipelineRunObject(pr *v1beta1.PipelineRun) *PipelineRunObject
func (*PipelineRunObject) AppendTaskRun ¶
func (pro *PipelineRunObject) AppendTaskRun(tr *v1beta1.TaskRun)
Append TaskRuns to this PipelineRun
func (*PipelineRunObject) GetGVK ¶
func (pro *PipelineRunObject) GetGVK() string
Get the PipelineRun GroupVersionKind
func (*PipelineRunObject) GetLatestAnnotations ¶
func (pro *PipelineRunObject) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)
Request the current annotations on the PipelineRun object
func (*PipelineRunObject) GetObject ¶
func (pro *PipelineRunObject) GetObject() interface{}
Get the base PipelineRun
func (*PipelineRunObject) GetPullSecrets ¶
func (pro *PipelineRunObject) GetPullSecrets() []string
Get the imgPullSecrets from the pod template
func (*PipelineRunObject) GetResults ¶
func (pro *PipelineRunObject) GetResults() []Result
Get the resolved Pipelinerun results
func (*PipelineRunObject) GetServiceAccountName ¶
func (pro *PipelineRunObject) GetServiceAccountName() string
Get the ServiceAccount declared in the PipelineRun
func (*PipelineRunObject) GetTaskRunFromTask ¶
func (pro *PipelineRunObject) GetTaskRunFromTask(taskName string) *v1beta1.TaskRun
Get the associated TaskRun via the Task name
func (*PipelineRunObject) IsSuccessful ¶
func (pro *PipelineRunObject) IsSuccessful() bool
Get the ServiceAccount declared in the PipelineRun
type Result ¶
type Result struct {
Name string
Type v1beta1.ResultsType
Value v1beta1.ParamValue
}
Result is a generic key value store containing the results of Tekton operations. (eg. PipelineRun and TaskRun results)
type TaskRunObject ¶
TaskRunObject extends v1beta1.TaskRun with additional functions.
func NewTaskRunObject ¶
func NewTaskRunObject(tr *v1beta1.TaskRun) *TaskRunObject
func (*TaskRunObject) GetGVK ¶
func (tro *TaskRunObject) GetGVK() string
Get the TaskRun GroupVersionKind
func (*TaskRunObject) GetLatestAnnotations ¶
func (tro *TaskRunObject) GetLatestAnnotations(ctx context.Context, clientSet versioned.Interface) (map[string]string, error)
Get the latest annotations on the TaskRun
func (*TaskRunObject) GetObject ¶
func (tro *TaskRunObject) GetObject() interface{}
Get the base TaskRun object
func (*TaskRunObject) GetPullSecrets ¶
func (tro *TaskRunObject) GetPullSecrets() []string
Get the imgPullSecrets from the pod template
func (*TaskRunObject) GetResults ¶
func (tro *TaskRunObject) GetResults() []Result
Get the TaskRun results
func (*TaskRunObject) GetServiceAccountName ¶
func (tro *TaskRunObject) GetServiceAccountName() string
Get the ServiceAccount declared in the TaskRun
type TektonObject ¶
type TektonObject interface {
Object
GetGVK() 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
GetServiceAccountName() string
GetPullSecrets() []string
IsDone() bool
IsSuccessful() bool
}
Tekton object is an extended Kubernetes object with operations specific to Tekton objects.
func NewTektonObject ¶
func NewTektonObject(i interface{}) (TektonObject, error)