go-control-plane: github.com/envoyproxy/go-control-plane/pkg/conversion Index | Files

package conversion

import "github.com/envoyproxy/go-control-plane/pkg/conversion"

Package conversion contains shared utility functions for converting xDS resources.

Index

Package Files

struct.go

func MessageToStruct Uses

func MessageToStruct(msg proto.Message) (*pstruct.Struct, error)

MessageToStruct encodes a protobuf Message into a Struct. Hilariously, it uses JSON as the intermediary author:glen@turbinelabs.io

func StructToMessage Uses

func StructToMessage(pbst *pstruct.Struct, out proto.Message) error

StructToMessage decodes a protobuf Message from a Struct.

Package conversion imports 5 packages (graph) and is imported by 20 packages. Updated 2019-11-09. Refresh now. Tools for package owners.