versioning

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec

func NewCodec(
	encoder runtime.Encoder,
	decoder runtime.Decoder,

	defaulter runtime.ObjectDefaulter,

) runtime.Codec

NewCodec takes objects in their internal versions and converts them to external versions before serializing them. It assumes the serializer provided to it only deals with external versions. This class is also a serializer, but is generally used with a specific version.

func NewDefaultingCodecForScheme

func NewDefaultingCodecForScheme(

	encoder runtime.Encoder,
	decoder runtime.Decoder,

) runtime.Codec

NewDefaultingCodecForScheme is a convenience method for callers that are using a scheme.

Types

This section is empty.

Jump to

Keyboard shortcuts

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