minio/internal/bucket/lifecycle
Krishnan Parthasarathi 3da9ee15d3
Add MaxNoncurrentVersions to NoncurrentExpiration action (#13580)
This unit allows users to limit the maximum number of noncurrent 
versions of an object.

To enable this rule you need the following *ilm.json*
```
cat >> ilm.json <<EOF
{
    "Rules": [
        {
            "ID": "test-max-noncurrent",
            "Status": "Enabled",
            "Filter": {
                "Prefix": "user-uploads/"
            },
            "NoncurrentVersionExpiration": {
                "MaxNoncurrentVersions": 5
            }
        }
    ]
}
EOF
mc ilm import myminio/mybucket < ilm.json
```
2021-11-19 17:54:10 -08:00
..
action_string.go Add basic scanner metrics (#13317) 2021-10-02 09:31:05 -07:00
and.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
error.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
expiration.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
expiration_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
filter.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
filter_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
lifecycle.go Add MaxNoncurrentVersions to NoncurrentExpiration action (#13580) 2021-11-19 17:54:10 -08:00
lifecycle_test.go Add MaxNoncurrentVersions to NoncurrentExpiration action (#13580) 2021-11-19 17:54:10 -08:00
noncurrentversion.go Add MaxNoncurrentVersions to NoncurrentExpiration action (#13580) 2021-11-19 17:54:10 -08:00
prefix.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
rule.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
rule_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
tag.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
transition.go Add immediate inline tiering support (#13298) 2021-10-01 11:58:17 -07:00
transition_test.go Add immediate inline tiering support (#13298) 2021-10-01 11:58:17 -07:00