util

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const YamlContentHeader string = "# DO NOT MODIFY! This file was generated by the Riser platform. Changes will be lost\n"

Variables

This section is empty.

Functions

func EnsureDir

func EnsureDir(dirOrFilePath string, fileMode os.FileMode) error

func ParseYaml

func ParseYaml(in []byte, out interface{}) error

ParseYaml deserializes YAML into a struct with JSON tags. This uses k8s encoding packages for consistenct

func ToYaml

func ToYaml(in interface{}) ([]byte, error)

ToYaml serializes to pretty YAML with JSON tags using the k8s encoding packages for consistency

Types

This section is empty.

Jump to

Keyboard shortcuts

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