{"modulePath":"github.com/Coding/drone","version":"v0.4.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package compiler\n\n## Types\n\n```go\ntype Compiler struct {\n\t// contains filtered or unexported fields\n}\n```\nCompiler compiles the Yaml file to the intermediate representation.\n\n```go\nfunc New() *Compiler\n```\n\n```go\nfunc (c *Compiler) Compile(in []byte) (*runner.Spec, error)\n```\nCompileString compiles the Yaml configuration file and returns the intermediate representation for the interpreter.\n\n```go\nfunc (c *Compiler) CompileString(in string) (*runner.Spec, error)\n```\nCompileString compiles the Yaml configuration string and returns the intermediate representation for the interpreter.\n\n```go\nfunc (c *Compiler) Transforms(trans []Transform) *Compiler\n```\nTransforms sets the compiler transforms use to transform the intermediate representation during compilation.\n\n```go\ntype Transform interface {\n\tVisitRoot(*parse.RootNode) error\n\tVisitVolume(*parse.VolumeNode) error\n\tVisitNetwork(*parse.NetworkNode) error\n\tVisitBuild(*parse.BuildNode) error\n\tVisitContainer(*parse.ContainerNode) error\n}\n```\nTransform 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.\n\n","path":"github.com/Coding/drone/engine/compiler","name":"compiler","synopsis":"","isRedistributable":true}
