Documentation
¶
Index ¶
Constants ¶
View Source
const (
TransformerKeywordInline = "${inline}"
)
Variables ¶
This section is empty.
Functions ¶
func FindInMapRecursive ¶
Recursively search in a map of maps for the specified key. keyPath contains the keys to use in the applicable (child)map
Types ¶
type SpecExpander ¶
type SpecExpander struct { VarResolver VariableResolver RequiredPrefix string ReservedPrefixes []string // If the source prefix isn't matched and isn't any of these then it's an error }
Used to expand "templated" variables in Specs
func (*SpecExpander) Expand ¶
func (e *SpecExpander) Expand(spec *runtime.RawExtension) (*runtime.RawExtension, *util.ErrorList)
Resolves all the variables used in the resource spec
type TextParser ¶
type TextParser struct {
// contains filtered or unexported fields
}
Parser for parsing the plain text part of a string
type VarParser ¶
type VarParser struct {
// contains filtered or unexported fields
}
Parser for parsing variable references in a string
type VariableExpander ¶
type VariableExpander interface { Expand(s string) (interface{}, *util.ErrorList) ValidPrefix(s string) bool }
VariableExpander expands variables into the appropriate values
func NewVariableExpander ¶
func NewVariableExpander(r VariableResolver, p string) VariableExpander
NewVariableExpander creates a variable expander that will use the specified resolver
type VariableResolver ¶
VariableResolver resolves variable names to their values
type VariableValidator ¶
Click to show internal directories.
Click to hide internal directories.