Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsDaysNull (0.05 sec)

  1. internal/bucket/lifecycle/expiration.go

    	// DeleteMarker cannot be specified if date or dates are specified.
    	if (!e.IsDaysNull() || !e.IsDateNull()) && e.DeleteMarker.set {
    		return errLifecycleInvalidDeleteMarker
    	}
    
    	if !e.DeleteMarker.set && !e.DeleteAll.set && e.IsDaysNull() && e.IsDateNull() {
    		return errXMLNotWellFormed
    	}
    
    	// Both expiration days and date are specified
    	if !e.IsDaysNull() && !e.IsDateNull() {
    		return errLifecycleInvalidExpiration
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Feb 21 20:28:34 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/noncurrentversion.go

    }
    
    // IsNull returns if both NoncurrentDays and NoncurrentVersions are empty
    func (n NoncurrentVersionExpiration) IsNull() bool {
    	return n.IsDaysNull() && n.NewerNoncurrentVersions == 0
    }
    
    // IsDaysNull returns true if days field is null
    func (n NoncurrentVersionExpiration) IsDaysNull() bool {
    	return n.NoncurrentDays == ExpirationDays(0)
    }
    
    // Validate returns an error with wrong value
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle.go

    		}
    		if !rule.NoncurrentVersionTransition.IsNull() {
    			return true
    		}
    		if !rule.Expiration.IsDateNull() && rule.Expiration.Date.Before(time.Now().UTC()) {
    			return true
    		}
    		if !rule.Expiration.IsDaysNull() {
    			return true
    		}
    		if rule.Expiration.DeleteMarker.val {
    			return true
    		}
    		if !rule.Transition.IsDateNull() && rule.Transition.Date.Before(time.Now().UTC()) {
    			return true
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top