- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 250 for marshal (0.11 sec)
-
cmd/format-erasure.go
} func saveFormatErasure(disk StorageAPI, format *formatErasureV3, healID string) error { if disk == nil || format == nil { return errDiskNotFound } // Marshal and write to disk. formatData, err := json.Marshal(format) if err != nil { return err } tmpFormat := mustGetUUID() // Purge any existing temporary file, okay to ignore errors here.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.2K bytes - Viewed (0) -
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 Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Apr 15 08:25:46 UTC 2024 - 12.9K bytes - Viewed (0) -
cmd/bucket-replication-handlers.go
} // Validate the received bucket replication config if err = replicationConfig.Validate(bucket, sameTarget); err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } configData, err := xml.Marshal(replicationConfig) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketReplicationConfig, configData); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 15 12:04:40 UTC 2024 - 23.3K bytes - Viewed (0) -
cmd/bucket-policy.go
} data, err := json.Marshal(bucketPolicy) if err != nil { // This should not happen because bucketPolicy is valid to convert to JSON data. return nil, err } var policyInfo miniogopolicy.BucketAccessPolicy json := jsoniter.ConfigCompatibleWithStandardLibrary if err = json.Unmarshal(data, &policyInfo); err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8K bytes - Viewed (0) -
internal/config/lambda/event/targetid.go
} // MarshalJSON - encodes to JSON data. func (tid TargetID) MarshalJSON() ([]byte, error) { return json.Marshal(tid.String()) } // UnmarshalJSON - decodes JSON data. func (tid *TargetID) UnmarshalJSON(data []byte) error { var s string if err := json.Unmarshal(data, &s); err != nil { return err } targetID, err := parseTargetID(s) if err != nil { return err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Mar 07 16:12:41 UTC 2023 - 1.8K bytes - Viewed (0) -
cmd/bucket-encryption-handlers.go
writeErrorResponse(ctx, w, toAPIError(ctx, errKMSKeyNotFound), r.URL) return } writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } } configData, err := xml.Marshal(encConfig) if err != nil { writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } // Store the bucket encryption configuration in the object layer
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 6.4K bytes - Viewed (0) -
istioctl/pkg/util/configdump/wrapper.go
return msg.ProtoReflect().Type(), nil } return typ, nil } // Wrapper is a wrapper around the Envoy ConfigDump // It has extra helper functions for handling any/struct/marshal protobuf pain type Wrapper struct { *admin.ConfigDump } // UnmarshalJSON is a custom unmarshaller to handle protobuf pain func (w *Wrapper) UnmarshalJSON(b []byte) error { cd := &admin.ConfigDump{}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 1.8K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
plugin, ok := rawPlugin.(map[string]any) if !ok { err = fmt.Errorf("error reading plugin from CNI config plugin list") return } return } // Marshal the CNI config map and append a new line func MarshalCNIConfig(cniConfigMap map[string]any) ([]byte, error) { cniConfig, err := json.MarshalIndent(cniConfigMap, "", " ") if err != nil { return nil, err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
cmd/sftp-server.go
key2, _, _, _, err := ssh.ParseAuthorizedKey([]byte(attribValue[0])) if err != nil { return nil, errSFTPPublicKeyBadFormat } if subtle.ConstantTimeCompare(key2.Marshal(), key.Marshal()) != 1 { return nil, errAuthentication } } claims[ldapAttribPrefix+attribKey] = attribValue[0] } expiryDur, err := globalIAMSys.LDAPConfig.GetExpiryDuration("") if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 20 20:00:29 UTC 2024 - 16K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver.go
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 29 16:08:35 UTC 2024 - 13.2K bytes - Viewed (0)