Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NextDue (0.11 sec)

  1. 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)
  2. 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)
  3. 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