Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for HasActiveRules (0.19 sec)

  1. cmd/data-scanner.go

    		// If there are lifecycle rules for the prefix.
    		_, prefix := path2BucketObjectWithBasePath(f.root, folder.name)
    		var activeLifeCycle *lifecycle.Lifecycle
    		if f.oldCache.Info.lifeCycle != nil && f.oldCache.Info.lifeCycle.HasActiveRules(prefix) {
    			if f.dataUsageScannerDebug {
    				console.Debugf(scannerLogPrefix+" Prefix %q has active rules\n", prefix)
    			}
    			activeLifeCycle = f.oldCache.Info.lifeCycle
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		lc, err = globalLifecycleSys.Get(cache.Info.Name)
    		if err == nil && lc.HasActiveRules("") {
    			cache.Info.lifeCycle = lc
    		}
    	}
    
    	// Check if the current bucket has replication configuration
    	if rcfg, _, err := globalBucketMetadataSys.GetReplicationConfig(ctx, cache.Info.Name); err == nil {
    		if rcfg.HasActiveRules("", true) {
    			tgts, err := globalBucketTargetSys.ListBucketTargets(ctx, cache.Info.Name)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    			case err != nil:
    				if _, ok := err.(BucketReplicationConfigNotFound); !ok {
    					writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
    					return
    				}
    			case rcfg != nil && rcfg.HasActiveRules("", true):
    				writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
    				return
    			}
    		}
    	}
    
    	// Return an error if the bucket does not exist
    	if !forceDelete {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  4. cmd/bucket-replication.go

    	c, err := getReplicationConfig(ctx, bucket)
    	if err != nil || c == nil {
    		replLogOnceIf(ctx, err, bucket)
    		return false
    	}
    	for _, obj := range objects {
    		if c.HasActiveRules(obj.ObjectName, true) {
    			return true
    		}
    	}
    	return false
    }
    
    // isStandardHeader returns true if header is a supported header and not a custom header
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
Back to top