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

type field

type fields

type indexFieldSorter

func (x *indexFieldSorter) Len() int {}

func (x *indexFieldSorter) Swap(i, j int) {}

func (x *indexFieldSorter) Less(i, j int) bool {}

type nameLevelAndTagFieldSorter

func (x *nameLevelAndTagFieldSorter) Len() int {}

func (x *nameLevelAndTagFieldSorter) Swap(i, j int) {}

func (x *nameLevelAndTagFieldSorter) Less(i, j int) bool {}

// getFields returns visible fields of struct type t following visibility rules for JSON encoding.
func getFields(t reflect.Type) (flds fields, structOptions string) {}

// appendFields appends type t's exportable fields to flds and anonymous struct fields to nTypes .
func appendFields(
	t reflect.Type,
	idx []int,
	flds fields,
	nTypes map[reflect.Type][][]int,
) (
	_flds fields,
	_nTypes map[reflect.Type][][]int,
) {}

// isFieldExportable returns true if f is an exportable (regular or anonymous) field or
// a nonexportable anonymous field of struct type.
// Nonexportable anonymous field of struct type can contain exportable fields.
func isFieldExportable(f reflect.StructField, fk reflect.Kind) bool {}

type embeddedFieldNullPtrFunc

// getFieldValue returns field value of struct v by index.  When encountering null pointer
// to anonymous (embedded) struct field, f is called with the last traversed field value.
func getFieldValue(v reflect.Value, idx []int, f embeddedFieldNullPtrFunc) (fv reflect.Value, err error) {}