Documentation
¶
Index ¶
- func Compile(plan *escape_plan.EscapePlan, reg inventory.Inventory, ...) (*core.ReleaseMetadata, error)
- func RelativeScriptOutsideOfBaseDirError(script string) error
- func ScriptDoesNotExistError(script, str string) error
- func ScriptFieldError(field string, err error) error
- type CompilerContext
- type CompilerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(plan *escape_plan.EscapePlan, reg inventory.Inventory, depFetcher func(*core.DependencyConfig) (*core.ReleaseMetadata, error), releaseQuery func(*core.DependencyConfig) (*core.ReleaseMetadata, error), logger api.Logger) (*core.ReleaseMetadata, error)
func ScriptDoesNotExistError ¶
func ScriptFieldError ¶
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
Click to show internal directories.
Click to hide internal directories.