codec

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 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 DecodeMonitorConfiguration

func DecodeMonitorConfiguration(monitorCodecs *serializer.CodecFactory, data []byte) (*monitorconfig.MonitorConfiguration, error)

DecodeMonitorConfiguration decodes a serialized MonitorConfiguration to the internal type

func EncodeMonitorConfig

func EncodeMonitorConfig(internal *monitorconfig.MonitorConfiguration, targetVersion schema.GroupVersion) ([]byte, error)

EncodeMonitorConfig encodes an internal MonitorConfiguration to an external YAML representation

func NewMonitorConfigYAMLEncoder

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

NewMonitorConfigYAMLEncoder returns an encoder that can write objects in the monitorconfig 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