v1alpha1

package
v0.0.0-...-f545b8a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the pipeline v1alpha1 API group +kubebuilder:object:generate=true +groupName=pipeline.peanut.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "pipeline.peanut.dev", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type PeanutPipeline

type PeanutPipeline struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PeanutPipelineSpec   `json:"spec,omitempty"`
	Status PeanutPipelineStatus `json:"status,omitempty"`
}

PeanutPipeline is the Schema for the peanutpipelines API

func (*PeanutPipeline) BuildStageGraph

func (p *PeanutPipeline) BuildStageGraph() (*dag.DAG, error)

func (*PeanutPipeline) DeepCopy

func (in *PeanutPipeline) DeepCopy() *PeanutPipeline

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

func (*PeanutPipeline) DeepCopyInto

func (in *PeanutPipeline) DeepCopyInto(out *PeanutPipeline)

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

func (*PeanutPipeline) DeepCopyObject

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

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

func (*PeanutPipeline) Default

func (r *PeanutPipeline) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*PeanutPipeline) SetupWebhookWithManager

func (r *PeanutPipeline) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*PeanutPipeline) ValidateCreate

func (r *PeanutPipeline) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*PeanutPipeline) ValidateDelete

func (r *PeanutPipeline) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*PeanutPipeline) ValidateUpdate

func (r *PeanutPipeline) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type PeanutPipelineExecution

type PeanutPipelineExecution struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PeanutPipelineExecutionSpec   `json:"spec,omitempty"`
	Status PeanutPipelineExecutionStatus `json:"status,omitempty"`
}

PeanutPipelineExecution is the Schema for the peanutpipelineexecutions API

func (*PeanutPipelineExecution) DeepCopy

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

func (*PeanutPipelineExecution) DeepCopyInto

func (in *PeanutPipelineExecution) DeepCopyInto(out *PeanutPipelineExecution)

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

func (*PeanutPipelineExecution) DeepCopyObject

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

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

type PeanutPipelineExecutionList

type PeanutPipelineExecutionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PeanutPipelineExecution `json:"items"`
}

PeanutPipelineExecutionList contains a list of PeanutPipelineExecution

func (*PeanutPipelineExecutionList) DeepCopy

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

func (*PeanutPipelineExecutionList) DeepCopyInto

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

func (*PeanutPipelineExecutionList) DeepCopyObject

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

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

type PeanutPipelineExecutionSpec

type PeanutPipelineExecutionSpec struct {
	// +kubebuilder:validation:Required
	PipelineName string `json:"pipelineName,omitempty"`
}

PeanutPipelineExecutionSpec defines the desired state of PeanutPipelineExecution

func (*PeanutPipelineExecutionSpec) DeepCopy

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

func (*PeanutPipelineExecutionSpec) DeepCopyInto

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

type PeanutPipelineExecutionStatus

type PeanutPipelineExecutionStatus struct {
	Phase PhaseState `json:"phase,omitempty"`
}

PeanutPipelineExecutionStatus defines the observed state of PeanutPipelineExecution

func (*PeanutPipelineExecutionStatus) DeepCopy

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

func (*PeanutPipelineExecutionStatus) DeepCopyInto

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

type PeanutPipelineList

type PeanutPipelineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PeanutPipeline `json:"items"`
}

PeanutPipelineList contains a list of PeanutPipeline

func (*PeanutPipelineList) DeepCopy

func (in *PeanutPipelineList) DeepCopy() *PeanutPipelineList

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

func (*PeanutPipelineList) DeepCopyInto

func (in *PeanutPipelineList) DeepCopyInto(out *PeanutPipelineList)

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

func (*PeanutPipelineList) DeepCopyObject

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

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

type PeanutPipelineSpec

type PeanutPipelineSpec struct {
	// +kubebuilder:validation:Required
	Stages []PeanutPipelineStageDefinition `json:"stages,omitempty"`
}

PeanutPipelineSpec defines the desired state of PeanutPipeline

func (*PeanutPipelineSpec) DeepCopy

func (in *PeanutPipelineSpec) DeepCopy() *PeanutPipelineSpec

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

func (*PeanutPipelineSpec) DeepCopyInto

func (in *PeanutPipelineSpec) DeepCopyInto(out *PeanutPipelineSpec)

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

type PeanutPipelineStageDefinition

type PeanutPipelineStageDefinition struct {
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`

	// +kubebuilder:validation:Required
	Type string `json:"type,omitempty"`

	// +kubebuilder:validation:Optional
	Dependencies []string `json:"dependsOn,omitempty"`
}

PeanutPipelineStageDefinition defines the stage that the pipeline will execute when triggered

func (*PeanutPipelineStageDefinition) DeepCopy

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

func (*PeanutPipelineStageDefinition) DeepCopyInto

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

type PeanutPipelineStatus

type PeanutPipelineStatus struct {
	// TBD
	Ack string `json:"acknowledged,omitempty"`
}

PeanutPipelineStatus defines the observed state of PeanutPipeline

func (*PeanutPipelineStatus) DeepCopy

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

func (*PeanutPipelineStatus) DeepCopyInto

func (in *PeanutPipelineStatus) DeepCopyInto(out *PeanutPipelineStatus)

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

type PeanutStage

type PeanutStage struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PeanutStageSpec   `json:"spec,omitempty"`
	Status PeanutStageStatus `json:"status,omitempty"`
}

PeanutStage is the Schema for the peanutstages API

func (*PeanutStage) DeepCopy

func (in *PeanutStage) DeepCopy() *PeanutStage

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

func (*PeanutStage) DeepCopyInto

func (in *PeanutStage) DeepCopyInto(out *PeanutStage)

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

func (*PeanutStage) DeepCopyObject

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

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

type PeanutStageList

type PeanutStageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PeanutStage `json:"items"`
}

PeanutStageList contains a list of PeanutStage

func (*PeanutStageList) DeepCopy

func (in *PeanutStageList) DeepCopy() *PeanutStageList

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

func (*PeanutStageList) DeepCopyInto

func (in *PeanutStageList) DeepCopyInto(out *PeanutStageList)

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

func (*PeanutStageList) DeepCopyObject

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

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

type PeanutStageSpec

type PeanutStageSpec struct {
	Image   string   `json:"image,omitempty"`
	Command []string `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`
	Timeout int      `json:"timeout,omitempty"`
}

PeanutStageSpec defines the desired state of PeanutStage

func (*PeanutStageSpec) DeepCopy

func (in *PeanutStageSpec) DeepCopy() *PeanutStageSpec

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

func (*PeanutStageSpec) DeepCopyInto

func (in *PeanutStageSpec) DeepCopyInto(out *PeanutStageSpec)

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

type PeanutStageStatus

type PeanutStageStatus struct {
	// TBD
	Ack string `json:"acknowledged,omitempty"`
}

PeanutStageStatus defines the observed state of PeanutStage

func (*PeanutStageStatus) DeepCopy

func (in *PeanutStageStatus) DeepCopy() *PeanutStageStatus

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

func (*PeanutStageStatus) DeepCopyInto

func (in *PeanutStageStatus) DeepCopyInto(out *PeanutStageStatus)

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

type PhaseState

type PhaseState string
const (
	Running PhaseState = "Running"
	Pending PhaseState = "Pending"
	Failed  PhaseState = "Failed"
)

Jump to

Keyboard shortcuts

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