Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsDateNull (0.2 sec)

  1. internal/bucket/lifecycle/transition.go

    func (t Transition) Validate() error {
    	if !t.set {
    		return nil
    	}
    
    	if !t.IsDateNull() && t.Days > 0 {
    		return errTransitionInvalid
    	}
    
    	if t.StorageClass == "" {
    		return errXMLNotWellFormed
    	}
    	return nil
    }
    
    // IsDateNull returns true if date field is null
    func (t Transition) IsDateNull() bool {
    	return t.Date.Time.IsZero()
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
Back to top