Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for extractETag (0.05 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/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