parse

package
v0.0.0-...-57fe177 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Traverse

func Traverse(recipes *[]Recipe, path string) error

Traverse parses the import tree in a directory.

Types

type Installer

type Installer struct {
	// Name identifies the installer when multiple are provided.
	Name         string
	Script       string
	Dependencies []string
}

func (Installer) FQDN

func (i Installer) FQDN(r Recipe) string

type Recipe

type Recipe struct {
	Name       string
	Check      string
	BuildOnly  bool
	Comment    string
	Installers []Installer
}

type Result

type Result struct {
	Imports []string
	Recipes []Recipe
}

func Parse

func Parse(r io.Reader) (*Result, error)

Parse parses a recipe from a source file.

Jump to

Keyboard shortcuts

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