Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler compiles the Yaml file to the intermediate representation.
func (*Compiler) Compile ¶
CompileString compiles the Yaml configuration file and returns the intermediate representation for the interpreter.
func (*Compiler) CompileString ¶
CompileString compiles the Yaml configuration string and returns the intermediate representation for the interpreter.
func (*Compiler) Transforms ¶
Transforms sets the compiler transforms use to transform the intermediate representation during compilation.
type Transform ¶
type Transform interface { VisitRoot(*parse.RootNode) error VisitVolume(*parse.VolumeNode) error VisitNetwork(*parse.NetworkNode) error VisitBuild(*parse.BuildNode) error VisitContainer(*parse.ContainerNode) error }
Transform is used to transform nodes from the parsed Yaml file during the compilation process. A Transform may be used to add, disable or alter nodes.
Click to show internal directories.
Click to hide internal directories.