Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NextDue (0.21 sec)

  1. 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() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  2. 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
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 14 17:41:44 GMT 2021
    - 5.3K bytes
    - Viewed (1)
  3. internal/bucket/lifecycle/lifecycle.go

    				// https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions
    				if due, ok := rule.NoncurrentVersionTransition.NextDue(obj); ok && (now.IsZero() || now.After(due)) {
    					events = append(events, Event{
    						Action:       TransitionVersionAction,
    						RuleID:       rule.ID,
    						Due:          due,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  4. 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)) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 45.6K bytes
    - Viewed (0)
Back to top