envoy

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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"
)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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