Documentation ¶
Index ¶
- Constants
- func CompareTask(lv, rv *api.TaskInfo) bool
- func GenPVCName(jobName string) string
- func GenRandomStr(l int) string
- func GetJobKeyByReq(req *apis.Request) string
- func GetPodIndexUnderTask(pod *v1.Pod) string
- func GetPodsNameUnderTask(taskName string, job *batch.Job) []string
- func GetTaskKey(pod *v1.Pod) string
- func GetTaskSpec(job *batch.Job, taskName string) (batch.TaskSpec, bool)
- func GetTasklndexUnderJob(taskName string, job *batch.Job) int
- func MakeDomainName(ts batch.TaskSpec, job *batch.Job, index int) string
- func MakePodName(jobName string, taskName string, index int) string
Constants ¶
View Source
const (
// PodNameFmt pod name format
PodNameFmt = "%s-%s-%d"
)
Variables ¶
This section is empty.
Functions ¶
func CompareTask ¶ added in v1.5.0
CompareTask by pod index
func GenPVCName ¶
GenPVCName generates pvc name with job name.
func GenRandomStr ¶
GenRandomStr generate random str with specified length l.
func GetJobKeyByReq ¶
GetJobKeyByReq gets the key for the job request.
func GetPodIndexUnderTask ¶ added in v1.5.0
GetPodIndexUnderTask returns task Index.
func GetPodsNameUnderTask ¶ added in v1.5.0
GetPodsNameUnderTask return names of all pods in the task.
func GetTaskKey ¶ added in v1.5.0
GetTaskKey returns task key/name
func GetTaskSpec ¶ added in v1.5.0
GetTaskSpec returns task spec
func GetTasklndexUnderJob ¶ added in v1.5.0
GetTasklndexUnderJob return index of the task in the job.
func MakeDomainName ¶ added in v1.5.0
MakeDomainName creates task domain name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.