pipeline: github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1 Index | Files

package v1alpha1

import "github.com/tektoncd/pipeline/pkg/apis/pipeline/v1alpha1"

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/tektoncd/pipeline/pkg/apis/pipeline +k8s:defaulter-gen=TypeMeta +groupName=tekton.dev

Index

Package Files

artifact_bucket.go artifact_pvc.go build_gcs_resource.go cloud_event_resource.go cluster_resource.go cluster_task_defaults.go cluster_task_types.go cluster_task_validation.go condition_defaults.go condition_types.go condition_validation.go contexts.go doc.go gcs_resource.go git_resource.go image_resource.go merge.go param_types.go pipeline_defaults.go pipeline_interface.go pipeline_types.go pipeline_validation.go pipelineresource_validation.go pipelinerun_defaults.go pipelinerun_types.go pipelinerun_validation.go pod.go pull_request_resource.go register.go resource_defaults.go resource_paths.go resource_types.go secret_volume_mount.go step_replacements.go storage_resource.go task_defaults.go task_interface.go task_types.go task_validation.go taskrun_defaults.go taskrun_types.go taskrun_validation.go zz_generated.deepcopy.go

Constants

const (
    // PipelineRunSpecStatusCancelled indicates that the user wants to cancel the task,
    // if not already cancelled or terminated
    PipelineRunSpecStatusCancelled = "PipelineRunCancelled"
)
const (
    // TaskRunSpecStatusCancelled indicates that the user wants to cancel the task,
    // if not already cancelled or terminated
    TaskRunSpecStatusCancelled = "TaskRunCancelled"
)
const WorkspaceDir = "/workspace"

Variables

var (

    // AddToScheme adds Build types to the scheme.
    AddToScheme = schemeBuilder.AddToScheme
)
var AllParamTypes = v1alpha2.AllParamTypes

AllParamTypes can be used for ParamType validation.

var AllResourceTypes = v1alpha2.AllResourceTypes

AllResourceTypes can be used for validation to check if a provided Resource type is one of the known types.

var (
    AllowedOutputResources = v1alpha2.AllowedOutputResources
)
var SchemeGroupVersion = schema.GroupVersion{Group: pipeline.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

func AllowedStorageType Uses

func AllowedStorageType(gotType string) bool

func ApplyStepReplacements Uses

func ApplyStepReplacements(step *Step, stringReplacements map[string]string, arrayReplacements map[string][]string)

func ApplyTaskModifier Uses

func ApplyTaskModifier(ts *TaskSpec, tm TaskModifier) error

ApplyTaskModifier applies a modifier to the task by appending and prepending steps and volumes. If steps with the same name exist in ts an error will be returned. If identical Volumes have been added, they will not be added again. If Volumes with the same name but different contents have been added, an error will be returned. FIXME(vdemeester) de-duplicate this

func GetPvcMount Uses

func GetPvcMount(name string) corev1.VolumeMount

GetPvcMount returns a mounting of the volume with the mount path /pvc.

func HasDefaultConfigurationName Uses

func HasDefaultConfigurationName(ctx context.Context) bool

HasDefaultConfigurationName checks to see whether the given context has been marked as having a default configurationName.

func InputResourcePath Uses

func InputResourcePath(r ResourceDeclaration) string

InputResourcePath returns the path where the given input resource will get mounted in a Pod

func IsUpgradeViaDefaulting Uses

func IsUpgradeViaDefaulting(ctx context.Context) bool

IsUpgradeViaDefaulting checks whether we should be "defaulting" from v1alpha1 pre-defaults to the v1alpha1 post-defaults subset.

func Kind Uses

func Kind(kind string) schema.GroupKind

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

func OutputResourcePath Uses

func OutputResourcePath(r ResourceDeclaration) string

OutputResourcePath returns the path to the output resouce in a Pod

func Resource Uses

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func ValidateVolumes Uses

func ValidateVolumes(volumes []corev1.Volume) *apis.FieldError

func WithDefaultConfigurationName Uses

func WithDefaultConfigurationName(ctx context.Context) context.Context

WithDefaultConfigurationName notes on the context for nested validation that there is a default configuration name, which affects how an empty configurationName is validated.

func WithUpgradeViaDefaulting Uses

func WithUpgradeViaDefaulting(ctx context.Context) context.Context

WithUpgradeViaDefaulting notes on the context that we want defaulting to rewrite from v1alpha1 pre-defaults to v1alpha1 post-defaults.

type ArrayOrString Uses

type ArrayOrString = v1alpha2.ArrayOrString

ArrayOrString is a type that can hold a single string or string array. Used in JSON unmarshalling so that a single JSON field can accept either an individual string or an array of strings.

type ArtifactBucket Uses

type ArtifactBucket struct {
    Name     string
    Location string
    Secrets  []SecretParam

    ShellImage  string
    GsutilImage string
}

ArtifactBucket contains the Storage bucket configuration defined in the Bucket config map.

func (*ArtifactBucket) DeepCopy Uses

func (in *ArtifactBucket) DeepCopy() *ArtifactBucket

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

func (*ArtifactBucket) DeepCopyInto Uses

func (in *ArtifactBucket) DeepCopyInto(out *ArtifactBucket)

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

func (*ArtifactBucket) GetCopyFromStorageToSteps Uses

func (b *ArtifactBucket) GetCopyFromStorageToSteps(name, sourcePath, destinationPath string) []Step

GetCopyFromStorageToSteps returns a container used to download artifacts from temporary storage

func (*ArtifactBucket) GetCopyToStorageFromSteps Uses

func (b *ArtifactBucket) GetCopyToStorageFromSteps(name, sourcePath, destinationPath string) []Step

GetCopyToStorageFromSteps returns a container used to upload artifacts for temporary storage

func (*ArtifactBucket) GetSecretsVolumes Uses

func (b *ArtifactBucket) GetSecretsVolumes() []corev1.Volume

GetSecretsVolumes returns the list of volumes for secrets to be mounted on pod

func (*ArtifactBucket) GetType Uses

func (b *ArtifactBucket) GetType() string

GetType returns the type of the artifact storage

func (*ArtifactBucket) StorageBasePath Uses

func (b *ArtifactBucket) StorageBasePath(pr *PipelineRun) string

StorageBasePath returns the path to be used to store artifacts in a pipelinerun temporary storage

type ArtifactPVC Uses

type ArtifactPVC struct {
    Name                  string
    PersistentVolumeClaim *corev1.PersistentVolumeClaim

    ShellImage string
}

ArtifactPVC represents the pvc created by the pipelinerun for artifacts temporary storage.

func (*ArtifactPVC) DeepCopy Uses

func (in *ArtifactPVC) DeepCopy() *ArtifactPVC

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

func (*ArtifactPVC) DeepCopyInto Uses

func (in *ArtifactPVC) DeepCopyInto(out *ArtifactPVC)

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

func (*ArtifactPVC) GetCopyFromStorageToSteps Uses

func (p *ArtifactPVC) GetCopyFromStorageToSteps(name, sourcePath, destinationPath string) []Step

GetCopyFromStorageToSteps returns a container used to download artifacts from temporary storage.

func (*ArtifactPVC) GetCopyToStorageFromSteps Uses

func (p *ArtifactPVC) GetCopyToStorageFromSteps(name, sourcePath, destinationPath string) []Step

GetCopyToStorageFromSteps returns a container used to upload artifacts for temporary storage.

func (*ArtifactPVC) GetSecretsVolumes Uses

func (p *ArtifactPVC) GetSecretsVolumes() []corev1.Volume

GetSecretsVolumes returns the list of volumes for secrets to be mounted on pod.

func (*ArtifactPVC) GetType Uses

func (p *ArtifactPVC) GetType() string

GetType returns the type of the artifact storage.

func (*ArtifactPVC) StorageBasePath Uses

func (p *ArtifactPVC) StorageBasePath(pr *PipelineRun) string

StorageBasePath returns the path to be used to store artifacts in a pipelinerun temporary storage.

type BuildGCSResource Uses

type BuildGCSResource struct {
    Name         string
    Type         PipelineResourceType
    Location     string
    ArtifactType GCSArtifactType

    ShellImage           string `json:"-"`
    BuildGCSFetcherImage string `json:"-"`
}

BuildGCSResource describes a resource in the form of an archive, or a source manifest describing files to fetch. BuildGCSResource does incremental uploads for files in directory.

func NewBuildGCSResource Uses

func NewBuildGCSResource(images pipeline.Images, r *PipelineResource) (*BuildGCSResource, error)

NewBuildGCSResource creates a new BuildGCS resource to pass to a Task.

func (*BuildGCSResource) DeepCopy Uses

func (in *BuildGCSResource) DeepCopy() *BuildGCSResource

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

func (*BuildGCSResource) DeepCopyInto Uses

func (in *BuildGCSResource) DeepCopyInto(out *BuildGCSResource)

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

func (*BuildGCSResource) GetInputTaskModifier Uses

func (s *BuildGCSResource) GetInputTaskModifier(ts *TaskSpec, sourcePath string) (TaskModifier, error)

GetInputTaskModifier returns a TaskModifier that prepends a step to a Task to fetch the archive or manifest.

func (BuildGCSResource) GetName Uses

func (s BuildGCSResource) GetName() string

GetName returns the name of the resource.

func (*BuildGCSResource) GetOutputTaskModifier Uses

func (s *BuildGCSResource) GetOutputTaskModifier(ts *TaskSpec, sourcePath string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (*BuildGCSResource) GetSecretParams Uses

func (s *BuildGCSResource) GetSecretParams() []SecretParam

GetSecretParams returns nil because it takes no secret params.

func (BuildGCSResource) GetType Uses

func (s BuildGCSResource) GetType() PipelineResourceType

GetType returns the type of the resource, in this case "storage".

func (*BuildGCSResource) Replacements Uses

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

Replacements returns the set of available replacements for this resource.

type CloudEventCondition Uses

type CloudEventCondition string

CloudEventCondition is a string that represents the condition of the event.

const (
    // CloudEventConditionUnknown means that the condition for the event to be
    // triggered was not met yet, or we don't know the state yet.
    CloudEventConditionUnknown CloudEventCondition = "Unknown"
    // CloudEventConditionSent means that the event was sent successfully
    CloudEventConditionSent CloudEventCondition = "Sent"
    // CloudEventConditionFailed means that there was one or more attempts to
    // send the event, and none was successful so far.
    CloudEventConditionFailed CloudEventCondition = "Failed"
)

type CloudEventDelivery Uses

type CloudEventDelivery struct {
    // Target points to an addressable
    Target string                  `json:"target,omitempty"`
    Status CloudEventDeliveryState `json:"status,omitempty"`
}

CloudEventDelivery is the target of a cloud event along with the state of delivery.

func (*CloudEventDelivery) DeepCopy Uses

func (in *CloudEventDelivery) DeepCopy() *CloudEventDelivery

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

func (*CloudEventDelivery) DeepCopyInto Uses

func (in *CloudEventDelivery) DeepCopyInto(out *CloudEventDelivery)

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

type CloudEventDeliveryState Uses

type CloudEventDeliveryState struct {
    // Current status
    Condition CloudEventCondition `json:"condition,omitempty"`
    // SentAt is the time at which the last attempt to send the event was made
    // +optional
    SentAt *metav1.Time `json:"sentAt,omitempty"`
    // Error is the text of error (if any)
    Error string `json:"message"`
    // RetryCount is the number of attempts of sending the cloud event
    RetryCount int32 `json:"retryCount"`
}

CloudEventDeliveryState reports the state of a cloud event to be sent.

func (*CloudEventDeliveryState) DeepCopy Uses

func (in *CloudEventDeliveryState) DeepCopy() *CloudEventDeliveryState

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

func (*CloudEventDeliveryState) DeepCopyInto Uses

func (in *CloudEventDeliveryState) DeepCopyInto(out *CloudEventDeliveryState)

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

type CloudEventResource Uses

type CloudEventResource struct {
    // Name is the name used to reference to the PipelineResource
    Name string `json:"name"`
    // Type must be `PipelineResourceTypeCloudEvent`
    Type PipelineResourceType `json:"type"`
    // TargetURI is the URI of the sink which the cloud event is develired to
    TargetURI string `json:"targetURI"`
}

CloudEventResource is an event sink to which events are delivered when a TaskRun has finished

func NewCloudEventResource Uses

func NewCloudEventResource(r *PipelineResource) (*CloudEventResource, error)

NewCloudEventResource creates a new CloudEvent resource to pass to a Task

func (*CloudEventResource) DeepCopy Uses

func (in *CloudEventResource) DeepCopy() *CloudEventResource

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

func (*CloudEventResource) DeepCopyInto Uses

func (in *CloudEventResource) DeepCopyInto(out *CloudEventResource)

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

func (*CloudEventResource) GetInputTaskModifier Uses

func (s *CloudEventResource) GetInputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (CloudEventResource) GetName Uses

func (s CloudEventResource) GetName() string

GetName returns the name of the resource

func (*CloudEventResource) GetOutputTaskModifier Uses

func (s *CloudEventResource) GetOutputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (CloudEventResource) GetType Uses

func (s CloudEventResource) GetType() PipelineResourceType

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

func (*CloudEventResource) Replacements Uses

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

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

type ClusterResource Uses

type ClusterResource struct {
    Name string               `json:"name"`
    Type PipelineResourceType `json:"type"`
    // URL must be a host string
    URL      string `json:"url"`
    Revision string `json:"revision"`
    // Server requires Basic authentication
    Username  string `json:"username"`
    Password  string `json:"password"`
    Namespace string `json:"namespace"`
    // Server requires Bearer authentication. This client will not attempt to use
    // refresh tokens for an OAuth2 flow.
    // Token overrides userame and password
    Token string `json:"token"`
    // Server should be accessed without verifying the TLS certificate. For testing only.
    Insecure bool
    // CAData holds PEM-encoded bytes (typically read from a root certificates bundle).
    // CAData takes precedence over CAFile
    CAData []byte `json:"cadata"`
    //Secrets holds a struct to indicate a field name and corresponding secret name to populate it
    Secrets []SecretParam `json:"secrets"`

    KubeconfigWriterImage string `json:"-"`
}

ClusterResource represents a cluster configuration (kubeconfig) that can be accessed by tasks in the pipeline

func NewClusterResource Uses

func NewClusterResource(kubeconfigWriterImage string, r *PipelineResource) (*ClusterResource, error)

NewClusterResource create a new k8s cluster resource to pass to a pipeline task

func (*ClusterResource) DeepCopy Uses

func (in *ClusterResource) DeepCopy() *ClusterResource

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

func (*ClusterResource) DeepCopyInto Uses

func (in *ClusterResource) DeepCopyInto(out *ClusterResource)

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

func (*ClusterResource) GetInputTaskModifier Uses

func (s *ClusterResource) GetInputTaskModifier(ts *TaskSpec, path string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (ClusterResource) GetName Uses

func (s ClusterResource) GetName() string

GetName returns the name of the resource

func (*ClusterResource) GetOutputTaskModifier Uses

func (s *ClusterResource) GetOutputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (ClusterResource) GetType Uses

func (s ClusterResource) GetType() PipelineResourceType

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

func (*ClusterResource) GetURL Uses

func (s *ClusterResource) GetURL() string

GetURL returns the url to be used with this resource

func (*ClusterResource) Replacements Uses

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

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

func (ClusterResource) String Uses

func (s ClusterResource) String() string

type ClusterTask Uses

type ClusterTask 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"`
}

ClusterTask is a Task with a cluster scope. ClusterTasks are used to represent Tasks that should be publicly addressable from any namespace in the cluster.

func (*ClusterTask) Copy Uses

func (t *ClusterTask) Copy() TaskInterface

func (*ClusterTask) DeepCopy Uses

func (in *ClusterTask) DeepCopy() *ClusterTask

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

func (*ClusterTask) DeepCopyInto Uses

func (in *ClusterTask) DeepCopyInto(out *ClusterTask)

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

func (*ClusterTask) DeepCopyObject Uses

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

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

func (*ClusterTask) SetDefaults Uses

func (t *ClusterTask) SetDefaults(ctx context.Context)

func (*ClusterTask) TaskMetadata Uses

func (t *ClusterTask) TaskMetadata() metav1.ObjectMeta

func (*ClusterTask) TaskSpec Uses

func (t *ClusterTask) TaskSpec() TaskSpec

func (*ClusterTask) Validate Uses

func (t *ClusterTask) Validate(ctx context.Context) *apis.FieldError

type ClusterTaskList Uses

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

ClusterTaskList contains a list of ClusterTask

func (*ClusterTaskList) DeepCopy Uses

func (in *ClusterTaskList) DeepCopy() *ClusterTaskList

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

func (*ClusterTaskList) DeepCopyInto Uses

func (in *ClusterTaskList) DeepCopyInto(out *ClusterTaskList)

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

func (*ClusterTaskList) DeepCopyObject Uses

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

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

type Condition Uses

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

    // Spec holds the desired state of the Condition from the client
    // +optional
    Spec ConditionSpec `json:"spec"`
}

Condition declares a step that is used to gate the execution of a Task in a Pipeline. A condition execution (ConditionCheck) evaluates to either true or false +k8s:openapi-gen=true

func (*Condition) DeepCopy Uses

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto Uses

func (in *Condition) DeepCopyInto(out *Condition)

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

func (*Condition) DeepCopyObject Uses

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

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

func (*Condition) SetDefaults Uses

func (c *Condition) SetDefaults(ctx context.Context)

func (Condition) Validate Uses

func (c Condition) Validate(ctx context.Context) *apis.FieldError

type ConditionCheck Uses

type ConditionCheck TaskRun

ConditionCheck represents a single evaluation of a Condition step.

func NewConditionCheck Uses

func NewConditionCheck(tr *TaskRun) *ConditionCheck

func (*ConditionCheck) DeepCopy Uses

func (in *ConditionCheck) DeepCopy() *ConditionCheck

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

func (*ConditionCheck) DeepCopyInto Uses

func (in *ConditionCheck) DeepCopyInto(out *ConditionCheck)

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

func (*ConditionCheck) IsDone Uses

func (cc *ConditionCheck) IsDone() bool

IsDone returns true if the ConditionCheck's status indicates that it is done.

func (*ConditionCheck) IsSuccessful Uses

func (cc *ConditionCheck) IsSuccessful() bool

IsSuccessful returns true if the ConditionCheck's status indicates that it is done.

type ConditionCheckStatus Uses

type ConditionCheckStatus struct {
    duckv1beta1.Status `json:",inline"`

    // PodName is the name of the pod responsible for executing this condition check.
    PodName string `json:"podName"`

    // StartTime is the time the check is actually started.
    // +optional
    StartTime *metav1.Time `json:"startTime,omitempty"`

    // CompletionTime is the time the check pod completed.
    // +optional
    CompletionTime *metav1.Time `json:"completionTime,omitempty"`

    // Check describes the state of the check container.
    // +optional
    Check corev1.ContainerState `json:"check,omitempty"`
}

ConditionCheckStatus defines the observed state of ConditionCheck

func (*ConditionCheckStatus) DeepCopy Uses

func (in *ConditionCheckStatus) DeepCopy() *ConditionCheckStatus

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

func (*ConditionCheckStatus) DeepCopyInto Uses

func (in *ConditionCheckStatus) DeepCopyInto(out *ConditionCheckStatus)

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

type ConditionList Uses

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

ConditionList contains a list of Conditions

func (*ConditionList) DeepCopy Uses

func (in *ConditionList) DeepCopy() *ConditionList

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

func (*ConditionList) DeepCopyInto Uses

func (in *ConditionList) DeepCopyInto(out *ConditionList)

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

func (*ConditionList) DeepCopyObject Uses

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

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

type ConditionSpec Uses

type ConditionSpec struct {
    // Check declares container whose exit code determines where a condition is true or false
    Check corev1.Container `json:"check,omitempty"`

    // Params is an optional set of parameters which must be supplied by the user when a Condition
    // is evaluated
    // +optional
    Params []ParamSpec `json:"params,omitempty"`

    // Resources is a list of the ConditionResources required to run the condition.
    // +optional
    Resources []ResourceDeclaration `json:"resources,omitempty"`
}

ConditionSpec defines the desired state of the Condition

func (*ConditionSpec) DeepCopy Uses

func (in *ConditionSpec) DeepCopy() *ConditionSpec

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

func (*ConditionSpec) DeepCopyInto Uses

func (in *ConditionSpec) DeepCopyInto(out *ConditionSpec)

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

func (*ConditionSpec) SetDefaults Uses

func (cs *ConditionSpec) SetDefaults(ctx context.Context)

func (*ConditionSpec) Validate Uses

func (cs *ConditionSpec) Validate(ctx context.Context) *apis.FieldError

type GCSArtifactType Uses

type GCSArtifactType string

GCSArtifactType defines a type of GCS resource.

const (
    // GCSZipArchive indicates that the resource should be fetched and
    // extracted as a .zip file.
    //
    // Deprecated: Use GCSZipArchive instead.
    GCSArchive GCSArtifactType = "Archive"

    // GCSZipArchive indicates that the resource should be fetched and
    // extracted as a .zip file.
    GCSZipArchive GCSArtifactType = "ZipArchive"

    // GCSTarGzArchive indicates that the resource should be fetched and
    // extracted as a .tar.gz file.
    GCSTarGzArchive GCSArtifactType = "TarGzArchive"

    // GCSManifest indicates that resource should be fetched using a
    // manifest-based protocol which enables incremental source upload.
    GCSManifest GCSArtifactType = "Manifest"
)

type GCSResource Uses

type GCSResource struct {
    Name     string               `json:"name"`
    Type     PipelineResourceType `json:"type"`
    Location string               `json:"location"`
    TypeDir  bool                 `json:"typeDir"`
    //Secret holds a struct to indicate a field name and corresponding secret name to populate it
    Secrets []SecretParam `json:"secrets"`

    ShellImage  string `json:"-"`
    GsutilImage string `json:"-"`
}

GCSResource is a GCS endpoint from which to get artifacts which is required by a Build/Task for context (e.g. a archive from which to build an image).

func NewGCSResource Uses

func NewGCSResource(images pipeline.Images, r *PipelineResource) (*GCSResource, error)

NewGCSResource creates a new GCS resource to pass to a Task

func (*GCSResource) DeepCopy Uses

func (in *GCSResource) DeepCopy() *GCSResource

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

func (*GCSResource) DeepCopyInto Uses

func (in *GCSResource) DeepCopyInto(out *GCSResource)

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

func (*GCSResource) GetInputTaskModifier Uses

func (s *GCSResource) GetInputTaskModifier(ts *TaskSpec, path string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (GCSResource) GetName Uses

func (s GCSResource) GetName() string

GetName returns the name of the resource

func (*GCSResource) GetOutputTaskModifier Uses

func (s *GCSResource) GetOutputTaskModifier(ts *TaskSpec, path string) (TaskModifier, error)

GetOutputTaskModifier returns the TaskModifier to be used when this resource is an output.

func (*GCSResource) GetSecretParams Uses

func (s *GCSResource) GetSecretParams() []SecretParam

GetSecretParams returns the resource secret params

func (GCSResource) GetType Uses

func (s GCSResource) GetType() PipelineResourceType

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

func (*GCSResource) Replacements Uses

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

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

type GitResource Uses

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"`
    Submodules bool   `json:"submodules"`

    GitImage string `json:"-"`
}

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 Uses

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

NewGitResource creates a new git resource to pass to a Task

func (*GitResource) DeepCopy Uses

func (in *GitResource) DeepCopy() *GitResource

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

func (*GitResource) DeepCopyInto Uses

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) GetInputTaskModifier Uses

func (s *GitResource) GetInputTaskModifier(_ *TaskSpec, path string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (GitResource) GetName Uses

func (s GitResource) GetName() string

GetName returns the name of the resource

func (*GitResource) GetOutputTaskModifier Uses

func (s *GitResource) GetOutputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (GitResource) GetType Uses

func (s GitResource) GetType() PipelineResourceType

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

func (*GitResource) GetURL Uses

func (s *GitResource) GetURL() string

GetURL returns the url to be used with this resource

func (*GitResource) Replacements Uses

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

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

type ImageResource Uses

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

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

func NewImageResource Uses

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

NewImageResource creates a new ImageResource from a PipelineResource.

func (*ImageResource) DeepCopy Uses

func (in *ImageResource) DeepCopy() *ImageResource

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

func (*ImageResource) DeepCopyInto Uses

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) GetInputTaskModifier Uses

func (s *ImageResource) GetInputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (ImageResource) GetName Uses

func (s ImageResource) GetName() string

GetName returns the name of the resource

func (*ImageResource) GetOutputTaskModifier Uses

func (s *ImageResource) GetOutputTaskModifier(_ *TaskSpec, _ string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (ImageResource) GetType Uses

func (s ImageResource) GetType() PipelineResourceType

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

func (*ImageResource) Replacements Uses

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

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

func (ImageResource) String Uses

func (s ImageResource) String() string

type Inputs Uses

type Inputs struct {
    // Resources is a list of the input resources required to run the task.
    // Resources are represented in TaskRuns as bindings to instances of
    // PipelineResources.
    // +optional
    Resources []TaskResource `json:"resources,omitempty"`
    // Params is a list of input parameters required to run the task. Params
    // must be supplied as inputs in TaskRuns unless they declare a default
    // value.
    // +optional
    Params []ParamSpec `json:"params,omitempty"`
}

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

func (*Inputs) DeepCopy Uses

func (in *Inputs) DeepCopy() *Inputs

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

func (*Inputs) DeepCopyInto Uses

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

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

func (*Inputs) SetDefaults Uses

func (inputs *Inputs) SetDefaults(ctx context.Context)

type InternalTaskModifier Uses

type InternalTaskModifier = v1alpha2.InternalTaskModifier

InternalTaskModifier implements TaskModifier for resources that are built-in to Tekton Pipelines.

type Outputs Uses

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 Uses

func (in *Outputs) DeepCopy() *Outputs

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

func (*Outputs) DeepCopyInto Uses

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

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

type Param Uses

type Param = v1alpha2.Param

Param declares an ArrayOrString to use for the parameter called name.

type ParamSpec Uses

type ParamSpec = v1alpha2.ParamSpec

ParamSpec defines arbitrary parameters needed beyond typed inputs (such as resources). Parameter values are provided by users as inputs on a TaskRun or PipelineRun.

type ParamType Uses

type ParamType = v1alpha2.ParamType

ParamType indicates the type of an input parameter; Used to distinguish between a single string and an array of strings.

const (
    ParamTypeString ParamType = v1alpha2.ParamTypeString
    ParamTypeArray  ParamType = v1alpha2.ParamTypeArray
)

Valid ParamTypes:

type Pipeline Uses

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"`
    // Status communicates the observed state of the Pipeline from the
    // controller.
    // +optional
    Status PipelineStatus `json:"status"`
}

Pipeline describes a list of Tasks to execute. It expresses how outputs of tasks feed into inputs of subsequent tasks. +k8s:openapi-gen=true

func (*Pipeline) Copy Uses

func (p *Pipeline) Copy() PipelineInterface

func (*Pipeline) DeepCopy Uses

func (in *Pipeline) DeepCopy() *Pipeline

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

func (*Pipeline) DeepCopyInto Uses

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 Uses

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

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

func (*Pipeline) PipelineMetadata Uses

func (p *Pipeline) PipelineMetadata() metav1.ObjectMeta

func (*Pipeline) PipelineSpec Uses

func (p *Pipeline) PipelineSpec() PipelineSpec

func (*Pipeline) SetDefaults Uses

func (p *Pipeline) SetDefaults(ctx context.Context)

func (*Pipeline) Validate Uses

func (p *Pipeline) Validate(ctx context.Context) *apis.FieldError

Validate checks that the Pipeline structure is valid but does not validate that any references resources exist, that is done at run time.

type PipelineConditionResource Uses

type PipelineConditionResource struct {
    // Name is the name of the PipelineResource as declared by the Condition.
    Name string `json:"name"`
    // Resource is the name of the DeclaredPipelineResource to use.
    Resource string `json:"resource"`
}

PipelineConditionResource allows a Pipeline to declare how its DeclaredPipelineResources should be provided to a Condition as its inputs.

func (*PipelineConditionResource) DeepCopy Uses

func (in *PipelineConditionResource) DeepCopy() *PipelineConditionResource

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

func (*PipelineConditionResource) DeepCopyInto Uses

func (in *PipelineConditionResource) DeepCopyInto(out *PipelineConditionResource)

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

type PipelineDeclaredResource Uses

type PipelineDeclaredResource struct {
    // Name is the name that will be used by the Pipeline to refer to this resource.
    // It does not directly correspond to the name of any PipelineResources Task
    // inputs or outputs, and it does not correspond to the actual names of the
    // PipelineResources that will be bound in the PipelineRun.
    Name string `json:"name"`
    // Type is the type of the PipelineResource.
    Type PipelineResourceType `json:"type"`
}

PipelineDeclaredResource is used by a Pipeline to declare the types of the PipelineResources that it will required to run and names which can be used to refer to these PipelineResources in PipelineTaskResourceBindings.

func (*PipelineDeclaredResource) DeepCopy Uses

func (in *PipelineDeclaredResource) DeepCopy() *PipelineDeclaredResource

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

func (*PipelineDeclaredResource) DeepCopyInto Uses

func (in *PipelineDeclaredResource) DeepCopyInto(out *PipelineDeclaredResource)

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

type PipelineInterface Uses

type PipelineInterface interface {
    PipelineMetadata() metav1.ObjectMeta
    PipelineSpec() PipelineSpec
    Copy() PipelineInterface
}

PipelineInterface is implemented by Pipeline and ClusterPipeline

type PipelineList Uses

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 Uses

func (in *PipelineList) DeepCopy() *PipelineList

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

func (*PipelineList) DeepCopyInto Uses

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 Uses

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

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

type PipelineRef Uses

type PipelineRef struct {
    // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
    Name string `json:"name,omitempty"`
    // 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 Uses

func (in *PipelineRef) DeepCopy() *PipelineRef

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

func (*PipelineRef) DeepCopyInto Uses

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 Uses

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

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

PipelineResource describes a resource that is an input to or output from a Task.

+k8s:openapi-gen=true

func (*PipelineResource) DeepCopy Uses

func (in *PipelineResource) DeepCopy() *PipelineResource

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

func (*PipelineResource) DeepCopyInto Uses

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 Uses

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

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

func (*PipelineResource) SetDefaults Uses

func (t *PipelineResource) SetDefaults(ctx context.Context)

func (*PipelineResource) Validate Uses

func (r *PipelineResource) Validate(ctx context.Context) *apis.FieldError

type PipelineResourceBinding Uses

type PipelineResourceBinding struct {
    // Name is the name of the PipelineResource in the Pipeline's declaration
    Name string `json:"name,omitempty"`
    // ResourceRef is a reference to the instance of the actual PipelineResource
    // that should be used
    // +optional
    ResourceRef *PipelineResourceRef `json:"resourceRef,omitempty"`
    // ResourceSpec is specification of a resource that should be created and
    // consumed by the task
    // +optional
    ResourceSpec *PipelineResourceSpec `json:"resourceSpec,omitempty"`
}

PipelineResourceBinding connects a reference to an instance of a PipelineResource with a PipelineResource dependency that the Pipeline has declared

func (*PipelineResourceBinding) DeepCopy Uses

func (in *PipelineResourceBinding) DeepCopy() *PipelineResourceBinding

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

func (*PipelineResourceBinding) DeepCopyInto Uses

func (in *PipelineResourceBinding) DeepCopyInto(out *PipelineResourceBinding)

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

type PipelineResourceInterface Uses

type PipelineResourceInterface interface {
    // GetName returns the name of this PipelineResource instance.
    GetName() string
    // GetType returns the type of this PipelineResource (often a super type, e.g. in the case of storage).
    GetType() PipelineResourceType
    // Replacements returns all the attributes that this PipelineResource has that
    // can be used for variable replacement.
    Replacements() map[string]string
    // GetOutputTaskModifier returns the TaskModifier instance that should be used on a Task
    // in order to add this kind of resource when it is being used as an output.
    GetOutputTaskModifier(ts *TaskSpec, path string) (TaskModifier, error)
    // GetInputTaskModifier returns the TaskModifier instance that should be used on a Task
    // in order to add this kind of resource when it is being used as an input.
    GetInputTaskModifier(ts *TaskSpec, path string) (TaskModifier, error)
}

PipelineResourceInterface interface to be implemented by different PipelineResource types

func ResourceFromType Uses

func ResourceFromType(r *PipelineResource, images pipeline.Images) (PipelineResourceInterface, error)

ResourceFromType returns an instance of the correct PipelineResource object type which can be used to add input and ouput containers as well as volumes to a TaskRun's pod in order to realize a PipelineResource in a pod.

type PipelineResourceList Uses

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 Uses

func (in *PipelineResourceList) DeepCopy() *PipelineResourceList

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

func (*PipelineResourceList) DeepCopyInto Uses

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 Uses

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

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

type PipelineResourceRef Uses

type PipelineResourceRef struct {
    // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
    Name string `json:"name,omitempty"`
    // 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 Uses

func (in *PipelineResourceRef) DeepCopy() *PipelineResourceRef

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

func (*PipelineResourceRef) DeepCopyInto Uses

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

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

type PipelineResourceResult Uses

type PipelineResourceResult struct {
    // Name and Digest are deprecated.
    Name   string `json:"name"`
    Digest string `json:"digest"`
    // These will replace Name and Digest (https://github.com/tektoncd/pipeline/issues/1392)
    Key         string              `json:"key"`
    Value       string              `json:"value"`
    ResourceRef PipelineResourceRef `json:"resourceRef,omitempty"`
}

PipelineResourceResult used to export the image name and digest as json

func (*PipelineResourceResult) DeepCopy Uses

func (in *PipelineResourceResult) DeepCopy() *PipelineResourceResult

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

func (*PipelineResourceResult) DeepCopyInto Uses

func (in *PipelineResourceResult) DeepCopyInto(out *PipelineResourceResult)

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

type PipelineResourceSpec Uses

type PipelineResourceSpec struct {
    Type   PipelineResourceType `json:"type"`
    Params []ResourceParam      `json:"params"`
    // Secrets to fetch to populate some of resource fields
    // +optional
    SecretParams []SecretParam `json:"secrets,omitempty"`
}

PipelineResourceSpec defines an individual resources used in the pipeline.

func (*PipelineResourceSpec) DeepCopy Uses

func (in *PipelineResourceSpec) DeepCopy() *PipelineResourceSpec

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

func (*PipelineResourceSpec) DeepCopyInto Uses

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 Uses

func (ts *PipelineResourceSpec) SetDefaults(ctx context.Context)

func (*PipelineResourceSpec) Validate Uses

func (rs *PipelineResourceSpec) Validate(ctx context.Context) *apis.FieldError

type PipelineResourceStatus Uses

type PipelineResourceStatus struct {
}

PipelineResourceStatus does not contain anything because Resources on their own do not have a status, they just hold data which is later used by PipelineRuns and TaskRuns.

func (*PipelineResourceStatus) DeepCopy Uses

func (in *PipelineResourceStatus) DeepCopy() *PipelineResourceStatus

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

func (*PipelineResourceStatus) DeepCopyInto Uses

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

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

type PipelineResourceStorageType Uses

type PipelineResourceStorageType string

type PipelineResourceType Uses

type PipelineResourceType = v1alpha2.PipelineResourceType

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 = v1alpha2.PipelineResourceTypeGit

    // PipelineResourceTypeStorage indicates that this source is a storage blob resource.
    PipelineResourceTypeStorage PipelineResourceType = v1alpha2.PipelineResourceTypeStorage

    // PipelineResourceTypeImage indicates that this source is a docker Image.
    PipelineResourceTypeImage PipelineResourceType = v1alpha2.PipelineResourceTypeImage

    // PipelineResourceTypeCluster indicates that this source is a k8s cluster Image.
    PipelineResourceTypeCluster PipelineResourceType = v1alpha2.PipelineResourceTypeCluster

    // PipelineResourceTypePullRequest indicates that this source is a SCM Pull Request.
    PipelineResourceTypePullRequest PipelineResourceType = v1alpha2.PipelineResourceTypePullRequest

    // PipelineResourceTypeCloudEvent indicates that this source is a cloud event URI
    PipelineResourceTypeCloudEvent PipelineResourceType = v1alpha2.PipelineResourceTypeCloudEvent
)
const (
    // PipelineResourceTypeGCS is the subtype for the GCSResources, which is backed by a GCS blob/directory.
    PipelineResourceTypeGCS PipelineResourceType = "gcs"

    // PipelineResourceTypeBuildGCS is the subtype for the BuildGCSResources, which is simialr to the GCSResource but
    // with additional funcitonality that was added to be compatible with knative build.
    PipelineResourceTypeBuildGCS PipelineResourceType = "build-gcs"
)

type PipelineRun Uses

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 represents a single execution of a Pipeline. PipelineRuns are how the graph of Tasks declared in a Pipeline are executed; they specify inputs to Pipelines such as parameter values and capture operational aspects of the Tasks execution such as service account and tolerations. Creating a PipelineRun creates TaskRuns for Tasks in the referenced Pipeline.

+k8s:openapi-gen=true

func (*PipelineRun) DeepCopy Uses

func (in *PipelineRun) DeepCopy() *PipelineRun

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

func (*PipelineRun) DeepCopyInto Uses

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 Uses

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

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

func (*PipelineRun) GetOwnerReference Uses

func (pr *PipelineRun) GetOwnerReference() []metav1.OwnerReference

GetOwnerReference gets the pipeline run as owner reference for any related objects

func (*PipelineRun) GetRunKey Uses

func (pr *PipelineRun) GetRunKey() string

GetRunKey return the pipelinerun key for timeout handler map

func (*PipelineRun) GetServiceAccountName Uses

func (pr *PipelineRun) GetServiceAccountName(pipelineTaskName string) string

GetServiceAccountName returns the service account name for a given PipelineTask if configured, otherwise it returns the PipelineRun's serviceAccountName.

func (*PipelineRun) GetTaskRunRef Uses

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

GetTaskRunRef for pipelinerun

func (*PipelineRun) HasStarted Uses

func (pr *PipelineRun) HasStarted() bool

HasStarted function check whether pipelinerun has valid start time set in its status

func (*PipelineRun) IsCancelled Uses

func (pr *PipelineRun) IsCancelled() bool

IsCancelled returns true if the PipelineRun's spec status is set to Cancelled state

func (*PipelineRun) IsDone Uses

func (pr *PipelineRun) IsDone() bool

IsDone returns true if the PipelineRun's status indicates that it is done.

func (*PipelineRun) IsTimedOut Uses

func (pr *PipelineRun) IsTimedOut() bool

IsTimedOut returns true if a pipelinerun has exceeded its spec.Timeout based on its status.Timeout

func (*PipelineRun) SetDefaults Uses

func (pr *PipelineRun) SetDefaults(ctx context.Context)

func (*PipelineRun) Validate Uses

func (pr *PipelineRun) Validate(ctx context.Context) *apis.FieldError

Validate pipelinerun

type PipelineRunConditionCheckStatus Uses

type PipelineRunConditionCheckStatus struct {
    // ConditionName is the name of the Condition
    ConditionName string `json:"conditionName,omitempty"`
    // Status is the ConditionCheckStatus for the corresponding ConditionCheck
    // +optional
    Status *ConditionCheckStatus `json:"status,omitempty"`
}

func (*PipelineRunConditionCheckStatus) DeepCopy Uses

func (in *PipelineRunConditionCheckStatus) DeepCopy() *PipelineRunConditionCheckStatus

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

func (*PipelineRunConditionCheckStatus) DeepCopyInto Uses

func (in *PipelineRunConditionCheckStatus) DeepCopyInto(out *PipelineRunConditionCheckStatus)

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

type PipelineRunList Uses

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

PipelineRunList contains a list of PipelineRun

func (*PipelineRunList) DeepCopy Uses

func (in *PipelineRunList) DeepCopy() *PipelineRunList

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

func (*PipelineRunList) DeepCopyInto Uses

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 Uses

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

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

type PipelineRunSpec Uses

type PipelineRunSpec struct {
    // +optional
    PipelineRef *PipelineRef `json:"pipelineRef,omitempty"`
    // +optional
    PipelineSpec *PipelineSpec `json:"pipelineSpec,omitempty"`
    // Resources is a list of bindings specifying which actual instances of
    // PipelineResources to use for the resources the Pipeline has declared
    // it needs.
    Resources []PipelineResourceBinding `json:"resources,omitempty"`
    // Params is a list of parameter names and values.
    Params []Param `json:"params,omitempty"`
    // +optional
    ServiceAccountName string `json:"serviceAccountName,omitempty"`
    // +optional
    ServiceAccountNames []PipelineRunSpecServiceAccountName `json:"serviceAccountNames,omitempty"`
    // Used for cancelling a pipelinerun (and maybe more later on)
    // +optional
    Status PipelineRunSpecStatus `json:"status,omitempty"`
    // Time after which the Pipeline times out. Defaults to never.
    // Refer to Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration
    // +optional
    Timeout *metav1.Duration `json:"timeout,omitempty"`

    // PodTemplate holds pod specific configuration
    PodTemplate PodTemplate `json:"podTemplate,omitempty"`
}

PipelineRunSpec defines the desired state of PipelineRun

func (*PipelineRunSpec) DeepCopy Uses

func (in *PipelineRunSpec) DeepCopy() *PipelineRunSpec

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

func (*PipelineRunSpec) DeepCopyInto Uses

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

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

func (*PipelineRunSpec) SetDefaults Uses

func (prs *PipelineRunSpec) SetDefaults(ctx context.Context)

func (*PipelineRunSpec) Validate Uses

func (ps *PipelineRunSpec) Validate(ctx context.Context) *apis.FieldError

Validate pipelinerun spec

type PipelineRunSpecServiceAccountName Uses

type PipelineRunSpecServiceAccountName struct {
    TaskName           string `json:"taskName,omitempty"`
    ServiceAccountName string `json:"serviceAccountName,omitempty"`
}

PipelineRunSpecServiceAccountName can be used to configure specific ServiceAccountName for a concrete Task

func (*PipelineRunSpecServiceAccountName) DeepCopy Uses

func (in *PipelineRunSpecServiceAccountName) DeepCopy() *PipelineRunSpecServiceAccountName

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

func (*PipelineRunSpecServiceAccountName) DeepCopyInto Uses

func (in *PipelineRunSpecServiceAccountName) DeepCopyInto(out *PipelineRunSpecServiceAccountName)

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

type PipelineRunSpecStatus Uses

type PipelineRunSpecStatus string

PipelineRunSpecStatus defines the pipelinerun spec status the user can provide

type PipelineRunStatus Uses

type PipelineRunStatus struct {
    duckv1beta1.Status `json:",inline"`

    // StartTime is the time the PipelineRun is actually started.
    // +optional
    StartTime *metav1.Time `json:"startTime,omitempty"`

    // CompletionTime is the time the PipelineRun completed.
    // +optional
    CompletionTime *metav1.Time `json:"completionTime,omitempty"`

    // map of PipelineRunTaskRunStatus with the taskRun name as the key
    // +optional
    TaskRuns map[string]*PipelineRunTaskRunStatus `json:"taskRuns,omitempty"`
}

PipelineRunStatus defines the observed state of PipelineRun

func (*PipelineRunStatus) DeepCopy Uses

func (in *PipelineRunStatus) DeepCopy() *PipelineRunStatus

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

func (*PipelineRunStatus) DeepCopyInto Uses

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 Uses

func (pr *PipelineRunStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the Condition matching the given type.

func (*PipelineRunStatus) InitializeConditions Uses

func (pr *PipelineRunStatus) InitializeConditions()

InitializeConditions will set all conditions in pipelineRunCondSet to unknown for the PipelineRun and set the started time to the current time

func (*PipelineRunStatus) SetCondition Uses

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

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

type PipelineRunTaskRunStatus Uses

type PipelineRunTaskRunStatus struct {
    // PipelineTaskName is the name of the PipelineTask.
    PipelineTaskName string `json:"pipelineTaskName,omitempty"`
    // Status is the TaskRunStatus for the corresponding TaskRun
    // +optional
    Status *TaskRunStatus `json:"status,omitempty"`
    // ConditionChecks maps the name of a condition check to its Status
    // +optional
    ConditionChecks map[string]*PipelineRunConditionCheckStatus `json:"conditionChecks,omitempty"`
}

PipelineRunTaskRunStatus contains the name of the PipelineTask for this TaskRun and the TaskRun's Status

func (*PipelineRunTaskRunStatus) DeepCopy Uses

func (in *PipelineRunTaskRunStatus) DeepCopy() *PipelineRunTaskRunStatus

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

func (*PipelineRunTaskRunStatus) DeepCopyInto Uses

func (in *PipelineRunTaskRunStatus) DeepCopyInto(out *PipelineRunTaskRunStatus)

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

type PipelineSpec Uses

type PipelineSpec struct {
    // Resources declares the names and types of the resources given to the
    // Pipeline's tasks as inputs and outputs.
    Resources []PipelineDeclaredResource `json:"resources,omitempty"`
    // Tasks declares the graph of Tasks that execute when this Pipeline is run.
    Tasks []PipelineTask `json:"tasks,omitempty"`
    // Params declares a list of input parameters that must be supplied when
    // this Pipeline is run.
    Params []ParamSpec `json:"params,omitempty"`
}

PipelineSpec defines the desired state of Pipeline.

func (*PipelineSpec) DeepCopy Uses

func (in *PipelineSpec) DeepCopy() *PipelineSpec

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

func (*PipelineSpec) DeepCopyInto Uses

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 Uses

func (ps *PipelineSpec) SetDefaults(ctx context.Context)

func (*PipelineSpec) Validate Uses

func (ps *PipelineSpec) Validate(ctx context.Context) *apis.FieldError

Validate checks that taskNames in the Pipeline are valid and that the graph of Tasks expressed in the Pipeline makes sense.

type PipelineStatus Uses

type PipelineStatus struct {
}

PipelineStatus does not contain anything because Pipelines on their own do not have a status, they just hold data which is later used by a PipelineRun.

func (*PipelineStatus) DeepCopy Uses

func (in *PipelineStatus) DeepCopy() *PipelineStatus

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

func (*PipelineStatus) DeepCopyInto Uses

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

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

type PipelineStorageResourceInterface Uses

type PipelineStorageResourceInterface interface {
    PipelineResourceInterface
    GetSecretParams() []SecretParam
}

PipelineStorageResourceInterface is the interface for subtypes of the storage type. It adds a function to the PipelineResourceInterface for retrieving secrets that are usually needed for storage PipelineResources.

func NewStorageResource Uses

func NewStorageResource(images pipeline.Images, r *PipelineResource) (PipelineStorageResourceInterface, error)

NewStorageResource returns an instance of the requested storage subtype, which can be used to add input and output steps and volumes to an executing pod.

type PipelineTask Uses

type PipelineTask struct {
    // Name is the name of this task within the context of a Pipeline. Name is
    // used as a coordinate with the `from` and `runAfter` fields to establish
    // the execution order of tasks relative to one another.
    Name string `json:"name,omitempty"`
    // TaskRef is a reference to a task definition.
    TaskRef TaskRef `json:"taskRef"`

    // Conditions is a list of conditions that need to be true for the task to run
    // +optional
    Conditions []PipelineTaskCondition `json:"conditions,omitempty"`

    // Retries represents how many times this task should be retried in case of task failure: ConditionSucceeded set to False
    // +optional
    Retries int `json:"retries,omitempty"`

    // RunAfter is the list of PipelineTask names that should be executed before
    // this Task executes. (Used to force a specific ordering in graph execution.)
    // +optional
    RunAfter []string `json:"runAfter,omitempty"`

    // Resources declares the resources given to this task as inputs and
    // outputs.
    // +optional
    Resources *PipelineTaskResources `json:"resources,omitempty"`
    // Parameters declares parameters passed to this task.
    // +optional
    Params []Param `json:"params,omitempty"`
}

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

func (*PipelineTask) DeepCopy Uses

func (in *PipelineTask) DeepCopy() *PipelineTask

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

func (*PipelineTask) DeepCopyInto Uses

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

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

func (PipelineTask) Deps Uses

func (pt PipelineTask) Deps() []string

func (PipelineTask) HashKey Uses

func (pt PipelineTask) HashKey() string

type PipelineTaskCondition Uses

type PipelineTaskCondition struct {
    // ConditionRef is the name of the Condition to use for the conditionCheck
    ConditionRef string `json:"conditionRef"`

    // Params declare parameters passed to this Condition
    // +optional
    Params []Param `json:"params,omitempty"`

    // Resources declare the resources provided to this Condition as input
    Resources []PipelineConditionResource `json:"resources,omitempty"`
}

PipelineTaskCondition allows a PipelineTask to declare a Condition to be evaluated before the Task is run.

func (*PipelineTaskCondition) DeepCopy Uses

func (in *PipelineTaskCondition) DeepCopy() *PipelineTaskCondition

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

func (*PipelineTaskCondition) DeepCopyInto Uses

func (in *PipelineTaskCondition) DeepCopyInto(out *PipelineTaskCondition)

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

type PipelineTaskInputResource Uses

type PipelineTaskInputResource struct {
    // Name is the name of the PipelineResource as declared by the Task.
    Name string `json:"name"`
    // Resource is the name of the DeclaredPipelineResource to use.
    Resource string `json:"resource"`
    // From is the list of PipelineTask names that the resource has to come from.
    // (Implies an ordering in the execution graph.)
    // +optional
    From []string `json:"from,omitempty"`
}

PipelineTaskInputResource maps the name of a declared PipelineResource input dependency in a Task to the resource in the Pipeline's DeclaredPipelineResources that should be used. This input may come from a previous task.

func (*PipelineTaskInputResource) DeepCopy Uses

func (in *PipelineTaskInputResource) DeepCopy() *PipelineTaskInputResource

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

func (*PipelineTaskInputResource) DeepCopyInto Uses

func (in *PipelineTaskInputResource) DeepCopyInto(out *PipelineTaskInputResource)

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

type PipelineTaskList Uses

type PipelineTaskList []PipelineTask

func (PipelineTaskList) DeepCopy Uses

func (in PipelineTaskList) DeepCopy() PipelineTaskList

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

func (PipelineTaskList) DeepCopyInto Uses

func (in PipelineTaskList) DeepCopyInto(out *PipelineTaskList)

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

func (PipelineTaskList) Items Uses

func (l PipelineTaskList) Items() []dag.Task

type PipelineTaskOutputResource Uses

type PipelineTaskOutputResource struct {
    // Name is the name of the PipelineResource as declared by the Task.
    Name string `json:"name"`
    // Resource is the name of the DeclaredPipelineResource to use.
    Resource string `json:"resource"`
}

PipelineTaskOutputResource maps the name of a declared PipelineResource output dependency in a Task to the resource in the Pipeline's DeclaredPipelineResources that should be used.

func (*PipelineTaskOutputResource) DeepCopy Uses

func (in *PipelineTaskOutputResource) DeepCopy() *PipelineTaskOutputResource

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

func (*PipelineTaskOutputResource) DeepCopyInto Uses

func (in *PipelineTaskOutputResource) DeepCopyInto(out *PipelineTaskOutputResource)

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

type PipelineTaskParam Uses

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 Uses

func (in *PipelineTaskParam) DeepCopy() *PipelineTaskParam

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

func (*PipelineTaskParam) DeepCopyInto Uses

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

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

type PipelineTaskResources Uses

type PipelineTaskResources struct {
    // Inputs holds the mapping from the PipelineResources declared in
    // DeclaredPipelineResources to the input PipelineResources required by the Task.
    Inputs []PipelineTaskInputResource `json:"inputs,omitempty"`
    // Outputs holds the mapping from the PipelineResources declared in
    // DeclaredPipelineResources to the input PipelineResources required by the Task.
    Outputs []PipelineTaskOutputResource `json:"outputs,omitempty"`
}

PipelineTaskResources allows a Pipeline to declare how its DeclaredPipelineResources should be provided to a Task as its inputs and outputs.

func (*PipelineTaskResources) DeepCopy Uses

func (in *PipelineTaskResources) DeepCopy() *PipelineTaskResources

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

func (*PipelineTaskResources) DeepCopyInto Uses

func (in *PipelineTaskResources) DeepCopyInto(out *PipelineTaskResources)

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

type PipelineTaskRun Uses

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

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 Uses

func (in *PipelineTaskRun) DeepCopy() *PipelineTaskRun

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

func (*PipelineTaskRun) DeepCopyInto Uses

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

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

type PodTemplate Uses

type PodTemplate struct {
    // NodeSelector is a selector which must be true for the pod to fit on a node.
    // Selector which must match a node's labels for the pod to be scheduled on that node.
    // More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
    // +optional
    NodeSelector map[string]string `json:"nodeSelector,omitempty"`

    // If specified, the pod's tolerations.
    // +optional
    Tolerations []corev1.Toleration `json:"tolerations,omitempty"`

    // If specified, the pod's scheduling constraints
    // +optional
    Affinity *corev1.Affinity `json:"affinity,omitempty"`

    // SecurityContext holds pod-level security attributes and common container settings.
    // Optional: Defaults to empty.  See type description for default values of each field.
    // +optional
    SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"`

    // List of volumes that can be mounted by containers belonging to the pod.
    // More info: https://kubernetes.io/docs/concepts/storage/volumes
    // +optional
    Volumes []corev1.Volume `json:"volumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name" protobuf:"bytes,1,rep,name=volumes"`

    // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io
    // group, which should be used to run this pod. If no RuntimeClass resource
    // matches the named class, the pod will not be run. If unset or empty, the
    // "legacy" RuntimeClass will be used, which is an implicit class with an
    // empty definition that uses the default runtime handler.
    // More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
    // This is a beta feature as of Kubernetes v1.14.
    // +optional
    RuntimeClassName *string `json:"runtimeClassName,omitempty" protobuf:"bytes,2,opt,name=runtimeClassName"`
}

PodTemplate holds pod specific configuration

func (*PodTemplate) DeepCopy Uses

func (in *PodTemplate) DeepCopy() *PodTemplate

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

func (*PodTemplate) DeepCopyInto Uses

func (in *PodTemplate) DeepCopyInto(out *PodTemplate)

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

type PullRequestResource Uses

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

    // URL pointing to the pull request.
    // Example: https://github.com/owner/repo/pulls/1
    URL string `json:"url"`
    // SCM provider (github or gitlab today). This will be guessed from URL if not set.
    Provider string `json:"provider"`
    // Secrets holds a struct to indicate a field name and corresponding secret name to populate it.
    Secrets []SecretParam `json:"secrets"`

    PRImage string `json:"-"`
}

PullRequestResource is an endpoint from which to get data which is required by a Build/Task for context.

func NewPullRequestResource Uses

func NewPullRequestResource(prImage string, r *PipelineResource) (*PullRequestResource, error)

NewPullRequestResource create a new git resource to pass to a Task

func (*PullRequestResource) DeepCopy Uses

func (in *PullRequestResource) DeepCopy() *PullRequestResource

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

func (*PullRequestResource) DeepCopyInto Uses

func (in *PullRequestResource) DeepCopyInto(out *PullRequestResource)

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

func (*PullRequestResource) GetInputTaskModifier Uses

func (s *PullRequestResource) GetInputTaskModifier(ts *TaskSpec, sourcePath string) (TaskModifier, error)

GetInputTaskModifier returns the TaskModifier to be used when this resource is an input.

func (PullRequestResource) GetName Uses

func (s PullRequestResource) GetName() string

GetName returns the name of the resource

func (*PullRequestResource) GetOutputTaskModifier Uses

func (s *PullRequestResource) GetOutputTaskModifier(ts *TaskSpec, sourcePath string) (TaskModifier, error)

GetOutputTaskModifier returns a No-op TaskModifier.

func (PullRequestResource) GetType Uses

func (s PullRequestResource) GetType() PipelineResourceType

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

func (*PullRequestResource) GetURL Uses

func (s *PullRequestResource) GetURL() string

GetURL returns the url to be used with this resource

func (*PullRequestResource) Replacements Uses

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

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

type ResourceDeclaration Uses

type ResourceDeclaration = v1alpha2.ResourceDeclaration

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

type ResourceParam Uses

type ResourceParam = v1alpha2.ResourceParam

ResourceParam declares a string value to use for the parameter called Name, and is used in the specific context of PipelineResources.

type SecretParam Uses

type SecretParam struct {
    FieldName  string `json:"fieldName"`
    SecretKey  string `json:"secretKey"`
    SecretName string `json:"secretName"`
}

SecretParam indicates which secret can be used to populate a field of the resource

func (*SecretParam) DeepCopy Uses

func (in *SecretParam) DeepCopy() *SecretParam

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

func (*SecretParam) DeepCopyInto Uses

func (in *SecretParam) DeepCopyInto(out *SecretParam)

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

type SidecarState Uses

type SidecarState struct {
    Name    string `json:"name,omitempty"`
    ImageID string `json:"imageID,omitempty"`
}

SidecarState reports the results of sidecar in the Task.

func (*SidecarState) DeepCopy Uses

func (in *SidecarState) DeepCopy() *SidecarState

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

func (*SidecarState) DeepCopyInto Uses

func (in *SidecarState) DeepCopyInto(out *SidecarState)

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

type Step Uses

type Step = v1alpha2.Step

Step embeds the Container type, which allows it to include fields not provided by Container.

func CreateDirStep Uses

func CreateDirStep(shellImage string, name, destinationPath string) Step

CreateDirStep returns a container step to create a dir at destinationPath. The name of the step will include name.

func MergeStepsWithStepTemplate Uses

func MergeStepsWithStepTemplate(template *v1.Container, steps []Step) ([]Step, error)

MergeStepsWithStepTemplate takes a possibly nil container template and a list of steps, merging each of the steps with the container template, if it's not nil, and returning the resulting list. Deprecated

type StepState Uses

type StepState struct {
    corev1.ContainerState
    Name          string `json:"name,omitempty"`
    ContainerName string `json:"container,omitempty"`
    ImageID       string `json:"imageID,omitempty"`
}

StepState reports the results of running a step in the Task.

func (*StepState) DeepCopy Uses

func (in *StepState) DeepCopy() *StepState

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

func (*StepState) DeepCopyInto Uses

func (in *StepState) DeepCopyInto(out *StepState)

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

type Task Uses

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

    // Spec holds the desired state of the Task from the client
    // +optional
    Spec TaskSpec `json:"spec"`
}

Task represents a collection of sequential steps that are run as part of a Pipeline using a set of inputs and producing a set of outputs. Tasks execute when TaskRuns are created that provide the input parameters and resources and output resources the Task requires.

+k8s:openapi-gen=true

func (*Task) Copy Uses

func (t *Task) Copy() TaskInterface

func (*Task) DeepCopy Uses

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto Uses

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 Uses

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

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

func (*Task) SetDefaults Uses

func (t *Task) SetDefaults(ctx context.Context)

func (*Task) TaskMetadata Uses

func (t *Task) TaskMetadata() metav1.ObjectMeta

func (*Task) TaskSpec Uses

func (t *Task) TaskSpec() TaskSpec

func (*Task) Validate Uses

func (t *Task) Validate(ctx context.Context) *apis.FieldError

type TaskInterface Uses

type TaskInterface interface {
    TaskMetadata() metav1.ObjectMeta
    TaskSpec() TaskSpec
    Copy() TaskInterface
}

TaskInterface is implemented by Task and ClusterTask

type TaskKind Uses

type TaskKind string

Check that Pipeline may be validated and defaulted. TaskKind defines the type of Task used by the pipeline.

const (
    // NamespacedTaskKind indicates that the task type has a namepace scope.
    NamespacedTaskKind TaskKind = "Task"
    // ClusterTaskKind indicates that task type has a cluster scope.
    ClusterTaskKind TaskKind = "ClusterTask"
)

type TaskList Uses

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 Uses

func (in *TaskList) DeepCopy() *TaskList

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

func (*TaskList) DeepCopyInto Uses

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 Uses

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

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

type TaskModifier Uses

type TaskModifier = v1alpha2.TaskModifier

TaskModifier is an interface to be implemented by different PipelineResources

type TaskRef Uses

type TaskRef struct {
    // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names
    Name string `json:"name,omitempty"`
    // TaskKind inficates the kind of the task, namespaced or cluster scoped.
    Kind TaskKind `json:"kind,omitempty"`
    // 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 Uses

func (in *TaskRef) DeepCopy() *TaskRef

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

func (*TaskRef) DeepCopyInto Uses

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 Uses

type TaskResource = v1alpha2.TaskResource

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`).

type TaskResourceBinding Uses

type TaskResourceBinding struct {
    PipelineResourceBinding
    // Paths will probably be removed in #1284, and then PipelineResourceBinding can be used instead.
    // The optional Path field corresponds to a path on disk at which the Resource can be found
    // (used when providing the resource via mounted volume, overriding the default logic to fetch the Resource).
    // +optional
    Paths []string `json:"paths,omitempty"`
}

TaskResourceBinding points to the PipelineResource that will be used for the Task input or output called Name.

func (*TaskResourceBinding) DeepCopy Uses

func (in *TaskResourceBinding) DeepCopy() *TaskResourceBinding

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

func (*TaskResourceBinding) DeepCopyInto Uses

func (in *TaskResourceBinding) DeepCopyInto(out *TaskResourceBinding)

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

type TaskRun Uses

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 represents a single execution of a Task. TaskRuns are how the steps specified in a Task are executed; they specify the parameters and resources used to run the steps in a Task.

+k8s:openapi-gen=true

func (*TaskRun) DeepCopy Uses

func (in *TaskRun) DeepCopy() *TaskRun

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

func (*TaskRun) DeepCopyInto Uses

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 Uses

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

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

func (*TaskRun) GetBuildPodRef Uses

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

GetBuildPodRef for task

func (*TaskRun) GetPipelineRunPVCName Uses

func (tr *TaskRun) GetPipelineRunPVCName() string

GetPipelineRunPVCName for taskrun gets pipelinerun

func (*TaskRun) GetRunKey Uses

func (tr *TaskRun) GetRunKey() string

GetRunKey return the taskrun key for timeout handler map

func (*TaskRun) HasPipelineRunOwnerReference Uses

func (tr *TaskRun) HasPipelineRunOwnerReference() bool

HasPipelineRunOwnerReference returns true of TaskRun has owner reference of type PipelineRun

func (*TaskRun) HasStarted Uses

func (tr *TaskRun) HasStarted() bool

HasStarted function check whether taskrun has valid start time set in its status

func (*TaskRun) IsCancelled Uses

func (tr *TaskRun) IsCancelled() bool

IsCancelled returns true if the TaskRun's spec status is set to Cancelled state

func (*TaskRun) IsDone Uses

func (tr *TaskRun) IsDone() bool

IsDone returns true if the TaskRun's status indicates that it is done.

func (*TaskRun) IsPartOfPipeline Uses

func (tr *TaskRun) IsPartOfPipeline() (bool, string, string)

IsPartOfPipeline return true if TaskRun is a part of a Pipeline. It also return the name of Pipeline and PipelineRun

func (*TaskRun) IsSuccessful Uses

func (tr *TaskRun) IsSuccessful() bool

IsSuccessful returns true if the TaskRun's status indicates that it is done.

func (*TaskRun) SetDefaults Uses

func (tr *TaskRun) SetDefaults(ctx context.Context)

func (*TaskRun) Validate Uses

func (tr *TaskRun) Validate(ctx context.Context) *apis.FieldError

Validate taskrun

type TaskRunInputs Uses

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

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

func (*TaskRunInputs) DeepCopy Uses

func (in *TaskRunInputs) DeepCopy() *TaskRunInputs

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

func (*TaskRunInputs) DeepCopyInto Uses

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 Uses

func (i TaskRunInputs) Validate(ctx context.Context, path string) *apis.FieldError

type TaskRunList Uses

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 Uses

func (in *TaskRunList) DeepCopy() *TaskRunList

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

func (*TaskRunList) DeepCopyInto Uses

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 Uses

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

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

type TaskRunOutputs Uses

type TaskRunOutputs struct {
    // +optional
    Resources []TaskResourceBinding `json:"resources,omitempty"`
}

TaskRunOutputs holds the output values that this task was invoked with.

func (*TaskRunOutputs) DeepCopy Uses

func (in *TaskRunOutputs) DeepCopy() *TaskRunOutputs

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

func (*TaskRunOutputs) DeepCopyInto Uses

func (in *TaskRunOutputs) DeepCopyInto(out *TaskRunOutputs)

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

func (TaskRunOutputs) Validate Uses

func (o TaskRunOutputs) Validate(ctx context.Context, path string) *apis.FieldError

type TaskRunSpec Uses

type TaskRunSpec struct {
    // +optional
    Inputs TaskRunInputs `json:"inputs,omitempty"`
    // +optional
    Outputs TaskRunOutputs `json:"outputs,omitempty"`
    // +optional
    ServiceAccountName string `json:"serviceAccountName"`
    // no more than one of the TaskRef and TaskSpec may be specified.
    // +optional
    TaskRef *TaskRef `json:"taskRef,omitempty"`
    // +optional
    TaskSpec *TaskSpec `json:"taskSpec,omitempty"`
    // Used for cancelling a taskrun (and maybe more later on)
    // +optional
    Status TaskRunSpecStatus `json:"status,omitempty"`
    // Time after which the build times out. Defaults to 10 minutes.
    // Specified build timeout should be less than 24h.
    // Refer Go's ParseDuration documentation for expected format: https://golang.org/pkg/time/#ParseDuration
    // +optional
    Timeout *metav1.Duration `json:"timeout,omitempty"`

    // PodTemplate holds pod specific configuration
    PodTemplate PodTemplate `json:"podTemplate,omitempty"`
}

TaskRunSpec defines the desired state of TaskRun

func (*TaskRunSpec) DeepCopy Uses

func (in *TaskRunSpec) DeepCopy() *TaskRunSpec

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

func (*TaskRunSpec) DeepCopyInto Uses

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) SetDefaults Uses

func (trs *TaskRunSpec) SetDefaults(ctx context.Context)

func (*TaskRunSpec) Validate Uses

func (ts *TaskRunSpec) Validate(ctx context.Context) *apis.FieldError

Validate taskrun spec

type TaskRunSpecStatus Uses

type TaskRunSpecStatus string

TaskRunSpecStatus defines the taskrun spec status the user can provide

type TaskRunStatus Uses

type TaskRunStatus struct {
    duckv1beta1.Status `json:",inline"`

    // PodName is the name of the pod responsible for executing this task's steps.
    PodName string `json:"podName"`

    // StartTime is the time the build is actually started.
    // +optional
    StartTime *metav1.Time `json:"startTime,omitempty"`

    // CompletionTime is the time the build completed.
    // +optional
    CompletionTime *metav1.Time `json:"completionTime,omitempty"`

    // Steps describes the state of each build step container.
    // +optional
    Steps []StepState `json:"steps,omitempty"`

    // CloudEvents describe the state of each cloud event requested via a
    // CloudEventResource.
    // +optional
    CloudEvents []CloudEventDelivery `json:"cloudEvents,omitempty"`

    // RetriesStatus contains the history of TaskRunStatus in case of a retry in order to keep record of failures.
    // All TaskRunStatus stored in RetriesStatus will have no date within the RetriesStatus as is redundant.
    // +optional
    RetriesStatus []TaskRunStatus `json:"retriesStatus,omitempty"`
    // Results from Resources built during the taskRun. currently includes
    // the digest of build container images
    // optional
    ResourcesResult []PipelineResourceResult `json:"resourcesResult,omitempty"`

    // The list has one entry per sidecar in the manifest. Each entry is
    // represents the imageid of the corresponding sidecar.
    Sidecars []SidecarState `json:"sidecars,omitempty"`
}

TaskRunStatus defines the observed state of TaskRun

func (*TaskRunStatus) DeepCopy Uses

func (in *TaskRunStatus) DeepCopy() *TaskRunStatus

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

func (*TaskRunStatus) DeepCopyInto Uses

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 Uses

func (tr *TaskRunStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the Condition matching the given type.

func (*TaskRunStatus) InitializeConditions Uses

func (tr *TaskRunStatus) InitializeConditions()

InitializeConditions will set all conditions in taskRunCondSet to unknown for the TaskRun and set the started time to the current time

func (*TaskRunStatus) SetCondition Uses

func (tr *TaskRunStatus) SetCondition(newCond *apis.Condition)

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

type TaskSpec Uses

type TaskSpec struct {
    // Inputs is an optional set of parameters and resources which must be
    // supplied by the user when a Task is executed by a TaskRun.
    // +optional
    Inputs *Inputs `json:"inputs,omitempty"`
    // Outputs is an optional set of resources and results produced when this
    // Task is run.
    // +optional
    Outputs *Outputs `json:"outputs,omitempty"`

    // Steps are the steps of the build; each step is run sequentially with the
    // source mounted into /workspace.
    Steps []Step `json:"steps,omitempty"`

    // Volumes is a collection of volumes that are available to mount into the
    // steps of the build.
    Volumes []corev1.Volume `json:"volumes,omitempty"`

    // StepTemplate can be used as the basis for all step containers within the
    // Task, so that the steps inherit settings on the base container.
    StepTemplate *corev1.Container `json:"stepTemplate,omitempty"`

    // Sidecars are run alongside the Task's step containers. They begin before
    // the steps start and end after the steps complete.
    Sidecars []corev1.Container `json:"sidecars,omitempty"`
}

TaskSpec defines the desired state of Task.

func (*TaskSpec) DeepCopy Uses

func (in *TaskSpec) DeepCopy() *TaskSpec

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

func (*TaskSpec) DeepCopyInto Uses

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 Uses

func (ts *TaskSpec) SetDefaults(ctx context.Context)

SetDefaults set any defaults for the task spec

func (*TaskSpec) Validate Uses

func (ts *TaskSpec) Validate(ctx context.Context) *apis.FieldError

type TestResult Uses

type TestResult struct {
    // Name declares the name by which a result is referenced in the Task's
    // definition. Results may be referenced by name in the definition of a
    // Task's steps.
    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 Uses

func (in *TestResult) DeepCopy() *TestResult

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

func (*TestResult) DeepCopyInto Uses

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

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

Package v1alpha1 imports 28 packages (graph) and is imported by 113 packages. Updated 2019-12-05. Refresh now. Tools for package owners.