Versions in this module Expand all Collapse all v3 v3.0.1 Mar 29, 2021 v3.0.0 Mar 5, 2020 Changes in this version + const LexicalKeyOrder + const Unordered + var EmptyRange = &emptyRange + var HeapAllocator = &heapAllocator + func BoolCompare(lhs, rhs bool) int + func Compare(lhs, rhs Value) int + func CompareUsing(a Allocator, lhs, rhs Value) int + func Equals(lhs, rhs Value) bool + func EqualsUsing(a Allocator, lhs, rhs Value) bool + func FloatCompare(lhs, rhs float64) int + func IntCompare(lhs, rhs int64) int + func Less(lhs, rhs Value) bool + func ListCompare(lhs, rhs List) int + func ListCompareUsing(a Allocator, lhs, rhs List) int + func ListEquals(lhs, rhs List) bool + func ListEqualsUsing(a Allocator, lhs, rhs List) bool + func ListLess(lhs, rhs List) bool + func MapCompare(lhs, rhs Map) int + func MapCompareUsing(a Allocator, lhs, rhs Map) int + func MapEquals(lhs, rhs Map) bool + func MapEqualsUsing(a Allocator, lhs, rhs Map) bool + func MapLess(lhs, rhs Map) bool + func MapZip(lhs, rhs Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool + func MapZipUsing(a Allocator, lhs, rhs Map, order MapTraverseOrder, ...) bool + func ToJSON(v Value) ([]byte, error) + func ToString(v Value) string + func ToYAML(v Value) ([]byte, error) + func WriteJSONStream(v Value, stream *jsoniter.Stream) + type Allocator interface + Free func(interface{}) + func NewFreelistAllocator() Allocator + type Field struct + Name string + Value Value + type FieldCacheEntry struct + JsonName string + TypeEntry *TypeReflectCacheEntry + func (f *FieldCacheEntry) CanOmit(fieldVal reflect.Value) bool + func (f *FieldCacheEntry) GetFrom(structVal reflect.Value) reflect.Value + type FieldList []Field + func (f FieldList) Compare(rhs FieldList) int + func (f FieldList) Equals(rhs FieldList) bool + func (f FieldList) Less(rhs FieldList) bool + func (f FieldList) Sort() + type List interface + At func(int) Value + AtUsing func(Allocator, int) Value + Equals func(List) bool + EqualsUsing func(Allocator, List) bool + Length func() int + Range func() ListRange + RangeUsing func(Allocator) ListRange + type ListRange interface + Item func() (index int, value Value) + Next func() bool + type Map interface + Delete func(key string) + Empty func() bool + Equals func(other Map) bool + EqualsUsing func(a Allocator, other Map) bool + Get func(key string) (Value, bool) + GetUsing func(a Allocator, key string) (Value, bool) + Has func(key string) bool + Iterate func(func(key string, value Value) bool) bool + IterateUsing func(Allocator, func(key string, value Value) bool) bool + Length func() int + Set func(key string, val Value) + Zip func(other Map, order MapTraverseOrder, fn func(key string, lhs, rhs Value) bool) bool + ZipUsing func(a Allocator, other Map, order MapTraverseOrder, ...) bool + type MapTraverseOrder int + type TypeReflectCacheEntry struct + func TypeReflectEntryOf(t reflect.Type) *TypeReflectCacheEntry + func (e TypeReflectCacheEntry) CanConvertFromUnstructured() bool + func (e TypeReflectCacheEntry) CanConvertToUnstructured() bool + func (e TypeReflectCacheEntry) Fields() map[string]*FieldCacheEntry + func (e TypeReflectCacheEntry) FromUnstructured(sv, dv reflect.Value) error + func (e TypeReflectCacheEntry) OrderedFields() []*FieldCacheEntry + func (e TypeReflectCacheEntry) ToUnstructured(sv reflect.Value) (interface{}, error) + type UnstructuredConverter interface + ToUnstructured func() interface{} + type Value interface + AsBool func() bool + AsFloat func() float64 + AsInt func() int64 + AsList func() List + AsListUsing func(Allocator) List + AsMap func() Map + AsMapUsing func(Allocator) Map + AsString func() string + IsBool func() bool + IsFloat func() bool + IsInt func() bool + IsList func() bool + IsMap func() bool + IsNull func() bool + IsString func() bool + Unstructured func() interface{} + func FromJSON(input []byte) (Value, error) + func FromJSONFast(input []byte) (Value, error) + func NewValueInterface(v interface{}) Value + func NewValueReflect(value interface{}) (Value, error) + func ReadJSONIter(iter *jsoniter.Iterator) (Value, error) Other modules containing this package sigs.k8s.io/structured-merge-diff sigs.k8s.io/structured-merge-diff/v2 sigs.k8s.io/structured-merge-diff/v4 sigs.k8s.io/structured-merge-diff/v5 sigs.k8s.io/structured-merge-diff/v6