Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NextDue (0.09 sec)

  1. internal/bucket/lifecycle/noncurrentversion.go

    	if !n.set {
    		return nil
    	}
    	if n.StorageClass == "" {
    		return errXMLNotWellFormed
    	}
    	return nil
    }
    
    // NextDue returns upcoming NoncurrentVersionTransition date for obj if
    // applicable, returns false otherwise.
    func (n NoncurrentVersionTransition) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if obj.IsLatest || n.StorageClass == "" {
    		return time.Time{}, false
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/delmarker-expiration.go

    	if de.Empty() {
    		return nil
    	}
    
    	type delMarkerExpiration DelMarkerExpiration
    	return enc.EncodeElement(delMarkerExpiration(de), start)
    }
    
    // NextDue returns upcoming DelMarkerExpiration date for obj if
    // applicable, returns false otherwise.
    func (de DelMarkerExpiration) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if !obj.IsLatest || !obj.DeleteMarker {
    		return time.Time{}, false
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/transition.go

    }
    
    // IsNull returns true if both date and days fields are null
    func (t Transition) IsNull() bool {
    	return t.StorageClass == ""
    }
    
    // NextDue returns upcoming transition date for obj and true if applicable,
    // returns false otherwise.
    func (t Transition) NextDue(obj ObjectOpts) (time.Time, bool) {
    	if !obj.IsLatest || t.IsNull() {
    		return time.Time{}, false
    	}
    
    	if !t.IsDateNull() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jan 10 17:07:49 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/lifecycle.go

    					break
    				}
    			}
    		}
    
    		// DelMarkerExpiration
    		if obj.IsLatest && obj.DeleteMarker && !rule.DelMarkerExpiration.Empty() {
    			if due, ok := rule.DelMarkerExpiration.NextDue(obj); ok && (now.IsZero() || now.After(due)) {
    				events = append(events, Event{
    					Action: DelMarkerDeleteAllVersionsAction,
    					RuleID: rule.ID,
    					Due:    due,
    				})
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/lifecycle_test.go

    			}
    
    			if tc.obj.IsLatest {
    				if expectedDue, _ := lc.Rules[tc.transRuleID].Transition.NextDue(tc.obj); !strings.Contains(transHdrs[0], expectedDue.Format(http.TimeFormat)) {
    					t.Fatalf("Test %d: Expected transition time %s", i+1, expectedDue)
    				}
    			} else {
    				if expectedDue, _ := lc.Rules[tc.transRuleID].NoncurrentVersionTransition.NextDue(tc.obj); !strings.Contains(transHdrs[0], expectedDue.Format(http.TimeFormat)) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
Back to top