Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for userDefined (0.05 sec)

  1. cmd/post-policy-fan-out.go

    				}
    				if err := hr.Close(); err != nil {
    					errs[idx] = err
    				}
    			}()
    
    			userDefined := make(map[string]string, len(req.UserMetadata))
    			maps.Copy(userDefined, req.UserMetadata)
    
    			tgs, err := tags.NewTags(req.UserTags, true)
    			if err != nil {
    				errs[idx] = err
    				return
    			}
    
    			userDefined[xhttp.AmzObjectTagging] = tgs.String()
    
    			if opts.Kind != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. 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 Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  3. cmd/erasure-multipart-conditional_test.go

    		// With if-none-match: *, this should only succeed if object doesn't exist.
    		// Since read quorum fails, we can't determine if object exists.
    		opts := ObjectOptions{
    			UserDefined: map[string]string{
    				xhttp.IfNoneMatch: "*",
    			},
    			CheckPrecondFn: func(oi ObjectInfo) bool {
    				// Precondition fails if object exists (ETag is not empty)
    				return oi.ETag != ""
    			},
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  4. cmd/erasure-object-conditional_test.go

    		// With if-none-match: *, this should only succeed if object doesn't exist.
    		// Since read quorum fails, we can't determine if object exists.
    		opts := ObjectOptions{
    			UserDefined: map[string]string{
    				xhttp.IfNoneMatch: "*",
    			},
    			CheckPrecondFn: func(oi ObjectInfo) bool {
    				// Precondition fails if object exists (ETag is not empty)
    				return oi.ETag != ""
    			},
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 24 04:05:31 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/evaluator.go

    		return false
    	}
    
    	if obj.DeleteMarker {
    		return false
    	}
    
    	lhold := objlock.GetObjectLegalHoldMeta(obj.UserDefined)
    	if lhold.Status.Valid() && lhold.Status == objlock.LegalHoldOn {
    		return true
    	}
    
    	ret := objlock.GetObjectRetentionMeta(obj.UserDefined)
    	if ret.Mode.Valid() && (ret.Mode == objlock.RetCompliance || ret.Mode == objlock.RetGovernance) {
    		t, err := objlock.UTCNowNTP()
    		if err != nil {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Apr 08 15:41:24 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. cmd/api-headers.go

    				w.Header()[xhttp.AmzObjectTagging] = []string{objInfo.UserTags}
    			}
    		}
    	}
    
    	// Set all other user defined metadata.
    	for k, v := range objInfo.UserDefined {
    		// Empty values for object lock and retention can be skipped.
    		if v == "" && equals(k, xhttp.AmzObjectLockMode, xhttp.AmzObjectLockRetainUntilDate) {
    			continue
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top