Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyTemplates ¶ added in v2.12.0
func ApplyTemplates(in interface{}) error
ApplyTemplates recursively traverses the provided interface{} value, expanding any string fields or elements that contain Go templates.
Supported types for template expansion include:
- string
- *string
- []string
- []*string
- map[string]string
- map[string]*string
The function uses the "skaffold" struct tag to identify fields that should be treated as templates. A field is considered a template if its "skaffold" tag contains the value "template".
If an error occurs during template expansion, the function returns the error. Otherwise, it returns nil.
func MakeFilePathsAbsolute ¶
MakeFilePathsAbsolute recursively sets all fields marked with the tag `filepath` to absolute paths
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.