v1alpha1

package
v0.0.0-...-0b8953c Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the dlpipe v1alpha1 API group +kubebuilder:object:generate=true +groupName=dlpipe.github.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "dlpipe.github.com", 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 DLJobPhase

type DLJobPhase string
const (
	JobPending       DLJobPhase = "JobPending"
	WaitingForMaster DLJobPhase = "WaitingForMaster"
	MasterIsReady    DLJobPhase = "MasterIsReady"
	JobRunning       DLJobPhase = "JobRunning"
	Completed        DLJobPhase = "Completed"
	Failed           DLJobPhase = "Failed"
)

type DLpipeJob

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

	Spec   DLpipeJobSpec   `json:"spec,omitempty"`
	Status DLpipeJobStatus `json:"status,omitempty"`
}

DLpipeJob is the Schema for the dlpipejobs API

func (*DLpipeJob) DeepCopy

func (in *DLpipeJob) DeepCopy() *DLpipeJob

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

func (*DLpipeJob) DeepCopyInto

func (in *DLpipeJob) DeepCopyInto(out *DLpipeJob)

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

func (*DLpipeJob) DeepCopyObject

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

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

func (*DLpipeJob) SetDefaultStatus

func (j *DLpipeJob) SetDefaultStatus() bool

type DLpipeJobList

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

DLpipeJobList contains a list of DLpipeJob

func (*DLpipeJobList) DeepCopy

func (in *DLpipeJobList) DeepCopy() *DLpipeJobList

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

func (*DLpipeJobList) DeepCopyInto

func (in *DLpipeJobList) DeepCopyInto(out *DLpipeJobList)

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

func (*DLpipeJobList) DeepCopyObject

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

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

type DLpipeJobSpec

type DLpipeJobSpec struct {

	// Foo is an example field of DLpipeJob. Edit dlpipejob_types.go to remove/update
	// Foo string `json:"foo,omitempty"`
	WorldSize   *int64         `json:"worldSize"`
	JobTemplate corev1.PodSpec `json:"jobTemplate"`
	Placement   map[string]int `json:"placement,omitempty"`
}

DLpipeJobSpec defines the desired state of DLpipeJob

func (*DLpipeJobSpec) DeepCopy

func (in *DLpipeJobSpec) DeepCopy() *DLpipeJobSpec

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

func (*DLpipeJobSpec) DeepCopyInto

func (in *DLpipeJobSpec) DeepCopyInto(out *DLpipeJobSpec)

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

type DLpipeJobStatus

type DLpipeJobStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	JobPhase   DLJobPhase   `json:"phase"`
	StartTime  *metav1.Time `json:"startTime"`
	MasterAddr string       `json:"masterAddr,omitempty"`
}

DLpipeJobStatus defines the observed state of DLpipeJob

func (*DLpipeJobStatus) DeepCopy

func (in *DLpipeJobStatus) DeepCopy() *DLpipeJobStatus

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

func (*DLpipeJobStatus) DeepCopyInto

func (in *DLpipeJobStatus) DeepCopyInto(out *DLpipeJobStatus)

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

func (*DLpipeJobStatus) SetDefault

func (jobStatus *DLpipeJobStatus) SetDefault() bool

Jump to

Keyboard shortcuts

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