envoy

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceMarshaller

type ResourceMarshaller interface {
	Marshal(envoy.Resource) (string, error)
}

ResourceMarshaller serialize a protobuf struct into json

func NewResourceMarshaller

func NewResourceMarshaller(encoding Serialization, version envoy.APIVersion) ResourceMarshaller

NewResourceMarshaller returns a ResourceMarshaller for the given API version and encoding

type ResourceUnmarshaller

type ResourceUnmarshaller interface {
	Unmarshal(string, envoy.Resource) error
}

ResourceUnmarshaller deserialize from json into a protobuf struct

func NewResourceUnmarshaller

func NewResourceUnmarshaller(encoding Serialization, version envoy.APIVersion) ResourceUnmarshaller

NewResourceUnmarshaller returns a ResourceUnmarshaller for the given api version and encoding

type Serialization

type Serialization string

Serialization represents a serialization encoding for envoy.Resource structs.

const (
	// YAML represents yaml serialization of envoy.Resource structs.
	YAML Serialization = "yaml"
	// JSON represents json serialization of envoy.Resource structs.
	JSON Serialization = "json"
	// B64JSON represents yaml base64 encpded json serizalization of envoy.Resource structs.
	B64JSON Serialization = "b64json"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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