- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsNotMarshalable (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go
Code: http.StatusNotAcceptable, Reason: metav1.StatusReason("NotAcceptable"), Message: e.Error(), } } // IsNotMarshalable checks the type of error, returns a boolean true if error is not nil and not marshalable false otherwise func IsNotMarshalable(err error) bool { _, ok := err.(errNotMarshalable) return err != nil && ok }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 13:38:23 UTC 2022 - 17.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go
} err1 := fmt.Errorf("a test error") testCases := []struct { obj runtime.Object data []byte errFn func(error) bool }{ { obj: &testObject{}, errFn: protobuf.IsNotMarshalable, }, { obj: obj1, data: wire1, }, { obj: &testMarshalable{testObject: obj1.testObject, err: err1}, errFn: func(err error) bool { return err == err1 }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 8.9K bytes - Viewed (0)