conversion

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package conversion contains shared utility functions for converting xDS resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageToStruct

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

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

StructToMessage decodes a protobuf Message from a Struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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