Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuxTask ¶
type AuxTask struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" validate:"required"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
CMD []string `json:"cmd,omitempty" yaml:"cmd,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
Run string `json:"run,omitempty" yaml:"run,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Registry *Registry `json:"registry,omitempty" yaml:"registry,omitempty"`
Env map[string]string `json:"env,omitempty" yaml:"env,omitempty"`
Timeout string `json:"timeout,omitempty" yaml:"timeout,omitempty"`
}
type Defaults ¶ added in v0.1.13
type Defaults struct {
Retry *Retry `json:"retry,omitempty" yaml:"retry,omitempty"`
Limits *Limits `json:"limits,omitempty" yaml:"limits,omitempty"`
Timeout string `json:"timeout,omitempty" yaml:"timeout,omitempty" validate:"duration"`
Queue string `json:"queue,omitempty" yaml:"queue,omitempty" validate:"queue"`
Priority int `json:"priority,omitempty" yaml:"priority,omitempty" validate:"min=0,max=9"`
}
func (Defaults) ToJobDefaults ¶ added in v0.1.13
func (d Defaults) ToJobDefaults() *tork.JobDefaults
type Job ¶
type Job struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" validate:"required"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Tasks []Task `json:"tasks,omitempty" yaml:"tasks,omitempty" validate:"required,min=1,dive"`
Inputs map[string]string `json:"inputs,omitempty" yaml:"inputs,omitempty"`
Output string `json:"output,omitempty" yaml:"output,omitempty" validate:"expr"`
Defaults *Defaults `json:"defaults,omitempty" yaml:"defaults,omitempty"`
Webhooks []Webhook `json:"webhooks,omitempty" yaml:"webhooks,omitempty" validate:"dive"`
// contains filtered or unexported fields
}
type Parallel ¶
type Parallel struct {
Tasks []Task `json:"tasks,omitempty" yaml:"tasks,omitempty" validate:"required,min=1,dive"`
}
type Retry ¶
type Retry struct {
Limit int `json:"limit,omitempty" yaml:"limit,omitempty" validate:"required,min=1,max=10"`
}
type SubJob ¶
type SubJob struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty" validate:"required"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
Tasks []Task `json:"tasks,omitempty" yaml:"tasks,omitempty" validate:"required"`
Inputs map[string]string `json:"inputs,omitempty" yaml:"inputs,omitempty"`
Output string `json:"output,omitempty" yaml:"output,omitempty"`
Detached bool `json:"detached,omitempty" yaml:"detached,omitempty"`
Webhooks []Webhook `json:"webhooks,omitempty" yaml:"webhooks,omitempty" validate:"dive"`
}
type Task ¶
type Task struct {
Name string `json:"name,omitempty" yaml:"name,omitempty" validate:"required"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
CMD []string `json:"cmd,omitempty" yaml:"cmd,omitempty"`
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
Run string `json:"run,omitempty" yaml:"run,omitempty"`
Image string `json:"image,omitempty" yaml:"image,omitempty"`
Registry *Registry `json:"registry,omitempty" yaml:"registry,omitempty"`
Env map[string]string `json:"env,omitempty" yaml:"env,omitempty"`
Files map[string]string `json:"files,omitempty" yaml:"files,omitempty"`
Queue string `json:"queue,omitempty" yaml:"queue,omitempty" validate:"queue"`
Pre []AuxTask `json:"pre,omitempty" yaml:"pre,omitempty" validate:"dive"`
Post []AuxTask `json:"post,omitempty" yaml:"post,omitempty" validate:"dive"`
Mounts []Mount `json:"mounts,omitempty" yaml:"mounts,omitempty" validate:"dive"`
Networks []string `json:"networks,omitempty" yaml:"networks,omitempty"`
Retry *Retry `json:"retry,omitempty" yaml:"retry,omitempty"`
Limits *Limits `json:"limits,omitempty" yaml:"limits,omitempty"`
Timeout string `json:"timeout,omitempty" yaml:"timeout,omitempty" validate:"duration"`
Var string `json:"var,omitempty" yaml:"var,omitempty" validate:"max=64"`
If string `json:"if,omitempty" yaml:"if,omitempty" validate:"expr"`
Parallel *Parallel `json:"parallel,omitempty" yaml:"parallel,omitempty"`
Each *Each `json:"each,omitempty" yaml:"each,omitempty"`
SubJob *SubJob `json:"subjob,omitempty" yaml:"subjob,omitempty"`
GPUs string `json:"gpus,omitempty" yaml:"gpus,omitempty"`
Tags []string `json:"tags,omitempty" yaml:"tags,omitempty"`
Workdir string `json:"workdir,omitempty" yaml:"workdir,omitempty" validate:"max=256"`
Priority int `json:"priority,omitempty" yaml:"priority,omitempty" validate:"min=0,max=9"`
}
Click to show internal directories.
Click to hide internal directories.