util

package
v0.0.0-...-b442dbf Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(data []byte) (runtime.Object, error)

func Dump

func Dump(outputFormat string, data []byte) error

func DumpListToFiles

func DumpListToFiles(list *metav1.List, contentType string) ([]string, error)

func Encode

func Encode(object runtime.Object, contentType string, pretty bool) ([]byte, error)

func EncodeList

func EncodeList(list *metav1.List, contentType string, pretty bool) ([]byte, error)

func EnsureJSON

func EnsureJSON(data []byte) ([]byte, error)

func LoadObj

func LoadObj(obj interface{}, data []byte, sourcePath string, instanceName string) error

func NewFromHCL

func NewFromHCL(obj interface{}, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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