Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isDirectiveReplace (0.22 sec)

  1. cmd/handler-utils.go

    	return isDirectiveCopy(v) || isDirectiveReplace(v)
    }
    
    // Check if the directive COPY is requested.
    func isDirectiveCopy(value string) bool {
    	// By default if directive is not set we
    	// treat it as 'COPY' this function returns true.
    	return value == copyDirective || value == ""
    }
    
    // Check if the directive REPLACE is requested.
    func isDirectiveReplace(value string) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    	// if encryption is enabled we do not need explicit "REPLACE" metadata to
    	// be enabled as well - this is to allow for key-rotation.
    	if !isDirectiveReplace(r.Header.Get(xhttp.AmzMetadataDirective)) && !isDirectiveReplace(r.Header.Get(xhttp.AmzTagDirective)) &&
    		srcInfo.metadataOnly && srcOpts.VersionID == "" &&
    		!crypto.Requested(r.Header) &&
    		!crypto.IsSourceEncrypted(srcInfo.UserDefined) {
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top