interpolation

package
v0.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interpolate

func Interpolate(yml map[string]any, data map[string]string, validateParameterAllSet bool, interps ...Interpolator) (
	map[string]any, error,
)

Interpolate interpolates the given yaml object.

Types

type InterpolateFunc

type InterpolateFunc = func(ymlObj map[string]any, data map[string]string, validateParameterAllSet bool) (
	map[string]any, error)

InterpolateFunc is a function that interpolates values in a YAML object.

type Interpolator

type Interpolator struct {
	Name string
	Func InterpolateFunc
}

Interpolator represents a type used for interpolating values in a YAML object.

func ContextAndEnvironmentVariableInterpolator

func ContextAndEnvironmentVariableInterpolator() Interpolator

ContextAndEnvironmentVariableInterpolator interpolates the context and environment variable.

func DefaultInterpolator

func DefaultInterpolator() []Interpolator

DefaultInterpolator returns the default interpolates.

Jump to

Keyboard shortcuts

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