Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetYamlKeys ¶ added in v1.21.0
func GetYamlKeys(config interface{}) []string
GetYamlKeys returns the yaml key for each non-nested field of the given non-nil config parameter For example if config is `latestV1.DeployType{HelmDeploy: &HelmDeploy{...}, KustomizeDeploy: &KustomizeDeploy{...}}` then it returns `["helm", "kustomize"]`
func GetYamlTag ¶ added in v1.7.1
func GetYamlTag(value interface{}) string
GetYamlTag returns the first yaml tag used in the raw yaml text of the given struct
func ValidateStruct ¶ added in v0.28.0
func ValidateStruct(s interface{}) error
ValidateStruct validates and processes the provided pointer to a struct.
func YamlName ¶ added in v0.37.0
func YamlName(field reflect.StructField) string
YamlName returns the YAML name of the given field
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.