Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for retainVersions (0.07 sec)

  1. cmd/batch-expire_test.go

            greaterThan: 1MiB # match objects with size greater than this value (e.g. 1MiB)
          purge:
              # retainVersions: 0 # (default) delete all versions of the object. This option is the fastest.
              # retainVersions: 5 # keep the latest 5 versions of the object.
      
        - type: deleted # objects with delete marker as their latest version
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/evaluator_test.go

    import (
    	"fmt"
    	"testing"
    	"time"
    
    	"github.com/google/uuid"
    )
    
    func TestNewerNoncurrentVersions(t *testing.T) {
    	prepLifecycleCfg := func(tagKeys []string, retainVersions []int) Lifecycle {
    		var lc Lifecycle
    		for i := range retainVersions {
    			ruleID := fmt.Sprintf("rule-%d", i)
    			tag := Tag{
    				Key:   tagKeys[i],
    				Value: "minio",
    			}
    			lc.Rules = append(lc.Rules, Rule{
    				ID:     ruleID,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Apr 08 15:41:24 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top