Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HasActiveRules (0.08 sec)

  1. 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)
  2. internal/bucket/lifecycle/lifecycle_test.go

    			}
    			// To ensure input lifecycle configurations are valid
    			if err := lc.Validate(lock.Retention{}); err != nil {
    				t.Fatalf("Invalid test case: %d %v", i+1, err)
    			}
    			if got := lc.HasActiveRules(tc.prefix); got != tc.want {
    				t.Fatalf("Expected result: `%v`, got: `%v`", tc.want, got)
    			}
    		})
    	}
    }
    
    func TestSetPredictionHeaders(t *testing.T) {
    	lc := Lifecycle{
    		Rules: []Rule{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K 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)
Back to top