v1alpha1

package
v0.0.0-...-5a3499f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/knative/build-pipeline/pkg/apis/pipeline +k8s:defaulter-gen=TypeMeta +groupName=pipeline.knative.dev

Index

Constants

View Source
const (
	// ClusterTypeGKE indicates that the URL endpoint is a GKE cluster.
	ClusterTypeGKE = "gke"
)
View Source
const (
	// ResultTargetTypeGCS indicates that the URL endpoint is a GCS bucket.
	ResultTargetTypeGCS = "gcs"
)

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var AllClusterTypes = []ClusterType{ClusterTypeGKE}

AllClusterTypes is a list of all ClusterTypes, used for validation

View Source
var AllResultTargetTypes = []ResultTargetType{ResultTargetTypeGCS}

AllResultTargetTypes is a list of all ResultTargetTypes, used for validation

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: pipeline.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Cluster

type Cluster struct {
	Name     string      `json:"name"`
	Type     ClusterType `json:"type"`
	Endpoint string      `json:"endpoint"`
}

Cluster contains information about the cluster on which task is being deployed

func (*Cluster) DeepCopy

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterBinding

type ClusterBinding struct {
	// Key is the string that the PipelineParams will use to identify this source.
	Key string `json:"key"`
	// InputName is the string the Task will use to identify this cluster in its inputs.
	InputName string `json:"inputName"`
}

ClusterBinding is used to bind a cluster from a PipelineParams to a cluster required as an input for a task.

func (*ClusterBinding) DeepCopy

func (in *ClusterBinding) DeepCopy() *ClusterBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterBinding.

func (*ClusterBinding) DeepCopyInto

func (in *ClusterBinding) DeepCopyInto(out *ClusterBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterType

type ClusterType string

ClusterType represents the type of cluster, so that the controller will know how to deploy to it.

type GitResource

type GitResource struct {
	Name string               `json:"name"`
	Type PipelineResourceType `json:"type"`
	URL  string               `json:"url"`
	// Git revision (branch, tag, commit SHA or ref) to clone.  See
	// https://git-scm.com/docs/gitrevisions#_specifying_revisions for more
	// information.
	Revision string `json:"revision"`
}

GitResource is an endpoint from which to get data which is required by a Build/Task for context (e.g. a repo from which to build an image).

func NewGitResource

func NewGitResource(r *PipelineResource) (*GitResource, error)

NewGitResource create a new git resource to pass to Knative Build

func (*GitResource) DeepCopy

func (in *GitResource) DeepCopy() *GitResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitResource.

func (*GitResource) DeepCopyInto

func (in *GitResource) DeepCopyInto(out *GitResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (GitResource) GetName

func (s GitResource) GetName() string

GetName returns the name of the resource

func (GitResource) GetParams

func (s GitResource) GetParams() []Param

GetParams returns the resoruce params

func (GitResource) GetType

func (s GitResource) GetType() PipelineResourceType

GetType returns the type of the resource, in this case "Git"

func (*GitResource) GetURL

func (s *GitResource) GetURL() string

GetURL returns the url to be used with this resource

func (GitResource) GetVersion

func (s GitResource) GetVersion() string

GetVersion returns the revision of the resource, See https://git-scm.com/docs/gitrevisions#_specifying_revisions for more details what the revison in github is

func (*GitResource) Replacements

func (s *GitResource) Replacements() map[string]string

Replacements is used for template replacement on a GitResource inside of a Taskrun.

type ImageResource

type ImageResource struct {
	Name   string               `json:"name"`
	Type   PipelineResourceType `json:"type"`
	URL    string               `json:"url"`
	Digest string               `json:"digest"`
}

ImageResource defines an endpoint where artifacts can be stored, such as images.

func NewImageResource

func NewImageResource(r *PipelineResource) (*ImageResource, error)

NewImageResource creates a new ImageResource from a PipelineResource.

func (*ImageResource) DeepCopy

func (in *ImageResource) DeepCopy() *ImageResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageResource.

func (*ImageResource) DeepCopyInto

func (in *ImageResource) DeepCopyInto(out *ImageResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ImageResource) GetName

func (s ImageResource) GetName() string

GetName returns the name of the resource

func (ImageResource) GetParams

func (s ImageResource) GetParams() []Param

GetParams returns the resoruce params

func (ImageResource) GetType

func (s ImageResource) GetType() PipelineResourceType

GetType returns the type of the resource, in this case "image"

func (ImageResource) GetVersion

func (s ImageResource) GetVersion() string

GetVersion returns the version of the resource

func (*ImageResource) Replacements

func (s *ImageResource) Replacements() map[string]string

Replacements is used for template replacement on an ImageResource inside of a Taskrun.

type Inputs

type Inputs struct {
	// +optional
	Resources []TaskResource `json:"resources,omitempty"`
	// +optional
	Params []TaskParam `json:"params,omitempty"`
	// TODO(#68) a cluster and/or deployment should be a type of Resource
	// +optional
	Clusters []Cluster `json:"clusters,omitempty"`
}

Inputs are the requirements that a task needs to run a Build.

func (*Inputs) DeepCopy

func (in *Inputs) DeepCopy() *Inputs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inputs.

func (*Inputs) DeepCopyInto

func (in *Inputs) DeepCopyInto(out *Inputs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Outputs

type Outputs struct {
	// +optional
	Results []TestResult `json:"results,omitempty"`
	// +optional
	Resources []TaskResource `json:"resources,omitempty"`
}

Outputs allow a task to declare what data the Build/Task will be producing, i.e. results such as logs and artifacts such as images.

func (*Outputs) DeepCopy

func (in *Outputs) DeepCopy() *Outputs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Outputs.

func (*Outputs) DeepCopyInto

func (in *Outputs) DeepCopyInto(out *Outputs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Outputs) Validate

func (o Outputs) Validate(path string) *apis.FieldError

type Param

type Param struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Param declares a value to use for the Param called Name.

func (*Param) DeepCopy

func (in *Param) DeepCopy() *Param

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Param.

func (*Param) DeepCopyInto

func (in *Param) DeepCopyInto(out *Param)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Pipeline

type Pipeline struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the Pipeline from the client
	// +optional
	Spec PipelineSpec `json:"spec,omitempty"`
	// Status communicates the observed state of the Pipeline form the controller
	// +optional
	Status PipelineStatus `json:"status,omitempty"`
}

Pipeline describes a DAG of Tasks to execute. It expresses how outputs of tasks feed into inputs of subsequent tasks, and how parameters from a PipelineParams should be fed into each task. The DAG is constructed from the 'prev' and 'next' of each PipelineTask as well as Task dependencies. +k8s:openapi-gen=true

func (*Pipeline) DeepCopy

func (in *Pipeline) DeepCopy() *Pipeline

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.

func (*Pipeline) DeepCopyInto

func (in *Pipeline) DeepCopyInto(out *Pipeline)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Pipeline) DeepCopyObject

func (in *Pipeline) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Pipeline) SetDefaults

func (p *Pipeline) SetDefaults()

func (*Pipeline) Validate

func (p *Pipeline) Validate() *apis.FieldError

type PipelineList

type PipelineList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Pipeline `json:"items"`
}

PipelineList contains a list of Pipeline

func (*PipelineList) DeepCopy

func (in *PipelineList) DeepCopy() *PipelineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.

func (*PipelineList) DeepCopyInto

func (in *PipelineList) DeepCopyInto(out *PipelineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineList) DeepCopyObject

func (in *PipelineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PipelineParams

type PipelineParams struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the PipelineParams from the client
	// +optional
	Spec PipelineParamsSpec `json:"spec,omitempty"`
	// Status communicates the observed state of the PipelineParams from the controller
	// +optional
	Status PipelineParamsStatus `json:"status,omitempty"`
}

PipelineParams is the Schema for the pipelineparams API +k8s:openapi-gen=true

func (*PipelineParams) DeepCopy

func (in *PipelineParams) DeepCopy() *PipelineParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineParams.

func (*PipelineParams) DeepCopyInto

func (in *PipelineParams) DeepCopyInto(out *PipelineParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineParams) DeepCopyObject

func (in *PipelineParams) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PipelineParams) SetDefaults

func (t *PipelineParams) SetDefaults()

func (*PipelineParams) Validate

func (p *PipelineParams) Validate() *apis.FieldError

type PipelineParamsList

type PipelineParamsList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PipelineParams `json:"items"`
}

PipelineParamsList contains a list of PipelineParams

func (*PipelineParamsList) DeepCopy

func (in *PipelineParamsList) DeepCopy() *PipelineParamsList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineParamsList.

func (*PipelineParamsList) DeepCopyInto

func (in *PipelineParamsList) DeepCopyInto(out *PipelineParamsList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineParamsList) DeepCopyObject

func (in *PipelineParamsList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PipelineParamsRef

type PipelineParamsRef struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

PipelineParamsRef can be used to refer to a specific instance of a Pipeline. Copied from CrossVersionObjectReference: https://github.com/kubernetes/kubernetes/blob/169df7434155cbbc22f1532cba8e0a9588e29ad8/pkg/apis/autoscaling/types.go#L64

func (*PipelineParamsRef) DeepCopy

func (in *PipelineParamsRef) DeepCopy() *PipelineParamsRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineParamsRef.

func (*PipelineParamsRef) DeepCopyInto

func (in *PipelineParamsRef) DeepCopyInto(out *PipelineParamsRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineParamsSpec

type PipelineParamsSpec struct {
	ServiceAccount string  `json:"serviceAccount"`
	Results        Results `json:"results"`
	// +optional
	Clusters []Cluster `json:"clusters,omitempty"`
	// +optional
	Generation int64 `json:"generation,omitempty"`
}

PipelineParamsSpec is the spec for a Pipeline resource

func (*PipelineParamsSpec) DeepCopy

func (in *PipelineParamsSpec) DeepCopy() *PipelineParamsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineParamsSpec.

func (*PipelineParamsSpec) DeepCopyInto

func (in *PipelineParamsSpec) DeepCopyInto(out *PipelineParamsSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineParamsSpec) SetDefaults

func (ts *PipelineParamsSpec) SetDefaults()

func (*PipelineParamsSpec) Validate

func (ps *PipelineParamsSpec) Validate() *apis.FieldError

type PipelineParamsStatus

type PipelineParamsStatus struct {
}

PipelineParamsStatus defines the observed state of PipelineParams

func (*PipelineParamsStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineParamsStatus.

func (*PipelineParamsStatus) DeepCopyInto

func (in *PipelineParamsStatus) DeepCopyInto(out *PipelineParamsStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRef

type PipelineRef struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

PipelineRef can be used to refer to a specific instance of a Pipeline. Copied from CrossVersionObjectReference: https://github.com/kubernetes/kubernetes/blob/169df7434155cbbc22f1532cba8e0a9588e29ad8/pkg/apis/autoscaling/types.go#L64

func (*PipelineRef) DeepCopy

func (in *PipelineRef) DeepCopy() *PipelineRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRef.

func (*PipelineRef) DeepCopyInto

func (in *PipelineRef) DeepCopyInto(out *PipelineRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineResource

type PipelineResource struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the PipelineResource from the client
	// +optional
	Spec PipelineResourceSpec `json:"spec,omitempty"`
	// Status communicates the observed state of the PipelineResource from the controller
	// +optional
	Status PipelineResourceStatus `json:"status,omitempty"`
}

PipelineResource is the Schema for the pipelineResources API +k8s:openapi-gen=true

func (*PipelineResource) DeepCopy

func (in *PipelineResource) DeepCopy() *PipelineResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResource.

func (*PipelineResource) DeepCopyInto

func (in *PipelineResource) DeepCopyInto(out *PipelineResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineResource) DeepCopyObject

func (in *PipelineResource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PipelineResource) SetDefaults

func (t *PipelineResource) SetDefaults()

func (*PipelineResource) Validate

func (r *PipelineResource) Validate() *apis.FieldError

type PipelineResourceInterface

type PipelineResourceInterface interface {
	GetName() string
	GetType() PipelineResourceType
	GetParams() []Param
	GetVersion() string
	Replacements() map[string]string
}

PipelineResourceInterface interface to be implemented by different PipelineResource types

func ResourceFromType

func ResourceFromType(r *PipelineResource) (PipelineResourceInterface, error)

ResourceFromType returns a PipelineResourceInterface from a PipelineResource's type.

type PipelineResourceList

type PipelineResourceList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PipelineResource `json:"items"`
}

PipelineResourceList contains a list of PipelineResources

func (*PipelineResourceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceList.

func (*PipelineResourceList) DeepCopyInto

func (in *PipelineResourceList) DeepCopyInto(out *PipelineResourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineResourceList) DeepCopyObject

func (in *PipelineResourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PipelineResourceRef

type PipelineResourceRef struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

PipelineResourceRef can be used to refer to a specific instance of a Resource

func (*PipelineResourceRef) DeepCopy

func (in *PipelineResourceRef) DeepCopy() *PipelineResourceRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceRef.

func (*PipelineResourceRef) DeepCopyInto

func (in *PipelineResourceRef) DeepCopyInto(out *PipelineResourceRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineResourceSpec

type PipelineResourceSpec struct {
	Type   PipelineResourceType `json:"type"`
	Params []Param              `json:"params"`
	// +optional
	Generation int64 `json:"generation,omitempty"`
}

PipelineResourceSpec defines an individual resources used in the pipeline.

func (*PipelineResourceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceSpec.

func (*PipelineResourceSpec) DeepCopyInto

func (in *PipelineResourceSpec) DeepCopyInto(out *PipelineResourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineResourceSpec) SetDefaults

func (ts *PipelineResourceSpec) SetDefaults()

func (*PipelineResourceSpec) Validate

func (rs *PipelineResourceSpec) Validate() *apis.FieldError

type PipelineResourceStatus

type PipelineResourceStatus struct {
}

PipelineResourceStatus should implment status for PipelineResource

func (*PipelineResourceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceStatus.

func (*PipelineResourceStatus) DeepCopyInto

func (in *PipelineResourceStatus) DeepCopyInto(out *PipelineResourceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineResourceType

type PipelineResourceType string

PipelineResourceType represents the type of endpoint the pipelineResource is, so that the controller will know this pipelineResource should be fetched and optionally what additional metatdata should be provided for it.

const (
	// PipelineResourceTypeGit indicates that this source is a GitHub repo.
	PipelineResourceTypeGit PipelineResourceType = "git"

	// PipelineResourceTypeGCS indicates that this source is a GCS bucket.
	PipelineResourceTypeGCS PipelineResourceType = "gcs"

	// PipelineResourceTypeImage indicates that this source is a docker Image.
	PipelineResourceTypeImage PipelineResourceType = "image"
)

type PipelineResourceVersion

type PipelineResourceVersion struct {
	ResourceRef PipelineResourceRef `json:"resourceRef"`
	Version     string              `json:"version"`
}

PipelineResourceVersion defines the desired state of version of the PipelineResource

func (*PipelineResourceVersion) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineResourceVersion.

func (*PipelineResourceVersion) DeepCopyInto

func (in *PipelineResourceVersion) DeepCopyInto(out *PipelineResourceVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRun

type PipelineRun struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Spec PipelineRunSpec `json:"spec,omitempty"`
	// +optional
	Status PipelineRunStatus `json:"status,omitempty"`
}

PipelineRun is the Schema for the pipelineruns API +k8s:openapi-gen=true

func (*PipelineRun) DeepCopy

func (in *PipelineRun) DeepCopy() *PipelineRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRun.

func (*PipelineRun) DeepCopyInto

func (in *PipelineRun) DeepCopyInto(out *PipelineRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineRun) DeepCopyObject

func (in *PipelineRun) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PipelineRun) GetTaskRunRef

func (pr *PipelineRun) GetTaskRunRef() corev1.ObjectReference

GetTaskRunRef for pipelinerun

type PipelineRunList

type PipelineRunList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PipelineRun `json:"items"`
}

PipelineRunList contains a list of PipelineRun

func (*PipelineRunList) DeepCopy

func (in *PipelineRunList) DeepCopy() *PipelineRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunList.

func (*PipelineRunList) DeepCopyInto

func (in *PipelineRunList) DeepCopyInto(out *PipelineRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineRunList) DeepCopyObject

func (in *PipelineRunList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PipelineRunSpec

type PipelineRunSpec struct {
	PipelineRef        PipelineRef        `json:"pipelineRef"`
	PipelineParamsRef  PipelineParamsRef  `json:"pipelineParamsRef"`
	PipelineTriggerRef PipelineTriggerRef `json:"triggerRef"`
}

PipelineRunSpec defines the desired state of PipelineRun

func (*PipelineRunSpec) DeepCopy

func (in *PipelineRunSpec) DeepCopy() *PipelineRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunSpec.

func (*PipelineRunSpec) DeepCopyInto

func (in *PipelineRunSpec) DeepCopyInto(out *PipelineRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineRunStatus

type PipelineRunStatus struct {
	//+optional
	TaskRuns []PipelineTaskRun `json:"taskRuns,omitempty"`
	// If there is no version, that means use latest
	// +optional
	ResourceVersion []PipelineResourceVersion `json:"resourceVersion,omitempty"`
	Conditions      duckv1alpha1.Conditions   `json:"conditions"`
}

PipelineRunStatus defines the observed state of PipelineRun

func (*PipelineRunStatus) DeepCopy

func (in *PipelineRunStatus) DeepCopy() *PipelineRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRunStatus.

func (*PipelineRunStatus) DeepCopyInto

func (in *PipelineRunStatus) DeepCopyInto(out *PipelineRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineRunStatus) GetCondition

GetCondition returns the Condition matching the given type.

func (*PipelineRunStatus) InitializeConditions

func (ps *PipelineRunStatus) InitializeConditions()

InitializeConditions will set all conditions in pipelineRunCondSet to unknown for the PipelineRun

func (*PipelineRunStatus) SetCondition

func (pr *PipelineRunStatus) SetCondition(newCond *duckv1alpha1.Condition)

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type PipelineSpec

type PipelineSpec struct {
	Tasks      []PipelineTask `json:"tasks"`
	Generation int64          `json:"generation,omitempty"`
}

PipelineSpec defines the desired state of PipeLine.

func (*PipelineSpec) DeepCopy

func (in *PipelineSpec) DeepCopy() *PipelineSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.

func (*PipelineSpec) DeepCopyInto

func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PipelineSpec) SetDefaults

func (ps *PipelineSpec) SetDefaults()

func (*PipelineSpec) Validate

func (ps *PipelineSpec) Validate() *apis.FieldError

type PipelineStatus

type PipelineStatus struct {
}

PipelineStatus defines the observed state of Pipeline

func (*PipelineStatus) DeepCopy

func (in *PipelineStatus) DeepCopy() *PipelineStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineStatus.

func (*PipelineStatus) DeepCopyInto

func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTask

type PipelineTask struct {
	Name    string  `json:"name"`
	TaskRef TaskRef `json:"taskRef"`
	// +optional
	InputSourceBindings []SourceBinding `json:"inputSourceBindings,omitempty"`
	// +optional
	OutputSourceBindings []SourceBinding `json:"outputSourceBindings,omitempty"`
	// TODO(#68) Cluster should become a type of Resource
	// +optional
	ClusterBindings []ClusterBinding `json:"clusterBindings,omitempty"`
	// +optional
	Params []Param `json:"params,omitempty"`
}

PipelineTask defines a task in a Pipeline, passing inputs from both PipelineParams and from the output of previous tasks.

func (*PipelineTask) DeepCopy

func (in *PipelineTask) DeepCopy() *PipelineTask

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTask.

func (*PipelineTask) DeepCopyInto

func (in *PipelineTask) DeepCopyInto(out *PipelineTask)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskParam

type PipelineTaskParam struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

PipelineTaskParam is used to provide arbitrary string parameters to a Task.

func (*PipelineTaskParam) DeepCopy

func (in *PipelineTaskParam) DeepCopy() *PipelineTaskParam

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskParam.

func (*PipelineTaskParam) DeepCopyInto

func (in *PipelineTaskParam) DeepCopyInto(out *PipelineTaskParam)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTaskRun

type PipelineTaskRun struct {
	Name string `json:"name"`
}

PipelineTaskRun reports the results of running a step in the Task. Each task has the potential to succeed or fail (based on the exit code) and produces logs.

func (*PipelineTaskRun) DeepCopy

func (in *PipelineTaskRun) DeepCopy() *PipelineTaskRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTaskRun.

func (*PipelineTaskRun) DeepCopyInto

func (in *PipelineTaskRun) DeepCopyInto(out *PipelineTaskRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTriggerRef

type PipelineTriggerRef struct {
	Type PipelineTriggerType `json:"type"`
	// +optional
	Name string `json:"name,omitempty"`
}

PipelineTriggerRef describes what triggered this Pipeline to run. It could be triggered manually, or it could have been some kind of external event (not yet designed).

func (*PipelineTriggerRef) DeepCopy

func (in *PipelineTriggerRef) DeepCopy() *PipelineTriggerRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineTriggerRef.

func (*PipelineTriggerRef) DeepCopyInto

func (in *PipelineTriggerRef) DeepCopyInto(out *PipelineTriggerRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PipelineTriggerType

type PipelineTriggerType string

PipelineTriggerType indicates the mechanism by which this PipelineRun was created.

const (
	// PipelineTriggerTypeManual indicates that this PipelineRun was invoked manually by a user.
	PipelineTriggerTypeManual PipelineTriggerType = "manual"
)

type ResultTarget

type ResultTarget struct {
	Name string           `json:"name"`
	Type ResultTargetType `json:"type"`
	URL  string           `json:"url"`
}

ResultTarget is used to identify an endpoint where results can be uploaded. The serviceaccount used for the pipeline must have access to this endpoint.

func (*ResultTarget) DeepCopy

func (in *ResultTarget) DeepCopy() *ResultTarget

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultTarget.

func (*ResultTarget) DeepCopyInto

func (in *ResultTarget) DeepCopyInto(out *ResultTarget)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResultTarget) Validate

func (r ResultTarget) Validate(path string) *apis.FieldError

type ResultTargetType

type ResultTargetType string

ResultTargetType represents the type of endpoint that this result target is, so that the controller will know how to write results to it.

type Results

type Results struct {
	// Runs is used to store the yaml/json of TaskRuns and PipelineRuns.
	Runs ResultTarget `json:"runs"`

	// Logs will store all logs output from running a task.
	Logs ResultTarget `json:"logs"`

	// Tests will store test results, if a task provides them.
	// +optional
	Tests *ResultTarget `json:"tests,omitempty"`
}

Results tells a pipeline where to persist the results of runnign the pipeline.

func (*Results) DeepCopy

func (in *Results) DeepCopy() *Results

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Results.

func (*Results) DeepCopyInto

func (in *Results) DeepCopyInto(out *Results)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Results) Validate

func (r *Results) Validate(path string) *apis.FieldError

type SourceBinding

type SourceBinding struct {
	// Name is the string the Task will use to identify this resource in its inputs.
	Name string `json:"name"`
	// Key is the string that the PipelineParams will use to identify this source.
	Key string `json:"key"`
	// The Resource this binding is referring to
	ResourceRef PipelineResourceRef `json:"resourceRef"`
	// PassedConstraints is the list of Task names that the resource has to pass through.
	// +optional
	PassedConstraints []string `json:"passedConstraints,omitempty"`
}

SourceBinding is used to bind a Source from a PipelineParams to a source required as an input for a task.

func (*SourceBinding) DeepCopy

func (in *SourceBinding) DeepCopy() *SourceBinding

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceBinding.

func (*SourceBinding) DeepCopyInto

func (in *SourceBinding) DeepCopyInto(out *SourceBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StepRun

type StepRun struct {
	Name     string `json:"name"`
	LogsURL  string `json:"logsURL"`
	ExitCode int    `json:"exitCode"`
}

StepRun reports the results of running a step in the Task. Each task has the potential to succeed or fail (based on the exit code) and produces logs.

func (*StepRun) DeepCopy

func (in *StepRun) DeepCopy() *StepRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StepRun.

func (*StepRun) DeepCopyInto

func (in *StepRun) DeepCopyInto(out *StepRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Task

type Task struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec holds the desired state of the Task from the client
	// +optional
	Spec TaskSpec `json:"spec,omitempty"`
	// Status communicates the observed state of the Task from the controller
	// +optional
	Status TaskStatus `json:"status,omitempty"`
}

Task is the Schema for the tasks API +k8s:openapi-gen=true

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Task.

func (*Task) DeepCopyInto

func (in *Task) DeepCopyInto(out *Task)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Task) DeepCopyObject

func (in *Task) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Task) SetDefaults

func (t *Task) SetDefaults()

func (*Task) Validate

func (t *Task) Validate() *apis.FieldError

type TaskList

type TaskList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Task `json:"items"`
}

TaskList contains a list of Task

func (*TaskList) DeepCopy

func (in *TaskList) DeepCopy() *TaskList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskList.

func (*TaskList) DeepCopyInto

func (in *TaskList) DeepCopyInto(out *TaskList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskList) DeepCopyObject

func (in *TaskList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TaskParam

type TaskParam struct {
	Name string `json:"name"`
}

TaskParam defines arbitrary parameters needed by a task beyond typed inputs such as resources.

func (*TaskParam) DeepCopy

func (in *TaskParam) DeepCopy() *TaskParam

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskParam.

func (*TaskParam) DeepCopyInto

func (in *TaskParam) DeepCopyInto(out *TaskParam)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRef

type TaskRef struct {
	// Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
	Name string `json:"name"`
	// API version of the referent
	// +optional
	APIVersion string `json:"apiVersion,omitempty"`
}

TaskRef can be used to refer to a specific instance of a task. Copied from CrossVersionObjectReference: https://github.com/kubernetes/kubernetes/blob/169df7434155cbbc22f1532cba8e0a9588e29ad8/pkg/apis/autoscaling/types.go#L64

func (*TaskRef) DeepCopy

func (in *TaskRef) DeepCopy() *TaskRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRef.

func (*TaskRef) DeepCopyInto

func (in *TaskRef) DeepCopyInto(out *TaskRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskResource

type TaskResource struct {
	Name string               `json:"name"`
	Type PipelineResourceType `json:"type"`
}

TaskResource defines an input or output Resource declared as a requirement by a Task. The Name field will be used to refer to these Resources within the Task definition, and when provided as an Input, the Name will be the path to the volume mounted containing this Resource as an input (e.g. an input Resource named `workspace` will be mounted at `/workspace`).

func (*TaskResource) DeepCopy

func (in *TaskResource) DeepCopy() *TaskResource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskResource.

func (*TaskResource) DeepCopyInto

func (in *TaskResource) DeepCopyInto(out *TaskResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskRun

type TaskRun struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Spec TaskRunSpec `json:"spec,omitempty"`
	// +optional
	Status TaskRunStatus `json:"status,omitempty"`
}

TaskRun is the Schema for the taskruns API +k8s:openapi-gen=true

func (*TaskRun) DeepCopy

func (in *TaskRun) DeepCopy() *TaskRun

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRun.

func (*TaskRun) DeepCopyInto

func (in *TaskRun) DeepCopyInto(out *TaskRun)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskRun) DeepCopyObject

func (in *TaskRun) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TaskRun) GetBuildRef

func (tr *TaskRun) GetBuildRef() corev1.ObjectReference

GetBuildRef for task

func (*TaskRun) SetDefaults

func (t *TaskRun) SetDefaults()

func (*TaskRun) Validate

func (t *TaskRun) Validate() *apis.FieldError

type TaskRunInputs

type TaskRunInputs struct {
	// +optional
	Resources []PipelineResourceVersion `json:"resourcesVersion,omitempty"`
	// +optional
	Params []Param `json:"params,omitempty"`
}

TaskRunInputs holds the input values that this task was invoked with.

func (*TaskRunInputs) DeepCopy

func (in *TaskRunInputs) DeepCopy() *TaskRunInputs

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunInputs.

func (*TaskRunInputs) DeepCopyInto

func (in *TaskRunInputs) DeepCopyInto(out *TaskRunInputs)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (TaskRunInputs) Validate

func (i TaskRunInputs) Validate(path string) *apis.FieldError

type TaskRunList

type TaskRunList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TaskRun `json:"items"`
}

TaskRunList contains a list of TaskRun

func (*TaskRunList) DeepCopy

func (in *TaskRunList) DeepCopy() *TaskRunList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunList.

func (*TaskRunList) DeepCopyInto

func (in *TaskRunList) DeepCopyInto(out *TaskRunList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskRunList) DeepCopyObject

func (in *TaskRunList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TaskRunSpec

type TaskRunSpec struct {
	TaskRef TaskRef     `json:"taskRef"`
	Trigger TaskTrigger `json:"trigger"`
	// +optional
	Inputs TaskRunInputs `json:"inputs,omitempty"`
	// +optional
	Outputs Outputs `json:"outputs,omitempty"`
	Results Results `json:"results"`
	// +optional
	Generation int64 `json:"generation,omitempty"`
	// +optional
	ServiceAccount string `json:"serviceAccount"`
}

TaskRunSpec defines the desired state of TaskRun

func (*TaskRunSpec) DeepCopy

func (in *TaskRunSpec) DeepCopy() *TaskRunSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunSpec.

func (*TaskRunSpec) DeepCopyInto

func (in *TaskRunSpec) DeepCopyInto(out *TaskRunSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskRunSpec) Validate

func (ts *TaskRunSpec) Validate() *apis.FieldError

type TaskRunStatus

type TaskRunStatus struct {
	Steps []StepRun `json:"steps"`
	// Conditions describes the set of conditions of this build.
	Conditions duckv1alpha1.Conditions `json:"conditions,omitempty"`
}

TaskRunStatus defines the observed state of TaskRun

func (*TaskRunStatus) DeepCopy

func (in *TaskRunStatus) DeepCopy() *TaskRunStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskRunStatus.

func (*TaskRunStatus) DeepCopyInto

func (in *TaskRunStatus) DeepCopyInto(out *TaskRunStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskRunStatus) GetCondition

GetCondition returns the Condition matching the given type.

func (*TaskRunStatus) InitializeConditions

func (ts *TaskRunStatus) InitializeConditions()

func (*TaskRunStatus) SetCondition

func (ts *TaskRunStatus) SetCondition(newCond *duckv1alpha1.Condition)

SetCondition sets the condition, unsetting previous conditions with the same type as necessary.

type TaskSpec

type TaskSpec struct {
	// +optional
	Inputs *Inputs `json:"inputs,omitempty"`
	// +optional
	Outputs   *Outputs                 `json:"outputs,omitempty"`
	BuildSpec *buildv1alpha1.BuildSpec `json:"buildSpec"`
	// +optional
	Generation int64 `json:"generation,omitempty"`
}

TaskSpec defines the desired state of Task

func (*TaskSpec) DeepCopy

func (in *TaskSpec) DeepCopy() *TaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.

func (*TaskSpec) DeepCopyInto

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskSpec) SetDefaults

func (ts *TaskSpec) SetDefaults()

func (*TaskSpec) Validate

func (ts *TaskSpec) Validate() *apis.FieldError

type TaskStatus

type TaskStatus struct {
}

TaskStatus defines the observed state of Task

func (*TaskStatus) DeepCopy

func (in *TaskStatus) DeepCopy() *TaskStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskStatus.

func (*TaskStatus) DeepCopyInto

func (in *TaskStatus) DeepCopyInto(out *TaskStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskTrigger

type TaskTrigger struct {
	TriggerRef TaskTriggerRef `json:"triggerRef"`
}

TaskTrigger defines a webhook style trigger to start a TaskRun

func (*TaskTrigger) DeepCopy

func (in *TaskTrigger) DeepCopy() *TaskTrigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskTrigger.

func (*TaskTrigger) DeepCopyInto

func (in *TaskTrigger) DeepCopyInto(out *TaskTrigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TaskTriggerRef

type TaskTriggerRef struct {
	Type TaskTriggerType `json:"type"`
	// +optional
	Name string `json:"name,omitempty"`
}

TaskTriggerRef describes what triggered this Task to run. It could be triggered manually, or it may have been part of a PipelineRun in which case this ref would refer to the corresponding PipelineRun.

func (*TaskTriggerRef) DeepCopy

func (in *TaskTriggerRef) DeepCopy() *TaskTriggerRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskTriggerRef.

func (*TaskTriggerRef) DeepCopyInto

func (in *TaskTriggerRef) DeepCopyInto(out *TaskTriggerRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (TaskTriggerRef) Validate

func (r TaskTriggerRef) Validate(path string) *apis.FieldError

type TaskTriggerType

type TaskTriggerType string

TaskTriggerType indicates the mechanism by which this TaskRun was created.

const (
	// TaskTriggerTypeManual indicates that this TaskRun was invoked manually by a user.
	TaskTriggerTypeManual TaskTriggerType = "manual"

	// TaskTriggerTypePipelineRun indicates that this TaskRun was created by a controller
	// attempting to realize a PipelineRun. In this case the `name` will refer to the name
	// of the PipelineRun.
	TaskTriggerTypePipelineRun TaskTriggerType = "pipelineRun"
)

type TestResult

type TestResult struct {
	Name string `json:"name"`
	// TODO: maybe this is an enum with types like "go test", "junit", etc.
	Format string `json:"format"`
	Path   string `json:"path"`
}

TestResult allows a task to specify the location where test logs can be found and what format they will be in.

func (*TestResult) DeepCopy

func (in *TestResult) DeepCopy() *TestResult

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResult.

func (*TestResult) DeepCopyInto

func (in *TestResult) DeepCopyInto(out *TestResult)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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