protoutils

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 12 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 MarshalMapFromProto added in v0.13.9

func MarshalMapFromProto(from proto.Message) (map[string]interface{}, error)

func MarshalMapFromProtoWithEnumsAsInts added in v0.13.9

func MarshalMapFromProtoWithEnumsAsInts(from proto.Message) (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 UnmarshalMapToProto added in v0.13.9

func UnmarshalMapToProto(m map[string]interface{}, into proto.Message) 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 UnmarshalStruct added in v0.16.1

func UnmarshalStruct(structuredData *structpb.Struct, into interface{}) error

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