- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for NewerNoncurrentVersions (0.12 sec)
-
internal/bucket/lifecycle/lifecycle.go
if rule.NoncurrentVersionExpiration.NewerNoncurrentVersions == 0 { continue } return Event{ Action: DeleteVersionAction, RuleID: rule.ID, NoncurrentDays: int(rule.NoncurrentVersionExpiration.NoncurrentDays), NewerNoncurrentVersions: rule.NoncurrentVersionExpiration.NewerNoncurrentVersions, } } return Event{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 17.9K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle_test.go
versionID: uuid.New().String(), }, // Lifecycle rules with NewerNoncurrentVersions specified must return NoneAction. { inputConfig: `<LifecycleConfiguration><Rule><Filter><Prefix>foodir/</Prefix></Filter><Status>Enabled</Status><NoncurrentVersionExpiration><NewerNoncurrentVersions>5</NewerNoncurrentVersions></NoncurrentVersionExpiration></Rule></LifecycleConfiguration>`, objectName: "foodir/fooobject",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu May 23 01:12:48 UTC 2024 - 55.1K bytes - Viewed (0) -
cmd/bucket-lifecycle-audit.go
// rule with Transition/NoncurrentVersionTransition in effect if event.StorageClass != "" { tags[ilmTier] = event.StorageClass } // rule with NewernoncurrentVersions in effect if event.NewerNoncurrentVersions > 0 { tags[ilmNewerNoncurrentVersions] = strconv.Itoa(event.NewerNoncurrentVersions) } if event.NoncurrentDays > 0 { tags[ilmNoncurrentDays] = strconv.Itoa(event.NoncurrentDays) } return tags }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 2.6K bytes - Viewed (0) -
docs/bucket/lifecycle/README.md
``` ### 3.2 Automatic removal of noncurrent versions keeping only most recent ones after noncurrent days It is possible to configure automatic removal of older noncurrent versions keeping only the most recent `N` using `NewerNoncurrentVersions`. e.g, To remove noncurrent versions of all objects keeping the most recent 5 noncurrent versions under the prefix `user-uploads/` 30 days after they become noncurrent , ``` { "Rules": [ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 09 01:45:38 UTC 2024 - 9K bytes - Viewed (0) -
cmd/xl-storage-format-utils.go
// // if inclFreeVersions is true all the versions are in fivs.Versions, free and non-free versions alike. // // Note: Only the scanner requires fivs.Versions to have exclusively non-free versions. This is used while enforcing NewerNoncurrentVersions lifecycle element. func getFileInfoVersions(xlMetaBuf []byte, volume, path string, inclFreeVersions bool) (FileInfoVersions, error) { fivs, err := getAllFileInfoVersions(xlMetaBuf, volume, path, true) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/data-scanner_test.go
} } }() lc := lifecycle.Lifecycle{ Rules: []lifecycle.Rule{ { ID: "max-versions", Status: "Enabled", NoncurrentVersionExpiration: lifecycle.NoncurrentVersionExpiration{ NewerNoncurrentVersions: 1, }, }, }, } lcXML, err := xml.Marshal(lc) if err != nil { t.Fatalf("Failed to marshal lifecycle config: %v", err) } vcfg := versioning.Versioning{ Status: "Enabled", }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 03 11:18:58 UTC 2024 - 6.9K bytes - Viewed (0) -
cmd/bucket-lifecycle.go
} select { case <-GlobalContext.Done(): case wrkr <- task: default: es.stats.missedExpiryTasks.Add(1) } } // enqueueByNewerNoncurrent enqueues object versions expired by // NewerNoncurrentVersions limit for expiry. func (es *expiryState) enqueueByNewerNoncurrent(bucket string, versions []ObjectToDelete, lcEvent lifecycle.Event) { if len(versions) == 0 { return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Oct 23 15:35:37 UTC 2024 - 33.7K bytes - Viewed (0) -
cmd/object-handlers-common.go
oi := ObjectInfo{ Bucket: bucket, Name: dobj.ObjectName, VersionID: dobj.VersionID, } traceFn := globalLifecycleSys.trace(oi) // Note: NewerNoncurrentVersions action is performed only scanner today tags := newLifecycleAuditEvent(lcEventSrc_Scanner, lcEvent).Tags() // Send audit for the lifecycle delete operation auditLogLifecycle( ctx, oi,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 03 06:33:53 UTC 2024 - 15.3K bytes - Viewed (0) -
cmd/data-scanner.go
} } applyLifecycleAction(lcEvt, lcEventSrc_Scanner, oi) return lcEvt.Action, size } // applyNewerNoncurrentVersionLimit removes noncurrent versions older than the most recent NewerNoncurrentVersions configured. // Note: This function doesn't update sizeSummary since it always removes versions that it doesn't return.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 22 21:10:34 UTC 2024 - 48.4K bytes - Viewed (0)