conversion

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 13

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) (*structpb.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 *structpb.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