protoutils

package
v0.13.8-patch2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapStringInterfaceToMapStringString

func MapStringInterfaceToMapStringString(interfaceMap map[string]interface{}) (map[string]string, error)

reverse of previous

func MapStringStringToMapStringInterface

func MapStringStringToMapStringInterface(stringMap map[string]string) (map[string]interface{}, error)

ilackarms: help come up with a better name for this please values in stringMap are yaml encoded or error used by configmap resource client

func MarshalBytes

func MarshalBytes(res resources.Resource) ([]byte, error)

func MarshalBytesEmitZeroValues

func MarshalBytesEmitZeroValues(res resources.Resource) ([]byte, error)

func MarshalMap

func MarshalMap(from resources.Resource) (map[string]interface{}, error)

func MarshalMapEmitZeroValues

func MarshalMapEmitZeroValues(from resources.Resource) (map[string]interface{}, error)

func MarshalYAML added in v0.10.4

func MarshalYAML(res resources.Resource) ([]byte, error)

func UnmarshalBytes

func UnmarshalBytes(data []byte, into resources.Resource) error

func UnmarshalMap

func UnmarshalMap(m map[string]interface{}, into resources.Resource) error

func UnmarshalResource added in v0.10.23

func UnmarshalResource(kubeJson []byte, resource resources.Resource) error

convert raw Kube JSON to a Solo-Kit resource

func UnmarshalYAML added in v0.10.4

func UnmarshalYAML(data []byte, into resources.Resource) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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