tags

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

func MakeFilePathsAbsolute(s interface{}, base string) error

MakeFilePathsAbsolute recursively sets all fields marked with the tag `filepath` to absolute paths

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL