Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetYamlKeys ¶
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 `latest.DeployType{LegacyHelmDeploy: &LegacyHelmDeploy{...}, KustomizeDeploy: &KustomizeDeploy{...}}` then it returns `["helm", "kustomize"]`
func GetYamlTag ¶
func GetYamlTag(value interface{}) string
GetYamlTag returns the first yaml tag used in the raw yaml text of the given struct
func ValidateStruct ¶
func ValidateStruct(s interface{}) error
ValidateStruct validates and processes the provided pointer to a struct.
func YamlName ¶
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.