- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 364 for unmarshalV1 (0.18 sec)
-
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_test.go
} for i, c := range cases { var result APIResource if err := utiljson.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("[%d] Failed to unmarshal input '%v': %v", i, c.input, err) } if !reflect.DeepEqual(result, c.result) { t.Errorf("[%d] Failed to unmarshal input '%v': expected %+v, got %+v", i, c.input, c.result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 20 16:49:23 UTC 2021 - 4K bytes - Viewed (0) -
internal/s3select/csv/args.go
CommentCharacter string `xml:"Comments"` AllowQuotedRecordDelimiter bool `xml:"AllowQuotedRecordDelimiter"` unmarshaled bool } // IsEmpty - returns whether reader args is empty or not. func (args *ReaderArgs) IsEmpty() bool { return !args.unmarshaled } // UnmarshalXML - decodes XML data. func (args *ReaderArgs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/duration_test.go
} for _, c := range cases { var result DurationHolder if err := yaml.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input %q: %v", c.input, err) } if result.D != c.result { t.Errorf("Failed to unmarshal input %q: expected %q, got %q", c.input, c.result, result) } } } func TestDurationMarshalJSON(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 07 18:17:32 UTC 2018 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/marshal.go
if len(data) > 1 { first = data[0] } var nw JSONSchemaPropsOrStringArray if first == '{' { var sch JSONSchemaProps if err := json.Unmarshal(data, &sch); err != nil { return err } nw.Schema = &sch } if first == '[' { if err := json.Unmarshal(data, &nw.Property); err != nil { return err } } *s = nw return nil } func (s JSONSchemaPropsOrArray) MarshalJSON() ([]byte, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 13 21:12:46 UTC 2021 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go
if err != nil { t.Fatalf("unexpected error from Marshal of original: %v", err) } var iface interface{} if err := modePair.dec.Unmarshal(cborFromOriginal, &iface); err != nil { t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface, err) } cborFromIface, err := modePair.enc.Marshal(iface) if err != nil { t.Fatalf("unexpected error from Marshal of iface: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 21:48:12 UTC 2024 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_test.go
} for _, c := range cases { var result TimeHolder if err := yaml.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) } if result.T != c.result { t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) } } } func TestTimeMarshalJSON(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 9.4K bytes - Viewed (0) -
istioctl/pkg/util/configdump/route.go
drc[i].RouteConfig.TypeUrl = v3.RouteType } sort.Slice(drc, func(i, j int) bool { r := &route.RouteConfiguration{} err = drc[i].RouteConfig.UnmarshalTo(r) if err != nil { return false } name := r.Name err = drc[j].RouteConfig.UnmarshalTo(r) if err != nil { return false } return name < r.Name }) // In Istio 1.5, it is not enough just to sort the routes. The virtual hosts
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 3.2K bytes - Viewed (0) -
istioctl/pkg/util/configdump/listener.go
dal[i].ActiveState.Listener.TypeUrl = v3.ListenerType } sort.Slice(dal, func(i, j int) bool { l := &listener.Listener{} err = dal[i].ActiveState.Listener.UnmarshalTo(l) if err != nil { return false } name := l.Name err = dal[j].ActiveState.Listener.UnmarshalTo(l) if err != nil { return false } return name < l.Name }) if stripVersions { for i := range dal {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Nov 03 08:41:32 UTC 2022 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/options_test.go
} patch := PatchOptions{} err = json.Unmarshal(b, &patch) if err != nil { t.Fatalf("failed to unmarshal UpdateOptions into PatchOptions: %v", err) } b, err = json.Marshal(patch) if err != nil { t.Fatalf("failed to marshal PatchOptions (%v): %v", err, patch) } got := UpdateOptions{} err = json.Unmarshal(b, &got) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 04 21:51:48 UTC 2019 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/marshal_test.go
} for _, c := range cases { var result JSONSchemaPropsOrBoolHolder if err := json.Unmarshal([]byte(c.input), &result); err != nil { t.Errorf("Failed to unmarshal input '%v': %v", c.input, err) } if !reflect.DeepEqual(result, c.result) { t.Errorf("Failed to unmarshal input '%v': expected %+v, got %+v", c.input, c.result, result) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 15 16:26:13 UTC 2019 - 7.1K bytes - Viewed (0)