- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 205 for marshaled (0.19 sec)
-
cmd/format-erasure_test.go
m.Version = formatMetaVersionV1 m.Erasure.Version = formatErasureVersionV1 m.Erasure.Disk = mustGetUUID() m.Erasure.JBOD = []string{m.Erasure.Disk, mustGetUUID(), mustGetUUID(), mustGetUUID()} b, err := json.Marshal(m) if err != nil { t.Fatal(err) } if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil { t.Fatal(err) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/idempotency.go
return false, nil } oldData, err := json.Marshal(n) if err != nil { *lastError = errors.Wrapf(err, "failed to marshal unmodified node %q into JSON", n.Name) return false, *lastError } // Execute the mutating function patchFn(n) newData, err := json.Marshal(n) if err != nil { *lastError = errors.Wrapf(err, "failed to marshal modified node %q into JSON", n.Name)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 18.4K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_image_test.go
dockercfgContent, err := json.Marshal(dockerCfg) if err != nil { t.Errorf("unexpected error: %v", err) } dockerConfigJSON := map[string]map[string]map[string]string{"auths": dockerCfg} dockerConfigJSONContent, err := json.Marshal(dockerConfigJSON) if err != nil { t.Errorf("unexpected error: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 12.8K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go
t.Fatal(err) } if err := SetJSONPath(spuriousMetaMap, pth, 0, v); err != nil { t.Fatal(err) } // See if it can unmarshal to object meta spuriousJSON, err := utiljson.Marshal(spuriousMetaMap) if err != nil { t.Fatalf("error on %v=%#v: %v", pth, v, err) } expectedObjectMeta := &metav1.ObjectMeta{} if err := utiljson.Unmarshal(spuriousJSON, expectedObjectMeta); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 12.7K bytes - Viewed (0) -
src/encoding/asn1/asn1.go
// characters such as '@' and '&'. To force other encodings, use the following // tags: // // ia5 causes strings to be unmarshaled as ASN.1 IA5String values // numeric causes strings to be unmarshaled as ASN.1 NumericString values // utf8 causes strings to be unmarshaled as ASN.1 UTF8String values // // If the type of the first field of a structure is RawContent then the raw
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 31.8K bytes - Viewed (0) -
cmd/kubeadm/app/discovery/token/token_test.go
kubeconfig := buildSecureBootstrapKubeConfig("127.0.0.1", []byte(caCert), "somecluster") kubeconfigBytes, err := clientcmd.Write(*kubeconfig) if err != nil { t.Fatalf("cannot marshal kubeconfig %v", err) } // Generate signature of the insecure kubeconfig sig, err := tokenjws.ComputeDetachedSignature(string(kubeconfigBytes), test.tokenID, test.tokenSecret) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 10.9K bytes - Viewed (0) -
operator/pkg/manifest/shared.go
testTree, err := yaml.Marshal(tree) if err != nil { return "", err } iops := &v1alpha1.IstioOperatorSpec{} if err := util.UnmarshalWithJSONPB(string(testTree), iops, false); err != nil { return "", fmt.Errorf("bad path=value %s: %v", kv, err) } } out, err := yaml.Marshal(tree) if err != nil { return "", err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 03 06:27:07 UTC 2024 - 19.7K bytes - Viewed (0) -
cmd/admin-handlers-site-replication.go
status, err := globalSiteReplicationSys.AddPeerClusters(ctx, sites, opts) if err != nil { adminLogIf(ctx, err) writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } body, err := json.Marshal(status) if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } writeSuccessResponseJSON(w, body) } func getSRAddOptions(r *http.Request) (opts madmin.SRAddOptions) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.4K bytes - Viewed (0) -
istioctl/pkg/workload/workload.go
iSpec, err := unstructureIstioType(spec) if err != nil { return nil, err } u.Object["spec"] = iSpec wgYAML, err := yaml.Marshal(u.Object) if err != nil { return nil, err } return wgYAML, nil } func configureCommand(ctx cli.Context) *cobra.Command { var opts clioptions.ControlPlaneOptions
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 25.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go
if customResourceDefinition == nil { return nil, fmt.Errorf("customResourceDefinition provided to Apply must not be nil") } patchOpts := opts.ToPatchOptions() data, err := json.Marshal(customResourceDefinition) if err != nil { return nil, err } name := customResourceDefinition.Name if name == nil { return nil, fmt.Errorf("customResourceDefinition.Name must be provided to Apply") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 10:52:54 UTC 2024 - 12.1K bytes - Viewed (0)