kubernetes/pkg/api/testing
Ben Luddy 38f87df0e3
Enable JSON-compatible base64 encoding of []byte for CBOR.
The encoding/json package marshals []byte to a JSON string containing the base64 encoding of the
input slice's bytes, and unmarshals JSON strings to []byte by assuming the JSON string contains a
valid base64 text.

As a binary format, CBOR is capable of representing arbitrary byte sequences without converting them
to a text encoding, but it also needs to interoperate with the existing JSON serializer. It does
this using the "expected later encoding" tags defined in RFC 8949, which indicate a specific text
encoding to be used when interoperating with text-based protocols. The actual conversion to or from
a text encoding is deferred until necessary, so no conversion is performed during roundtrips of
[]byte to CBOR.
2024-06-25 21:05:26 -04:00
..
compat hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
applyconfiguration_test.go Remove ClusterName 2022-05-05 20:12:50 +00:00
backward_compatibility_test.go Implement pod deletion cost 2021-03-01 13:45:58 -05:00
conversion.go pkg/api: Fix golint errors 2018-09-07 12:31:25 +05:30
conversion_test.go replace ioutil with io and os for pkg/api 2021-10-30 14:49:09 +08:00
copy_test.go Replace apimachinery diff.StringDiff with cmp 2023-04-12 08:45:31 -07:00
deep_copy_test.go Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
defaulting_test.go Promote ValidatingAdmissionPolicy to GA. 2024-03-05 16:00:21 -08:00
doc.go pkg/api: move *_test.go -> pkg/api/testing 2017-10-11 16:04:50 +02:00
fuzzer.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
install.go api: dynamic resource allocation API 2022-11-10 20:08:24 +01:00
meta_test.go Remove selflink references in api tests 2022-02-14 11:11:56 +01:00
node_example.json Avoid using Docker Engine as example for container runtime 2022-03-25 00:36:50 +00:00
OWNERS lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
replication_controller_example.json Move from k8s.gcr.io to registry.k8s.io 2022-05-31 10:16:53 -04:00
serialization_proto_test.go Change reflect.Ptr to reflect.Pointer 2022-06-26 01:23:43 +09:00
serialization_test.go use generic Set in api 2023-09-25 19:04:08 +08:00
unstructured_test.go Enable JSON-compatible base64 encoding of []byte for CBOR. 2024-06-25 21:05:26 -04:00