kubernetes/vendor/sigs.k8s.io/structured-merge-diff/v4/value/value.go

var readPool

var writePool

type Value

// FromJSON is a helper function for reading a JSON document.
func FromJSON(input []byte) (Value, error) {}

// FromJSONFast is a helper function for reading a JSON document.
func FromJSONFast(input []byte) (Value, error) {}

// ToJSON is a helper function for producing a JSon document.
func ToJSON(v Value) ([]byte, error) {}

// ReadJSONIter reads a Value from a JSON iterator.
func ReadJSONIter(iter *jsoniter.Iterator) (Value, error) {}

// WriteJSONStream writes a value into a JSON stream.
func WriteJSONStream(v Value, stream *jsoniter.Stream) {}

// ToYAML marshals a value as YAML.
func ToYAML(v Value) ([]byte, error) {}

// Equals returns true iff the two values are equal.
func Equals(lhs, rhs Value) bool {}

// EqualsUsing uses the provided allocator and returns true iff the two values are equal.
func EqualsUsing(a Allocator, lhs, rhs Value) bool {}

// ToString returns a human-readable representation of the value.
func ToString(v Value) string {}

// Less provides a total ordering for Value (so that they can be sorted, even
// if they are of different types).
func Less(lhs, rhs Value) bool {}

// Compare provides a total ordering for Value (so that they can be
// sorted, even if they are of different types). The result will be 0 if
// v==rhs, -1 if v < rhs, and +1 if v > rhs.
func Compare(lhs, rhs Value) int {}

// CompareUsing uses the provided allocator and provides a total
// ordering for Value (so that they can be sorted, even if they
// are of different types). The result will be 0 if v==rhs, -1
// if v < rhs, and +1 if v > rhs.
func CompareUsing(a Allocator, lhs, rhs Value) int {}