Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for validateTransitionTier (0.15 sec)

  1. cmd/bucket-lifecycle-handlers.go

    	if err = bucketLifecycle.Validate(rcfg); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Validate the transition storage ARNs
    	if err = validateTransitionTier(bucketLifecycle); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Create a map of updated set of rules in request
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle_test.go

    	for i, tc := range testCases {
    		lc, err := lifecycle.ParseLifecycleConfig(bytes.NewReader(tc.xml))
    		if err != nil {
    			t.Fatalf("Test %d: Failed to parse lifecycle config %v", i+1, err)
    		}
    
    		err = validateTransitionTier(lc)
    		if err != tc.expectedErr {
    			t.Fatalf("Test %d: Expected %v but got %v", i+1, tc.expectedErr, err)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  3. cmd/admin-bucket-handlers.go

    			if err = bucketLifecycle.Validate(rcfg); err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			// Validate the transition storage ARNs
    			if err = validateTransitionTier(bucketLifecycle); err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    				continue
    			}
    
    			configData, err := xml.Marshal(bucketLifecycle)
    			if err != nil {
    				rpt.SetStatus(bucket, fileName, err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle.go

    		t.numWorkers++
    	}
    
    	for t.numWorkers > n {
    		go func() { t.killCh <- struct{}{} }()
    		t.numWorkers--
    	}
    }
    
    var errInvalidStorageClass = errors.New("invalid storage class")
    
    func validateTransitionTier(lc *lifecycle.Lifecycle) error {
    	for _, rule := range lc.Rules {
    		if rule.Transition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.Transition.StorageClass); !valid {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
Back to top