erbrenderer

package
v0.0.0-...-b9690c5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERBRenderer

type ERBRenderer struct {
	// contains filtered or unexported fields
}

func NewERBRenderer

func NewERBRenderer(
	fs boshsys.FileSystem,
	runner boshsys.CmdRunner,
	context TemplateEvaluationContext,
	logger boshlog.Logger,
) ERBRenderer

func (ERBRenderer) Render

func (r ERBRenderer) Render(srcPath, dstPath string) error

type RenderProperties

type RenderProperties struct {
	// contains filtered or unexported fields
}

func NewRenderProperties

func NewRenderProperties(relJob bpreljob.Job, instance bpdep.Instance) RenderProperties

func (RenderProperties) AsMap

func (p RenderProperties) AsMap() (map[string]interface{}, error)

AsMap returns job and instance properties merged together.

type TemplateEvaluationContext

type TemplateEvaluationContext struct {
	// contains filtered or unexported fields
}

func NewTemplateEvaluationContext

func NewTemplateEvaluationContext(
	relJob bpreljob.Job,
	instance bpdep.Instance,
) TemplateEvaluationContext

func (TemplateEvaluationContext) MarshalJSON

func (c TemplateEvaluationContext) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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