Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for userDefined (0.13 sec)

  1. cmd/object-api-datatypes.go

    		ReplicationStatusInternal:  o.ReplicationStatusInternal,
    		VersionPurgeStatusInternal: o.VersionPurgeStatusInternal,
    	}
    	cinfo.UserDefined = make(map[string]string, len(o.UserDefined))
    	for k, v := range o.UserDefined {
    		cinfo.UserDefined[k] = v
    	}
    	return cinfo
    }
    
    func (o ObjectInfo) tierStats() tierStats {
    	ts := tierStats{
    		TotalSize:   uint64(o.Size),
    		NumVersions: 1,
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    		expErr:  nil,
    	},
    	{
    		info:    ObjectInfo{Size: 100, UserDefined: map[string]string{crypto.MetaAlgorithm: crypto.InsecureSealAlgorithm}},
    		request: &http.Request{Header: http.Header{xhttp.AmzServerSideEncryption: []string{xhttp.AmzEncryptionAES}}},
    		expErr:  nil,
    	},
    	{
    		info:    ObjectInfo{Size: 0, UserDefined: map[string]string{crypto.MetaAlgorithm: crypto.InsecureSealAlgorithm}},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  3. cmd/encryption-v1.go

    		for i, object := range batch {
    			if kind, ok := crypto.IsEncrypted(object.UserDefined); ok && kind == crypto.S3 && !crypto.IsMultiPart(object.UserDefined) {
    				ETag, err := etag.Parse(object.ETag)
    				if err != nil {
    					continue
    				}
    				if ETag.IsEncrypted() {
    					SSES3SinglePartObjects[i] = true
    					metadata = append(metadata, object.UserDefined)
    					buckets = append(buckets, object.Bucket)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:06:08 UTC 2024
    - 37.2K bytes
    - Viewed (0)
  4. cmd/bucket-object-lock.go

    	if objInfo.DeleteMarker {
    		return false
    	}
    
    	lhold := objectlock.GetObjectLegalHoldMeta(objInfo.UserDefined)
    	if lhold.Status.Valid() && lhold.Status == objectlock.LegalHoldOn {
    		return true
    	}
    
    	ret := objectlock.GetObjectRetentionMeta(objInfo.UserDefined)
    	if ret.Mode.Valid() && (ret.Mode == objectlock.RetCompliance || ret.Mode == objectlock.RetGovernance) {
    		t, err := objectlock.UTCNowNTP()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  5. cmd/post-policy-fan-out.go

    					errs[idx] = err
    				}
    			}()
    
    			userDefined := make(map[string]string, len(req.UserMetadata))
    			for k, v := range req.UserMetadata {
    				userDefined[k] = v
    			}
    			userDefined[xhttp.AmzObjectTagging] = s3utils.TagEncode(req.UserTags)
    
    			if opts.Kind != nil {
    				encrd, objectEncryptionKey, err := newEncryptReader(ctx, hr, opts.Kind, opts.KeyID, opts.Key, bucket, req.Key, userDefined, opts.KmsCtx)
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes_gen.go

    					return
    				}
    			}
    		case "UserDefined":
    			var zb0003 uint32
    			zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "UserDefined")
    				return
    			}
    			if z.UserDefined == nil {
    				z.UserDefined = make(map[string]string, zb0003)
    			} else if len(z.UserDefined) > 0 {
    				for key := range z.UserDefined {
    					delete(z.UserDefined, key)
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  7. cmd/event-notification.go

    		newEvent.S3.Object.Size = args.Object.Size
    		newEvent.S3.Object.ContentType = args.Object.ContentType
    		newEvent.S3.Object.UserMetadata = make(map[string]string, len(args.Object.UserDefined))
    		for k, v := range args.Object.UserDefined {
    			if stringsHasPrefixFold(strings.ToLower(k), ReservedMetadataPrefixLower) {
    				continue
    			}
    			newEvent.S3.Object.UserMetadata[k] = v
    		}
    	}
    
    	return newEvent
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. cmd/object-handlers.go

    				if err != nil || (err == nil && !ondiskTimestamp.After(srcTimestamp)) {
    					srcInfo.UserDefined[ReservedMetadataPrefixLower+TaggingTimestamp] = srcTimestamp.UTC().Format(time.RFC3339Nano)
    					srcInfo.UserDefined[xhttp.AmzObjectTagging] = objTags
    				}
    			}
    		} else {
    			srcInfo.UserDefined[xhttp.AmzObjectTagging] = objTags
    			srcInfo.UserDefined[ReservedMetadataPrefixLower+TaggingTimestamp] = UTCNow().Format(time.RFC3339Nano)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  9. cmd/bucket-replication_test.go

    				Size:                      100,
    				ReplicationStatusInternal: "arn1:PENDING;",
    				ReplicationStatus:         replication.Pending,
    				VersionID:                 "a3348c34-c352-4498-82f0-1098e8b34df9",
    				UserDefined:               map[string]string{xhttp.MinIOReplicationResetStatus: fmt.Sprintf("%s;abc", UTCNow().AddDate(0, -1, 0).String())},
    			},
    			expectedSync: true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 16 09:28:06 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    	if userDefined["content-type"] == "" {
    		userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object))
    	}
    
    	// if storageClass is standard no need to save it as part of metadata.
    	if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD {
    		delete(userDefined, xhttp.AmzStorageClass)
    	}
    
    	// Fill all the necessary metadata.
    	// Update `xl.meta` content on each disks.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top