Documentation
¶
Overview ¶
Package tpl provides a way to parse a template string and inject secret values into it.
Index ¶
Constants ¶
View Source
const ( // DefaultStartDelimiter defines the characters a template block starts with. DefaultStartDelimiter = "${" // DefaultEndDelimiter defines the characters a template block ends with. DefaultEndDelimiter = "}" // DefaultTrimChars defines the cutset of characters that will be trimmed from template blocks. DefaultTrimChars = " " )
Variables ¶
View Source
var ( ErrParseFailed = errInject.Code("parse_failed").ErrorPref("failed to parse contents: %v") ErrSecretNotFound = errInject.Code("secret_not_found").ErrorPref("no secret found to inject for path %s") )
Errors
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template struct { Raw string Secrets []api.SecretPath // contains filtered or unexported fields }
Template helps with injecting values into strings that contain the template syntax.
Click to show internal directories.
Click to hide internal directories.