- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for IsDateNull (0.1 seconds)
-
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.IsZero() }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 5.1K bytes - Click Count (0) -
internal/bucket/lifecycle/expiration.go
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 }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Mar 30 00:56:02 GMT 2025 - 6.6K bytes - Click Count (0)