Documentation
¶
Index ¶
- Constants
- func TrustedMarshalYAML(d interface{}) string
- func TrustedUnmarshalYAML(d string) map[string]interface{}
- func YamlNewDecoder(r io.Reader) *yamlv3.Decoder
- func YamlNewEncoder(w io.Writer) *yamlv3.Encoder
- func YamlToJson(in string) ([]byte, error)
- func YmlMarshall(in interface{}) (string, error)
- func YmlMarshallTestHelper(in interface{}, t *testing.T) string
- func YmlUnmarshal(in string, out interface{}) error
- func YmlUnmarshalTestHelper(input string, out any, t *testing.T)
- type K8sManifest
- type YamlNode
- type YmlEscapeHandlers
Constants ¶
View Source
const LOG_TEST_SUITE = "test-suite"
View Source
const RAW string = "raw"
RAW the key value for making content parsable as K8sManifest
View Source
const YAMLINDENTION int = 2
Override Indention
Variables ¶
This section is empty.
Functions ¶
func TrustedMarshalYAML ¶
func TrustedMarshalYAML(d interface{}) string
TrustedMarshalYAML marshal yaml without error returned, if an error happens it panics
func TrustedUnmarshalYAML ¶ added in v0.4.1
TrustedUnmarshalYAML unmarshal yaml without error returned, if an error happens it panics
func YamlNewDecoder ¶ added in v0.7.1
YamlNewDecoder returns a new decoder that reads from r.
func YamlNewEncoder ¶ added in v0.7.1
YamlNewEncoder returns a new encoder that writes to w.
func YamlToJson ¶ added in v0.7.1
func YmlMarshall ¶ added in v0.7.1
func YmlMarshallTestHelper ¶ added in v0.7.1
func YmlUnmarshal ¶ added in v0.7.1
Types ¶
type K8sManifest ¶
type K8sManifest map[string]interface{}
K8sManifest type for rendered manifest unmarshaled to
type YamlNode ¶ added in v0.7.1
func NewYamlNode ¶ added in v0.7.1
func NewYamlNode() YamlNode
type YmlEscapeHandlers ¶ added in v0.7.2
type YmlEscapeHandlers struct{}
func (*YmlEscapeHandlers) Escape ¶ added in v0.7.2
func (y *YmlEscapeHandlers) Escape(content string) []byte
Escape function is required, as yaml library no longer maintained yaml unmaintained library issue https://github.com/go-yaml/yaml/pull/862
Click to show internal directories.
Click to hide internal directories.