codec

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeConfiguration

func DecodeConfiguration(codecs *serializer.CodecFactory, data []byte) (*meshconfig.MeshConfiguration, error)

DecodeConfiguration decodes a serialized MeshConfiguration to the internal type

func EncodeConfig

func EncodeConfig(internal *meshconfig.MeshConfiguration, targetVersion schema.GroupVersion) ([]byte, error)

EncodeConfig encodes an internal MeshConfiguration to an external YAML representation

func NewConfigYAMLEncoder

func NewConfigYAMLEncoder(targetVersion schema.GroupVersion) (runtime.Encoder, error)

NewConfigYAMLEncoder returns an encoder that can write objects in the meshconfig API group to YAML

func NewYAMLEncoder

func NewYAMLEncoder(groupName string) (runtime.Encoder, error)

NewYAMLEncoder generates a new runtime.Encoder that encodes objects to YAML

Types

This section is empty.

Jump to

Keyboard shortcuts

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