Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRefRegexp = regexp.MustCompile(`((secret)?ref)\+([^\+:]*:\/\/[^\+\n ]+[^\+\n ",])\+?`)
Functions ¶
func ModifyStringValues ¶
Types ¶
type ExpandRegexMatch ¶
type ExpandRegexMatch struct {
Target *regexp.Regexp
Lookup func(string) (interface{}, error)
Only []string
}
func (*ExpandRegexMatch) InMap ¶
func (e *ExpandRegexMatch) InMap(target map[string]interface{}) (map[string]interface{}, error)
func (*ExpandRegexMatch) InValue ¶ added in v0.43.2
func (e *ExpandRegexMatch) InValue(s string) (interface{}, error)
InValue expands matches in the given string value. If the entire string matches the regex, it expands and preserves the type. If only part of the string matches, it expands as a string.
Click to show internal directories.
Click to hide internal directories.