Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for validateTransitionTier (0.12 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/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)
  3. 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