2024-05-03 10:58:06 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
type Parameter struct {
|
|
|
|
Name string `yaml:"name"`
|
2024-05-06 17:01:48 +02:00
|
|
|
Value string `yaml:"value,omitempty"`
|
2024-05-03 10:58:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Container struct {
|
|
|
|
Image string `yaml:"image"`
|
2024-05-06 17:01:48 +02:00
|
|
|
Command []string `yaml:"command,omitempty,flow"`
|
|
|
|
Args []string `yaml:"args,omitempty,flow"`
|
2024-05-03 10:58:06 +02:00
|
|
|
VolumeMounts []VolumeMount `yaml:"volumeMounts,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type VolumeMount struct {
|
|
|
|
Name string `yaml:"name"`
|
|
|
|
MountPath string `yaml:"mountPath"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Task struct {
|
|
|
|
Name string `yaml:"name"`
|
|
|
|
Template string `yaml:"template"`
|
|
|
|
Dependencies []string `yaml:"dependencies,omitempty"`
|
|
|
|
Arguments struct {
|
|
|
|
Parameters []Parameter `yaml:"parameters,omitempty"`
|
|
|
|
} `yaml:"arguments,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Dag struct {
|
|
|
|
Tasks []Task `yaml:"tasks,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Template struct {
|
|
|
|
Name string `yaml:"name"`
|
|
|
|
Inputs struct {
|
|
|
|
Parameters []Parameter `yaml:"parameters"`
|
|
|
|
} `yaml:"inputs,omitempty"`
|
|
|
|
Container Container `yaml:"container,omitempty"`
|
|
|
|
Dag Dag `yaml:"dag,omitempty"`
|
|
|
|
}
|