Versions in this module Expand all Collapse all v0 v0.3.0 Sep 29, 2018 Changes in this version + const AppLabel + const CRDGroup + const CRDKind + const CRDKindPlural + const CRDVersion + const DefaultPyTorchContainer + const DefaultPyTorchImage + const GroupName + const GroupVersion + const MasterPort + const Replicas + const ResourceKind + var AddToScheme = SchemeBuilder.AddToScheme + var SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + var SchemeGroupVersion = schema.GroupVersion + func RegisterDefaults(scheme *runtime.Scheme) error + func Resource(resource string) schema.GroupResource + func SetDefaults_PyTorchJob(obj *PyTorchJob) + func SetObjectDefaults_PyTorchJob(in *PyTorchJob) + func SetObjectDefaults_PyTorchJobList(in *PyTorchJobList) + type AcceleratorConfig struct + EnvVars []EnvironmentVariableConfig + Volumes []AcceleratorVolume + func (in *AcceleratorConfig) DeepCopy() *AcceleratorConfig + func (in *AcceleratorConfig) DeepCopyInto(out *AcceleratorConfig) + type AcceleratorVolume struct + HostPath string + MountPath string + Name string + func (in *AcceleratorVolume) DeepCopy() *AcceleratorVolume + func (in *AcceleratorVolume) DeepCopyInto(out *AcceleratorVolume) + type ControllerConfig struct + Accelerators map[string]AcceleratorConfig + GrpcServerFilePath string + func (in *ControllerConfig) DeepCopy() *ControllerConfig + func (in *ControllerConfig) DeepCopyInto(out *ControllerConfig) + type EnvironmentVariableConfig struct + Name string + Value string + func (in *EnvironmentVariableConfig) DeepCopy() *EnvironmentVariableConfig + func (in *EnvironmentVariableConfig) DeepCopyInto(out *EnvironmentVariableConfig) + type MasterSpec struct + ReplicaName string + ReplicaRank int + func (in *MasterSpec) DeepCopy() *MasterSpec + func (in *MasterSpec) DeepCopyInto(out *MasterSpec) + type PyTorchJob struct + Spec PyTorchJobSpec + Status PyTorchJobStatus + func (in *PyTorchJob) DeepCopy() *PyTorchJob + func (in *PyTorchJob) DeepCopyInto(out *PyTorchJob) + func (in *PyTorchJob) DeepCopyObject() runtime.Object + type PyTorchJobList struct + Items []PyTorchJob + func (in *PyTorchJobList) DeepCopy() *PyTorchJobList + func (in *PyTorchJobList) DeepCopyInto(out *PyTorchJobList) + func (in *PyTorchJobList) DeepCopyObject() runtime.Object + type PyTorchJobPhase string + const PyTorchJobPhaseCleanUp + const PyTorchJobPhaseCreating + const PyTorchJobPhaseDone + const PyTorchJobPhaseFailed + const PyTorchJobPhaseNone + const PyTorchJobPhaseRunning + type PyTorchJobSpec struct + PyTorchImage string + ReplicaSpecs []*PyTorchReplicaSpec + RuntimeId string + SchedulerName string + TerminationPolicy *TerminationPolicySpec + func (in *PyTorchJobSpec) DeepCopy() *PyTorchJobSpec + func (in *PyTorchJobSpec) DeepCopyInto(out *PyTorchJobSpec) + type PyTorchJobStatus struct + Phase PyTorchJobPhase + Reason string + ReplicaStatuses []*PyTorchReplicaStatus + State State + func (in *PyTorchJobStatus) DeepCopy() *PyTorchJobStatus + func (in *PyTorchJobStatus) DeepCopyInto(out *PyTorchJobStatus) + type PyTorchReplicaSpec struct + MasterPort *int32 + Replicas *int32 + Template *v1.PodTemplateSpec + func (in *PyTorchReplicaSpec) DeepCopy() *PyTorchReplicaSpec + func (in *PyTorchReplicaSpec) DeepCopyInto(out *PyTorchReplicaSpec) + type PyTorchReplicaStatus struct + ReplicasStates map[ReplicaState]int + State ReplicaState + func (in *PyTorchReplicaStatus) DeepCopy() *PyTorchReplicaStatus + func (in *PyTorchReplicaStatus) DeepCopyInto(out *PyTorchReplicaStatus) + type PyTorchReplicaType string + const MASTER + const WORKER + type ReplicaState string + const ReplicaStateFailed + const ReplicaStateRunning + const ReplicaStateSucceeded + const ReplicaStateUnknown + type State string + const StateFailed + const StateRunning + const StateSucceeded + const StateUnknown + type TerminationPolicySpec struct + Master *MasterSpec + func (in *TerminationPolicySpec) DeepCopy() *TerminationPolicySpec + func (in *TerminationPolicySpec) DeepCopyInto(out *TerminationPolicySpec)