compiler

package
v0.26.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelativeScriptOutsideOfBaseDirError

func RelativeScriptOutsideOfBaseDirError(script string) error

func ScriptDoesNotExistError

func ScriptDoesNotExistError(script, str string) error

func ScriptFieldError

func ScriptFieldError(field string, err error) error

Types

type CompilerContext

type CompilerContext struct {
	Metadata          *core.ReleaseMetadata
	Plan              *escape_plan.EscapePlan
	VariableCtx       map[string]*core.ReleaseMetadata
	DependencyFetcher func(*core.DependencyConfig) (*core.ReleaseMetadata, error)
	ReleaseQuery      func(*core.DependencyConfig) (*core.ReleaseMetadata, error)
	Inventory         inventory.Inventory
	Logger            api.Logger
}

func NewCompilerContext

func NewCompilerContext(plan *escape_plan.EscapePlan, inventory inventory.Inventory) *CompilerContext

func NewCompilerContextWithLogger

func NewCompilerContextWithLogger(plan *escape_plan.EscapePlan, inventory inventory.Inventory, logger api.Logger) *CompilerContext

func (*CompilerContext) AddFileDigest

func (c *CompilerContext) AddFileDigest(path string) error

func (*CompilerContext) RunScriptForCompileStep

func (c *CompilerContext) RunScriptForCompileStep(scriptStr string) (string, error)

type CompilerFunc

type CompilerFunc func(*CompilerContext) error

Jump to

Keyboard shortcuts

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