Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=kubeflow.org
Package v1 contains API Schema definitions for the kubeflow.org v1 API group +kubebuilder:object:generate=true +groupName=kubeflow.org
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Int32(v int32) *int32
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_XGBoostJob(xgboostJob *XGBoostJob)
- func SetObjectDefaults_XGBoostJob(in *XGBoostJob)
- func SetObjectDefaults_XGBoostJobList(in *XGBoostJobList)
- type XGBoostJob
- type XGBoostJobList
- type XGBoostJobSpec
Constants ¶
const ( // DefaultPortName is name of the port used to communicate between Master and Workers. DefaultPortName = "xgboostjob-port" // DefaultContainerName is the name of the XGBoostJob container. DefaultContainerName = "xgboost" // DefaultPort is default value of the port. DefaultPort = 9999 // DefaultRestartPolicy is default RestartPolicy for XGBReplicaSpecs. DefaultRestartPolicy = commonv1.RestartPolicyNever // Kind is the kind name. Kind = "XGBoostJob" // Plural is the Plural for XGBoostJob. Plural = "xgboostjobs" // Singular is the singular for XGBoostJob. Singular = "xgboostjob" )
const ( // XGBoostReplicaTypeMaster is the type for master replica. XGBoostReplicaTypeMaster commonv1.ReplicaType = "Master" // XGBoostReplicaTypeWorker is the type for worker replicas. XGBoostReplicaTypeWorker commonv1.ReplicaType = "Worker" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "kubeflow.org", Version: "v1"} // 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 )
var SchemeGroupVersion = GroupVersion
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Int32 ¶
Int32 is a helper routine that allocates a new int32 value to store v and returns a pointer to it.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group-qualified GroupResource.
func SetDefaults_XGBoostJob ¶
func SetDefaults_XGBoostJob(xgboostJob *XGBoostJob)
SetDefaults_XGBoostJob sets any unspecified values to defaults.
func SetObjectDefaults_XGBoostJob ¶
func SetObjectDefaults_XGBoostJob(in *XGBoostJob)
func SetObjectDefaults_XGBoostJobList ¶
func SetObjectDefaults_XGBoostJobList(in *XGBoostJobList)
Types ¶
type XGBoostJob ¶
type XGBoostJob struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec XGBoostJobSpec `json:"spec,omitempty"` Status commonv1.JobStatus `json:"status,omitempty"` }
XGBoostJob is the Schema for the xgboostjobs API +k8s:openapi-gen=true
func (*XGBoostJob) DeepCopy ¶
func (in *XGBoostJob) DeepCopy() *XGBoostJob
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new XGBoostJob.
func (*XGBoostJob) DeepCopyInto ¶
func (in *XGBoostJob) DeepCopyInto(out *XGBoostJob)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*XGBoostJob) DeepCopyObject ¶
func (in *XGBoostJob) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type XGBoostJobList ¶
type XGBoostJobList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []XGBoostJob `json:"items"` }
XGBoostJobList contains a list of XGBoostJob
func (*XGBoostJobList) DeepCopy ¶
func (in *XGBoostJobList) DeepCopy() *XGBoostJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new XGBoostJobList.
func (*XGBoostJobList) DeepCopyInto ¶
func (in *XGBoostJobList) DeepCopyInto(out *XGBoostJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*XGBoostJobList) DeepCopyObject ¶
func (in *XGBoostJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type XGBoostJobSpec ¶
type XGBoostJobSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file //+kubebuilder:validation:Optional RunPolicy commonv1.RunPolicy `json:"runPolicy"` XGBReplicaSpecs map[commonv1.ReplicaType]*commonv1.ReplicaSpec `json:"xgbReplicaSpecs"` }
XGBoostJobSpec defines the desired state of XGBoostJob
func (*XGBoostJobSpec) DeepCopy ¶
func (in *XGBoostJobSpec) DeepCopy() *XGBoostJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new XGBoostJobSpec.
func (*XGBoostJobSpec) DeepCopyInto ¶
func (in *XGBoostJobSpec) DeepCopyInto(out *XGBoostJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.