v1

package
v0.0.0-...-58e94d5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: k8sconst.RayGroupName, Version: "v1"}

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 ConditionStatus

type ConditionStatus string

type Ray

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

	Spec   RaySpec   `json:"spec"`
	Status RayStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Ray is a specification for a Ray resource

func (*Ray) DeepCopy

func (in *Ray) DeepCopy() *Ray

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

func (*Ray) DeepCopyInto

func (in *Ray) DeepCopyInto(out *Ray)

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

func (*Ray) DeepCopyObject

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

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

type RayCondition

type RayCondition struct {
	// Type is the type of the condition.
	Type RayConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RayConditionType"`
	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`
	// Last time we probed the condition.
	// +optional
	LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

PodCondition contains details for the current condition of this pod.

func (*RayCondition) DeepCopy

func (in *RayCondition) DeepCopy() *RayCondition

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

func (*RayCondition) DeepCopyInto

func (in *RayCondition) DeepCopyInto(out *RayCondition)

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

type RayConditionType

type RayConditionType string

type RayHeadSpec

type RayHeadSpec struct {
	Replicas int32 `json:"Replicas"`
}

RayHeadSpec is the spec for a Ray Head

func (*RayHeadSpec) DeepCopy

func (in *RayHeadSpec) DeepCopy() *RayHeadSpec

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

func (*RayHeadSpec) DeepCopyInto

func (in *RayHeadSpec) DeepCopyInto(out *RayHeadSpec)

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

type RayList

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

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

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object RayList is a list of Ray resources

func (*RayList) DeepCopy

func (in *RayList) DeepCopy() *RayList

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

func (*RayList) DeepCopyInto

func (in *RayList) DeepCopyInto(out *RayList)

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

func (*RayList) DeepCopyObject

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

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

type RaySpec

type RaySpec struct {
	RayHead   RayHeadSpec   `json:"RayHeadSpec"`
	RayWorker RayWorkerSpec `json:"RayWorkerSpec"`
}

RaySpec is the spec for a Ray resource

func (*RaySpec) DeepCopy

func (in *RaySpec) DeepCopy() *RaySpec

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

func (*RaySpec) DeepCopyInto

func (in *RaySpec) DeepCopyInto(out *RaySpec)

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

type RayStatus

type RayStatus struct {
	Conditions []RayCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

RayStatus is the status for a Ray resource

func (*RayStatus) DeepCopy

func (in *RayStatus) DeepCopy() *RayStatus

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

func (*RayStatus) DeepCopyInto

func (in *RayStatus) DeepCopyInto(out *RayStatus)

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

type RayWorkerSpec

type RayWorkerSpec struct {
	Replicas int32 `json:"Replicas"`
}

RayWorkerSpec is the status for a Ray Worker

func (*RayWorkerSpec) DeepCopy

func (in *RayWorkerSpec) DeepCopy() *RayWorkerSpec

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

func (*RayWorkerSpec) DeepCopyInto

func (in *RayWorkerSpec) DeepCopyInto(out *RayWorkerSpec)

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