Documentation
¶
Index ¶
- func EnvMap(replaceMap map[string]string) map[string]interface{}
- func IsMissingVariableErr(err error) bool
- func IsPlaceholder(s string) bool
- func NewPlaceholder(index int) string
- func Replace(ctx context.Context, s string, replaceMap map[string]string, ...) (string, error)
- func ReplaceStrict(ctx context.Context, s string, replaceMap map[string]string, ...) (string, error)
- func ResolveVar(s string, m map[string]interface{}) (interface{}, error)
- func Validate(s string, validator func(tag string) error) error
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMissingVariableErr ¶
func IsPlaceholder ¶
IsPlaceholder reports whether s is an internal Argo placeholder value.
func NewPlaceholder ¶
NewPlaceholder generates an internal Argo placeholder string for the given index.
func Replace ¶
func Replace(ctx context.Context, s string, replaceMap map[string]string, allowUnresolved bool) (string, error)
Replace takes a json-formatted string and performs variable replacement.
func ReplaceStrict ¶
func ReplaceStrict(ctx context.Context, s string, replaceMap map[string]string, strictPrefixes []string) (string, error)
ReplaceStrict behaves like Replace but enforces that tags starting with any of strictPrefixes MUST be resolved, even if allowUnresolved behavior is otherwise active (implicit).
func ResolveVar ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.