templating

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Meta               score.WorkloadSpecMetadata
	ResourceProperties map[string]map[string]interface{}
}

Context ia an utility type that provides a context for '${...}' templates substitution

func (*Context) Substitute

func (ctx *Context) Substitute(src string) (string, error)

Substitute replaces all matching '${...}' templates in a source string

Jump to

Keyboard shortcuts

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