Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsTierValid (0.06 sec)

  1. cmd/tier.go

    }
    
    func (config *TierConfigMgr) refreshedAt() time.Time {
    	config.RLock()
    	defer config.RUnlock()
    	return config.lastRefreshedAt
    }
    
    // IsTierValid returns true if there exists a remote tier by name tierName,
    // otherwise returns false.
    func (config *TierConfigMgr) IsTierValid(tierName string) bool {
    	config.RLock()
    	defer config.RUnlock()
    	_, valid := config.isTierNameInUse(tierName)
    	return valid
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    	for _, rule := range lc.Rules {
    		if rule.Transition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.Transition.StorageClass); !valid {
    				return errInvalidStorageClass
    			}
    		}
    		if rule.NoncurrentVersionTransition.StorageClass != "" {
    			if valid := globalTierConfigMgr.IsTierValid(rule.NoncurrentVersionTransition.StorageClass); !valid {
    				return errInvalidStorageClass
    			}
    		}
    	}
    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