Documentation
¶
Index ¶
Constants ¶
View Source
const AnyOS = "any"
AnyOS is OS string that matches any operating system
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient is an interface that is used for HTTP requests
type Recipe ¶
type Recipe struct { OS string `yaml:"os",json:"os"` Metadata UnitMetadata `yaml:"metadata",json:"metadata"` Stages []Stage `yaml:"stages",json:"stages"` }
Recipe stores needed steps to install a gjven piece of functionality
func FromRepository ¶
func FromRepository(recipeName string, httpClient HTTPClient) (*Recipe, error)
FromRepository downloads a recipe from official recipes repository
type Stage ¶
type Stage struct { Metadata UnitMetadata `yaml:"metadata",json:"metadata"` Steps []Step `yaml:"steps",json:"steps"` }
Stage represents a logical part of recipe that consists of steps
type Step ¶
type Step struct { Metadata UnitMetadata `yaml:"metadata",json:"metadata"` Execute shell.Command `yaml:"execute",json:"execute"` Rollback shell.Command `yaml:"rollback",json:"rollback"` }
Step contains data about a single shell command, which can be installed or reverted
type UnitMetadata ¶
type UnitMetadata struct { Name string `yaml:"name",json:"name"` Description string `yaml:"description",json:"description"` URL string `yaml:"url",json:"url"` }
UnitMetadata stores metadata for a generic Recipe unit, such as Recipe, Stage or Step
Click to show internal directories.
Click to hide internal directories.