compiler

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	ModuleImports map[string]*module.ModuleImport
	PlaybookRepr  playbook.PlaybookRepr
}

func (*Compiler) Compile

func (c *Compiler) Compile() *ast.File

Compile returns an `*ast.File` which can be formatted into Go using `go/format` or `go/printer`. The Load() method must be called before this.

func (*Compiler) Load

func (c *Compiler) Load(path string) error

Load takes the path to a YAML playbook and loads it into the Compiler or returns an error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL