Documentation ¶
Index ¶
- Constants
- func GenerateUserArenaClient(loginUserName string) (*arenaclient.ArenaClient, error)
- func GenerateUserKubeConfig(loginUserName string, namespace string) ([]byte, string, error)
- func GetArenaJobTypeFromKind(kind string) types.TrainingJobType
- func GetEnvOrDefault(key string, defaultVal string) string
- func GetJobStatusFromArenaStatus(status types.TrainingJobStatus) apiv1.JobConditionType
- func GetJobStatusFromString(status string) apiv1.JobConditionType
- func GetKindFromArenaJobType(typ types.TrainingJobType) string
- func GetUserByName(name string) (user datav1.User, err error)
Constants ¶
View Source
const ( // Expanded object statuses only used in persistent layer. PodStopped = "Stopped" // JobStopped means the job has been stopped manually by user, // a job can be stopped only when job has not reached a final // state(Succeed/Failed). JobStopped apiv1.JobConditionType = "Stopped" // JobStopping is a intermediate state before truly Stopped. JobStopping apiv1.JobConditionType = "Stopping" )
Variables ¶
This section is empty.
Functions ¶
func GenerateUserArenaClient ¶
func GenerateUserArenaClient(loginUserName string) (*arenaclient.ArenaClient, error)
func GenerateUserKubeConfig ¶
func GetArenaJobTypeFromKind ¶
func GetArenaJobTypeFromKind(kind string) types.TrainingJobType
func GetEnvOrDefault ¶
func GetJobStatusFromArenaStatus ¶
func GetJobStatusFromArenaStatus(status types.TrainingJobStatus) apiv1.JobConditionType
func GetJobStatusFromString ¶
func GetJobStatusFromString(status string) apiv1.JobConditionType
func GetKindFromArenaJobType ¶
func GetKindFromArenaJobType(typ types.TrainingJobType) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.