vars

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VarsCtx

type VarsCtx struct {
	J2   *jinja2.Jinja2
	Vars *uo.UnstructuredObject
}

func NewVarsCtx

func NewVarsCtx(j2 *jinja2.Jinja2) *VarsCtx

func (*VarsCtx) CheckConditional added in v2.20.0

func (vc *VarsCtx) CheckConditional(c string) (bool, error)

func (*VarsCtx) Copy

func (vc *VarsCtx) Copy() *VarsCtx

func (*VarsCtx) RenderDirectory

func (vc *VarsCtx) RenderDirectory(sourceDir string, targetDir string, excludePatterns []string, searchDirs []string, templateIgnoreRoot string) error

func (*VarsCtx) RenderFile added in v2.17.0

func (vc *VarsCtx) RenderFile(p string, searchDirs []string) (string, error)

func (*VarsCtx) RenderString added in v2.14.0

func (vc *VarsCtx) RenderString(t string, searchDirs []string) (string, error)

func (*VarsCtx) RenderStruct added in v2.14.0

func (vc *VarsCtx) RenderStruct(o interface{}) (bool, error)

func (*VarsCtx) RenderYamlFile

func (vc *VarsCtx) RenderYamlFile(p string, searchDirs []string, out interface{}) error

func (*VarsCtx) Update

func (vc *VarsCtx) Update(vars *uo.UnstructuredObject)

func (*VarsCtx) UpdateChild

func (vc *VarsCtx) UpdateChild(child string, vars *uo.UnstructuredObject)

func (*VarsCtx) UpdateChildFromStruct

func (vc *VarsCtx) UpdateChildFromStruct(child string, o interface{}) error

type VarsLoader

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

func (*VarsLoader) LoadVars

func (v *VarsLoader) LoadVars(ctx context.Context, varsCtx *VarsCtx, sourceIn *types.VarsSource, searchDirs []string, rootKey string) error

func (*VarsLoader) LoadVarsList

func (v *VarsLoader) LoadVarsList(ctx context.Context, varsCtx *VarsCtx, varsList []types.VarsSource, searchDirs []string, rootKey string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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