Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceMarshaller ¶
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 ¶
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" )
Click to show internal directories.
Click to hide internal directories.