Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PrefixesExcluded (0.09 sec)

  1. internal/bucket/versioning/versioning.go

    			if matched := wildcard.MatchSimple(sprefix.Prefix, prefix); matched {
    				return true
    			}
    		}
    	}
    	return false
    }
    
    // PrefixesExcluded returns true if v contains one or more excluded object
    // prefixes or if ExcludeFolders is true.
    func (v Versioning) PrefixesExcluded() bool {
    	return len(v.ExcludedPrefixes) > 0 || v.ExcludeFolders
    }
    
    // ParseConfig - parses data in given reader to VersioningConfiguration.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. cmd/bucket-versioning-handler.go

    			HTTPStatusCode: http.StatusBadRequest,
    		}, r.URL)
    		return
    	}
    
    	if rcfg, _ := globalBucketObjectLockSys.Get(bucket); rcfg.LockEnabled && (v.Suspended() || v.PrefixesExcluded()) {
    		writeErrorResponse(ctx, w, APIError{
    			Code:           "InvalidBucketState",
    			Description:    "An Object Lock configuration is present on this bucket, versioning cannot be suspended.",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top