Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for extractETag (0.14 sec)

  1. cmd/erasure-metadata.go

    	}
    
    	if exp, ok := fi.Metadata["expires"]; ok {
    		if t, err := amztime.ParseHeader(exp); err == nil {
    			objInfo.Expires = t.UTC()
    		}
    	}
    
    	// Extract etag from metadata.
    	objInfo.ETag = extractETag(fi.Metadata)
    
    	// Add user tags to the object info
    	tags := fi.Metadata[xhttp.AmzObjectTagging]
    	if len(tags) != 0 {
    		objInfo.UserTags = tags
    	}
    
    	// Add replication status to the object info
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    	for k, v := range metadata {
    		if slices.Contains(keyNames, k) {
    			continue
    		}
    		newMeta[k] = v
    	}
    	return newMeta
    }
    
    // Extracts etag value from the metadata.
    func extractETag(metadata map[string]string) string {
    	etag, ok := metadata["etag"]
    	if !ok {
    		// md5Sum tag is kept for backward compatibility.
    		etag = metadata["md5Sum"]
    	}
    	// Success.
    	return etag
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top