Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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