buildfile

package
v0.0.0-...-5998bd7 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoParent = errors.New("missing parent section")

ErrNoParent is raised when there is an instruction but has no parent section

View Source
var ErrNullContext = errors.New("null context")

ErrNullContext is raised when the given context is nil

Functions

This section is empty.

Types

type LineError

type LineError struct {
	Line int
	Err  error
}

LineError wraps errors with a line index

func (LineError) Error

func (le LineError) Error() string

Error implements Error

type Reader

type Reader struct {
	// Context is the linux distribution-specified execution context (package manager, service manager, etc)
	Context *instruction.ExecutionContext
	// Content is the instruction list
	Content map[string]*[]instruction.T
}

Reader is the buildfile reader

func NewReader

func NewReader(ctx *instruction.ExecutionContext, buildfile io.Reader) (*Reader, error)

NewReader creates a new reader for the specified build file and linux distribution

func (*Reader) Execute

func (r *Reader) Execute(_dryRun ...bool) error

Execute the current buildfile instruction by instruction if <dryRun> is set to TRUE, run on dry-run mode

Jump to

Keyboard shortcuts

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