kubernetes/vendor/github.com/fxamacker/cbor/v2/tag.go

type Tag

type RawTag

// UnmarshalCBOR sets *t with tag number and raw tag content copied from data.
func (t *RawTag) UnmarshalCBOR(data []byte) error {}

// MarshalCBOR returns CBOR encoding of t.
func (t RawTag) MarshalCBOR() ([]byte, error) {}

type DecTagMode

const DecTagIgnored

const DecTagOptional

const DecTagRequired

const maxDecTagMode

func (dtm DecTagMode) valid() bool {}

type EncTagMode

const EncTagNone

const EncTagRequired

const maxEncTagMode

func (etm EncTagMode) valid() bool {}

type TagOptions

type TagSet

type tagProvider

type tagItem

func (t *tagItem) equalTagNum(num []uint64) bool {}

type tagSet

type syncTagSet

func (t tagSet) getTagItemFromType(typ reflect.Type) *tagItem {}

func (t tagSet) getTypeFromTagNum(num []uint64) reflect.Type {}

// NewTagSet returns TagSet (safe for concurrency).
func NewTagSet() TagSet {}

// Add adds given tag number(s), content type, and tag options to TagSet.
func (t *syncTagSet) Add(opts TagOptions, contentType reflect.Type, num uint64, nestedNum ...uint64) error {}

// Remove removes given tag content type from TagSet.
func (t *syncTagSet) Remove(contentType reflect.Type) {}

func (t *syncTagSet) getTagItemFromType(typ reflect.Type) *tagItem {}

func (t *syncTagSet) getTypeFromTagNum(num []uint64) reflect.Type {}

func newTagItem(opts TagOptions, contentType reflect.Type, num uint64, nestedNum ...uint64) (*tagItem, error) {}

var typeTag

var typeRawTag

type WrongTagError

func (e *WrongTagError) Error() string {}