envsubst

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitYAML

func SplitYAML(raw []byte) ([][]byte, error)

SplitYAML into separate documents.

func StrictEval

func StrictEval(in string, mapping func(string) string) (out string, err error)

StrictEval is similar to Eval of github.com/drone/envsubst, but returns an error when a variable is missing.

func StrictEvalEnv

func StrictEvalEnv(s string) (string, error)

StrictEvalEnv is similar to EvalEnv of github.com/drone/envsubst, but returns an error when a variable is missing.

func SubstituteVariables

func SubstituteVariables(ctx context.Context, res *resource.Resource) (*resource.Resource, error)

Types

type MissingVariableError

type MissingVariableError struct {
	Variable string
}

func (MissingVariableError) Error

func (m MissingVariableError) Error() string

Jump to

Keyboard shortcuts

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