v1alpha1

package
v0.0.0-...-da5199a Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	TaskStateRunning  = "Running"
	TaskStateFinished = "Finished"
)

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: taskcontroller.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 Task

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

	Spec   TaskSpec   `json:"spec"`
	Status TaskStatus `json:"status"`
}

Task is a specification for a Task resource

func (*Task) DeepCopy

func (in *Task) DeepCopy() *Task

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

func (*Task) DeepCopyInto

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

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

func (*Task) DeepCopyObject

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

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

type TaskCluster

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

	Spec   TaskClusterSpec   `json:"spec"`
	Status TaskClusterStatus `json:"status"`
}

TaskCluster is a specification for a TaskCluster resource

func (*TaskCluster) DeepCopy

func (in *TaskCluster) DeepCopy() *TaskCluster

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

func (*TaskCluster) DeepCopyInto

func (in *TaskCluster) DeepCopyInto(out *TaskCluster)

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

func (*TaskCluster) DeepCopyObject

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

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

type TaskClusterList

type TaskClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []TaskCluster `json:"items"`
}

TaskClusterList is a list of TaskCluster resources

func (*TaskClusterList) DeepCopy

func (in *TaskClusterList) DeepCopy() *TaskClusterList

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

func (*TaskClusterList) DeepCopyInto

func (in *TaskClusterList) DeepCopyInto(out *TaskClusterList)

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

func (*TaskClusterList) DeepCopyObject

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

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

type TaskClusterSpec

type TaskClusterSpec struct {
	// TODO: Get rid of this too.
	DeploymentName     string `json:"deploymentName"`
	Replicas           *int32 `json:"replicas"`
	ServiceAccountName string `json:"serviceAccountName"`
}

TaskClusterSpec is the spec for a TaskCluster resource

func (*TaskClusterSpec) DeepCopy

func (in *TaskClusterSpec) DeepCopy() *TaskClusterSpec

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

func (*TaskClusterSpec) DeepCopyInto

func (in *TaskClusterSpec) DeepCopyInto(out *TaskClusterSpec)

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

type TaskClusterStatus

type TaskClusterStatus struct {
	AvailableReplicas int32 `json:"availableReplicas"`
}

TaskClusterStatus is the status for a TaskCluster resource

func (*TaskClusterStatus) DeepCopy

func (in *TaskClusterStatus) DeepCopy() *TaskClusterStatus

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

func (*TaskClusterStatus) DeepCopyInto

func (in *TaskClusterStatus) DeepCopyInto(out *TaskClusterStatus)

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

type TaskList

type TaskList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Task `json:"items"`
}

TaskList is a list of Task resources

func (*TaskList) DeepCopy

func (in *TaskList) DeepCopy() *TaskList

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

func (*TaskList) DeepCopyInto

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

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

func (*TaskList) DeepCopyObject

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

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

type TaskObject

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

	Data map[string]string `json:"data"`
}

TaskObject is a specification for a TaskObject resource

func (*TaskObject) DeepCopy

func (in *TaskObject) DeepCopy() *TaskObject

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

func (*TaskObject) DeepCopyInto

func (in *TaskObject) DeepCopyInto(out *TaskObject)

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

func (*TaskObject) DeepCopyObject

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

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

type TaskObjectList

type TaskObjectList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []TaskObject `json:"items"`
}

TaskObjectList is a list of TaskObject resources

func (*TaskObjectList) DeepCopy

func (in *TaskObjectList) DeepCopy() *TaskObjectList

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

func (*TaskObjectList) DeepCopyInto

func (in *TaskObjectList) DeepCopyInto(out *TaskObjectList)

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

func (*TaskObjectList) DeepCopyObject

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

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

type TaskSpec

type TaskSpec struct {
	ClusterName string `json:"clusterName"`

	Image   string   `json:"image"`
	Command []string `json:"command"`
	Args    []string `json:"args"`

	InputObject string `json:"inputObject"`
}

TaskSpec is the spec for a Task resource

func (*TaskSpec) DeepCopy

func (in *TaskSpec) DeepCopy() *TaskSpec

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

func (*TaskSpec) DeepCopyInto

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

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

type TaskState

type TaskState string

+enum

type TaskStatus

type TaskStatus struct {
	PodName string    `json:"podName"`
	State   TaskState `json:"state"`
	// TODO: Get rid of this, replace with ownerRef?
	OutputObject string `json:"outputObject"`
}

TaskStatus is the status for a Task resource

func (*TaskStatus) DeepCopy

func (in *TaskStatus) DeepCopy() *TaskStatus

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

func (*TaskStatus) DeepCopyInto

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

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

Jump to

Keyboard shortcuts

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