Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadVariables ¶
ReadVariables is a convenience function using the default YAML reader
Types ¶
type ConfigReader ¶
type ConfigReader interface {
ReadConfig(path string) ([]Step, error)
ReadVariables(path string) (map[string]interface{}, error)
}
ConfigReader defines the interface for reading configuration and variables
func NewYAMLConfigReader ¶
func NewYAMLConfigReader() ConfigReader
NewYAMLConfigReader creates a new YAMLConfigReader
type Step ¶
type Step struct {
Name string `yaml:"name"`
When string `yaml:"when"`
Template *Template `yaml:"template"`
File *File `yaml:"file"`
Shell *string `yaml:"shell"`
Include *string `yaml:"include"`
IncludeVars *string `yaml:"include_vars"`
Become bool `yaml:"become"`
Vars *map[string]interface{} `yaml:"vars"`
Tags []string `yaml:"tags"`
WithFileTree *string `yaml:"with_filetree"`
WithItems *string `yaml:"with_items"`
}
func ReadConfig ¶
ReadConfig is a convenience function using the default YAML reader
func (*Step) ValidateHasAction ¶
func (*Step) ValidateOneAction ¶
type YAMLConfigReader ¶
type YAMLConfigReader struct {
}
YAMLConfigReader implements ConfigReader for YAML files
func (*YAMLConfigReader) ReadConfig ¶
func (r *YAMLConfigReader) ReadConfig(path string) ([]Step, error)
ReadConfig reads configuration steps from a YAML file
func (*YAMLConfigReader) ReadVariables ¶
func (r *YAMLConfigReader) ReadVariables(path string) (map[string]interface{}, error)
ReadVariables reads variables from a YAML file
Click to show internal directories.
Click to hide internal directories.