| 123456789101112131415161718192021222324252627282930313233343536 |
- package scheme
- type TaskVariable struct {
- Key string `json:"key" yaml:"key"`
- Value string `json:"value" yaml:"value"`
- }
- type TaskFile struct {
- Path string `json:"path" yaml:"path"`
- Content string `json:"content" yaml:"content"`
- }
- type TaskPreprocessor struct {
- Kind string `json:"kind" yaml:"kind"`
- }
- type TaskImage struct {
- Tag string `json:"tag" yaml:"tag"`
- Version string `json:"version" yaml:"version"`
- Build bool `json:"build" yaml:"build"`
- Push bool `json:"push" yam:"push"`
- }
- type TaskTimeout struct {
- Build int `json:"build" yaml:"build"`
- Push int `json:"push" yaml:"push"`
- }
- type Task struct {
- Template string `json:"template" yaml:"template"`
- Variables []TaskVariable `json:"variables" yaml:"variables"`
- Files []TaskFile `json:"files" yaml:"files"`
- Preprocessors []TaskPreprocessor `json:"preprocessors" yaml:"preprocessors"`
- Image TaskImage `json:"image" yaml:"image"`
- Timeout TaskTimeout `json:"timeout" yaml:"timeout"`
- }
|