v1alpha1

package
v0.65.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 18

Documentation

Overview

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

The contents of this package are deprecated and unused. Preserved for backwards compatibility.

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme adds Build types to the scheme.
	AddToScheme = schemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: pipeline.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

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

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type PipelineResource deprecated

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 is used to communicate the observed state of the PipelineResource from
	// the controller, but was unused as there is no controller for PipelineResource.
	//
	// +optional
	Status *PipelineResourceStatus `json:"status,omitempty"`
}

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

Deprecated: Unused, preserved only for backwards compatibility +k8s:openapi-gen=true

func (*PipelineResource) DeepCopy

func (in *PipelineResource) DeepCopy() *PipelineResource

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

func (*PipelineResource) DeepCopyInto

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

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

func (*PipelineResource) DeepCopyObject

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

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

type PipelineResourceList deprecated

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

PipelineResourceList contains a list of PipelineResources

Deprecated: Unused, preserved only for backwards compatibility

func (*PipelineResourceList) DeepCopy

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

func (*PipelineResourceList) DeepCopyInto

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

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

func (*PipelineResourceList) DeepCopyObject

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

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

type PipelineResourceSpec deprecated

type PipelineResourceSpec struct {
	// Description is a user-facing description of the resource that may be
	// used to populate a UI.
	// +optional
	Description string               `json:"description,omitempty"`
	Type        PipelineResourceType `json:"type"`
	// +listType=atomic
	Params []ResourceParam `json:"params"`
	// Secrets to fetch to populate some of resource fields
	// +optional
	// +listType=atomic
	SecretParams []SecretParam `json:"secrets,omitempty"`
}

PipelineResourceSpec defines an individual resources used in the pipeline.

Deprecated: Unused, preserved only for backwards compatibility

func (*PipelineResourceSpec) DeepCopy

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

func (*PipelineResourceSpec) DeepCopyInto

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

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

type PipelineResourceStatus deprecated

type PipelineResourceStatus struct {
}

PipelineResourceStatus does not contain anything because PipelineResources on their own do not have a status

Deprecated: Unused, preserved only for backwards compatibility

func (*PipelineResourceStatus) DeepCopy

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

func (*PipelineResourceStatus) DeepCopyInto

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

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

type PipelineResourceType deprecated

type PipelineResourceType = string

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

Deprecated: Unused, preserved only for backwards compatibility

const (
	// PipelineResourceTypeGit indicates that this source is a GitHub repo.
	// Deprecated: Unused, preserved only for backwards compatibility
	PipelineResourceTypeGit PipelineResourceType = "git"

	// PipelineResourceTypeStorage indicates that this source is a storage blob resource.
	// Deprecated: Unused, preserved only for backwards compatibility
	PipelineResourceTypeStorage PipelineResourceType = "storage"

	// PipelineResourceTypeGCS is the subtype for the GCSResources, which is backed by a GCS blob/directory.
	// Deprecated: Unused, preserved only for backwards compatibility
	PipelineResourceTypeGCS PipelineResourceType = "gcs"
)

type ResourceDeclaration deprecated

type ResourceDeclaration struct {
	// Name declares the name by which a resource is referenced in the
	// definition. Resources may be referenced by name in the definition of a
	// Task's steps.
	Name string `json:"name"`
	// Type is the type of this resource;
	Type PipelineResourceType `json:"type"`
	// Description is a user-facing description of the declared resource that may be
	// used to populate a UI.
	// +optional
	Description string `json:"description,omitempty"`
	// TargetPath is the path in workspace directory where the resource
	// will be copied.
	// +optional
	TargetPath string `json:"targetPath,omitempty"`
	// Optional declares the resource as optional.
	// By default optional is set to false which makes a resource required.
	// optional: true - the resource is considered optional
	// optional: false - the resource is considered required (equivalent of not specifying it)
	Optional bool `json:"optional,omitempty"`
}

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

Deprecated: Unused, preserved only for backwards compatibility

func (*ResourceDeclaration) DeepCopy

func (in *ResourceDeclaration) DeepCopy() *ResourceDeclaration

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

func (*ResourceDeclaration) DeepCopyInto

func (in *ResourceDeclaration) DeepCopyInto(out *ResourceDeclaration)

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

type ResourceParam deprecated

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

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

Deprecated: Unused, preserved only for backwards compatibility

func (*ResourceParam) DeepCopy

func (in *ResourceParam) DeepCopy() *ResourceParam

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

func (*ResourceParam) DeepCopyInto

func (in *ResourceParam) DeepCopyInto(out *ResourceParam)

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

type SecretParam deprecated

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

Deprecated: Unused, preserved only for backwards compatibility

func (*SecretParam) DeepCopy

func (in *SecretParam) DeepCopy() *SecretParam

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

func (*SecretParam) DeepCopyInto

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

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

Jump to

Keyboard shortcuts

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