Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for DelMarkerExpiration (0.1 sec)

  1. internal/bucket/lifecycle/delmarker-expiration_test.go

    		xml string
    		err error
    	}{
    		{
    			xml: `<DelMarkerExpiration> <Days> 1 </Days> </DelMarkerExpiration>`,
    			err: nil,
    		},
    		{
    			xml: `<DelMarkerExpiration> <Days> -1 </Days> </DelMarkerExpiration>`,
    			err: errInvalidDaysDelMarkerExpiration,
    		},
    	}
    
    	for i, test := range tests {
    		t.Run(fmt.Sprintf("TestDelMarker-%d", i), func(t *testing.T) {
    			var dexp DelMarkerExpiration
    			var fail bool
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. cmd/data-scanner_test.go

                                <Rule>
                                  <ID>DelMarkerExpiration</ID>
                                  <Filter></Filter>
                                  <Status>Enabled</Status>
                                  <DelMarkerExpiration>
                                    <Days>60</Days>
                                  </DelMarkerExpiration>
                                 </Rule>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 03 11:18:58 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/delmarker-expiration.go

    // DelMarkerExpiration used to xml encode/decode ILM action by the same name
    type DelMarkerExpiration struct {
    	XMLName xml.Name `xml:"DelMarkerExpiration"`
    	Days    int      `xml:"Days,omitempty"`
    }
    
    // Empty returns if a DelMarkerExpiration XML element is empty.
    // Used to detect if lifecycle.Rule contained a DelMarkerExpiration element.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/rule_test.go

    	                    </Rule>`,
    			expectedErr: errXMLNotWellFormed,
    		},
    		{
    			inputXML: `<Rule>
    				<ID>Rule with a tag and DelMarkerExpiration</ID>
    				<Filter><Tag><Key>k1</Key><Value>v1</Value></Tag></Filter>
    				<DelMarkerExpiration>
    					<Days>365</Days>
    				</DelMarkerExpiration>
                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: errInvalidRuleDelMarkerExpiration,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/rule.go

    	Expiration          Expiration          `xml:"Expiration,omitempty"`
    	Transition          Transition          `xml:"Transition,omitempty"`
    	DelMarkerExpiration DelMarkerExpiration `xml:"DelMarkerExpiration,omitempty"`
    	// FIXME: add a type to catch unsupported AbortIncompleteMultipartUpload AbortIncompleteMultipartUpload `xml:"AbortIncompleteMultipartUpload,omitempty"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. internal/bucket/lifecycle/lifecycle.go

    					})
    					// No other conflicting actions apply to an expired object delete marker
    					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,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    	}
    
    	// DelMarkerExpiration
    	lc = Lifecycle{
    		Rules: []Rule{
    			{
    				ID:     "delmarker-exp-20",
    				Status: "Enabled",
    				DelMarkerExpiration: DelMarkerExpiration{
    					Days: 20,
    				},
    			},
    			{
    				ID:     "delmarker-exp-10",
    				Status: "Enabled",
    				DelMarkerExpiration: DelMarkerExpiration{
    					Days: 10,
    				},
    			},
    		},
    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