Documentation ¶
Index ¶
- Constants
- func DisplayName(name string) string
- func NewTemplates() (templates, error)
- func OptimusFuncMap() template.FuncMap
- func Quote(str string) string
- func Replace(old, newStr, name string) string
- func ReplaceDash(name string) string
- func SLAMissDuration(job *scheduler.JobWithDetails) (int64, error)
- func Trunc(c int, s string) string
- type AirflowConfig
- type Compiler
- type Hook
- type Hooks
- type PluginRepo
- type Resource
- type ResourceConfig
- type RuntimeConfig
- type Task
- type TemplateContext
- type Upstream
- type Upstreams
Constants ¶
View Source
const (
EntitySchedulerAirflow = "schedulerAirflow"
)
Variables ¶
This section is empty.
Functions ¶
func DisplayName ¶
func NewTemplates ¶ added in v0.9.6
func NewTemplates() (templates, error)
func OptimusFuncMap ¶
func ReplaceDash ¶
func SLAMissDuration ¶
func SLAMissDuration(job *scheduler.JobWithDetails) (int64, error)
Types ¶
type AirflowConfig ¶
func ToAirflowConfig ¶
func ToAirflowConfig(schedulerConf map[string]string) AirflowConfig
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewDagCompiler ¶
type Hook ¶
type Hook struct { Name string Image string Entrypoint plugin.Entrypoint IsFailHook bool }
type Hooks ¶
func PrepareHooksForJob ¶
func PrepareHooksForJob(job *scheduler.Job, pluginRepo PluginRepo) (Hooks, error)
type Resource ¶
type Resource struct { Request *ResourceConfig Limit *ResourceConfig }
func ToResource ¶
type ResourceConfig ¶
func ToResourceConfig ¶
func ToResourceConfig(config *scheduler.ResourceConfig) *ResourceConfig
type RuntimeConfig ¶
type RuntimeConfig struct { Resource *Resource Airflow AirflowConfig }
func SetupRuntimeConfig ¶
func SetupRuntimeConfig(jobDetails *scheduler.JobWithDetails) RuntimeConfig
type Task ¶
type Task struct { Name string Image string Entrypoint plugin.Entrypoint }
func PrepareTask ¶
func PrepareTask(job *scheduler.Job, pluginRepo PluginRepo) (Task, error)
type TemplateContext ¶
Click to show internal directories.
Click to hide internal directories.