yamltags

package
v1.39.18 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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 `latest.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.

Jump to

Keyboard shortcuts

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