Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerImageWriter ¶
type DockerImageWriter struct{}
type DockerStatusMessage ¶
type DockerStatusMessage struct { Status string `json:"status"` ID string `json:"id"` ProgressDetail ProgressDetail `json:"progressDetail"` Progress string `json:"progress"` }
type MetaTemplate ¶
type MetaTemplate struct { Templates []*Template `json:"templates" yaml:"templates"` Schema *jsonschema.Schema `json:"schema" yaml:"schema"` }
func NewTemplate ¶
func NewTemplate(fs afero.Fs, uri string) (*MetaTemplate, error)
func (*MetaTemplate) ValidateInput ¶
func (t *MetaTemplate) ValidateInput(input *map[string]interface{}) error
type ProgressDetail ¶
type Step ¶
type Step struct { ID string `json:"id" yaml:"id"` Description string `json:"description" yaml:"description"` Action string `json:"action" yaml:"action"` Target string `json:"target" yaml:"target"` Command []string `json:"command" yaml:"command"` Source string `json:"source" yaml:"source"` Inputs map[string]interface{} `json:"inputs" yaml:"inputs"` }
type Template ¶
type Template struct { URI string `json:"uri" yaml:"uri"` LocalPath string `json:"localPath" yaml:"localPath"` Version string `json:"version" yaml:"version"` Config *TemplateConfig `json:"config" yaml:"config"` Steps []Step `json:"steps" yaml:"steps"` }
type TemplateConfig ¶
type TemplateConfig struct { Title string `json:"title" yaml:"title"` Version string `json:"version" yaml:"version"` Description string `json:"description" yaml:"description"` Tags []string `json:"tags" yaml:"tags"` Icon string `json:"icon" yaml:"icon"` RawSchema interface{} `json:"schema" yaml:"schema"` Steps []Step `json:"steps" yaml:"steps"` }
func LoadConfig ¶
func LoadConfig(fs afero.Fs) (*TemplateConfig, error)
func (*TemplateConfig) Validate ¶
func (config *TemplateConfig) Validate() error
Click to show internal directories.
Click to hide internal directories.