package cbor

import "k8s.io/apimachinery/pkg/runtime/serializer/cbor"

Index

Functions

func NewFramer

func NewFramer() runtime.Framer

NewFramer returns a runtime.Framer based on RFC 8742 CBOR Sequences. Each frame contains exactly one encoded CBOR data item.

Types

type Option

type Option func(*options)

func Strict

func Strict(s bool) Option

type Serializer

type Serializer interface {
	runtime.Serializer
	runtime.NondeterministicEncoder
	recognizer.RecognizingDecoder
	// contains filtered or unexported methods
}

func NewSerializer

func NewSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper, options ...Option) Serializer

Source Files

cbor.go framer.go raw.go

Directories

PathSynopsis
pkg/runtime/serializer/cbor/directPackage direct provides functions for marshaling and unmarshaling between arbitrary Go values and CBOR data, with behavior that is compatible with that of the CBOR serializer.
pkg/runtime/serializer/cbor/internal
Version
v0.32.0-alpha.1
Published
Sep 29, 2024
Platform
js/wasm
Imports
16 packages
Last checked
17 hours ago

Tools for package owners.