template

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: GPL-3.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeStrOperationFuncMap added in v0.13.2

func MakeStrOperationFuncMap() map[string]interface{}

Types

type BuildObjectStackFunc

type BuildObjectStackFunc func(stage Stage) map[string]interface{}

type Field

type Field interface {
	Get() string
	Set(value string)
}

func WrapGeneric added in v0.13.3

func WrapGeneric(getterF GetterFunc, setterF SetterFunc) Field

func WrapPointer

func WrapPointer(field *string) Field

type Fields

type Fields []Field

func WrapConstraints added in v0.13.1

func WrapConstraints(items constraint.Constraints) Fields

func WrapMapItems

func WrapMapItems(items map[string]string) Fields

func WrapSliceItems

func WrapSliceItems(items []string) Fields

func (Fields) Execute

func (fields Fields) Execute(parentPath string, varStack map[string]string, objStack map[string]interface{}, stringTemplateCache map[string]template.Template) (err error)

type GetConfigFunc

type GetConfigFunc func(string) string

func MakeGetConfigFunc

func MakeGetConfigFunc(varStack map[string]string) GetConfigFunc

type GetterFunc added in v0.13.3

type GetterFunc func() string

type Sequence

type Sequence map[Stage]Fields

func (Sequence) Execute

func (sf Sequence) Execute(parentPath string, varStack VarStack, buildObjectStack BuildObjectStackFunc, stringTemplateCache map[string]template.Template) (err error)

type SetterFunc added in v0.13.3

type SetterFunc func(value string)

type Stage

type Stage int
const (
	// RESOLUTION STAGE ↓      VALUES AVAILABLE ↓
	STAGE0 Stage = iota // parent stack only                         + locals
	STAGE1              // parent stack + defaults                   + locals
	STAGE2              // parent stack + defaults + vars            + locals
	STAGE3              // parent stack + defaults + vars + uservars + locals
	STAGE4              // parent stack + defaults + vars + uservars + locals + full self-object = full stack

)

type ToPtreeFunc added in v0.14.90

type ToPtreeFunc func(string, string) string

func MakeToPtreeFunc added in v0.14.90

func MakeToPtreeFunc(varStack map[string]string, propMap map[string]string) ToPtreeFunc

type VarStack

type VarStack struct {
	Locals   map[string]string
	Defaults *gera.StringWrapMap
	Vars     *gera.StringWrapMap
	UserVars *gera.StringWrapMap
}

Jump to

Keyboard shortcuts

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