Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for extractETag (0.07 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)
  3. cmd/erasure-object.go

    		return toObjectErr(errMethodNotAllowed, bucket, object)
    	}
    	// verify that the object queued for transition is identical to that on disk.
    	if !opts.MTime.Equal(fi.ModTime) || !strings.EqualFold(opts.Transition.ETag, extractETag(fi.Metadata)) {
    		return toObjectErr(errFileNotFound, bucket, object)
    	}
    	// if object already transitioned, return
    	if fi.TransitionStatus == lifecycle.TransitionComplete {
    		return nil
    	}
    
    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