Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NoncurrentDays (0.09 sec)

  1. internal/bucket/lifecycle/noncurrentversion.go

    	}
    	*n = NoncurrentVersionExpiration{
    		XMLName:                 val.XMLName,
    		NoncurrentDays:          val.NoncurrentDays,
    		NewerNoncurrentVersions: val.NewerNoncurrentVersions,
    	}
    	n.set = true
    	return nil
    }
    
    // IsNull returns if both NoncurrentDays and NoncurrentVersions are empty
    func (n NoncurrentVersionExpiration) IsNull() bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 5.3K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/noncurrentversion_test.go

    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: 2,
    				set:                     true,
    			},
    			err: nil,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays: -1,
    				set:            true,
    			},
    			err: errXMLNotWellFormed,
    		},
    		{
    			n: NoncurrentVersionExpiration{
    				NoncurrentDays:          90,
    				NewerNoncurrentVersions: -2,
    				set:                     true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 14 17:41:44 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/transition_test.go

    			t.Fatalf("%d: Invalid transition %v: err %v", i+1, tr, err)
    		}
    	}
    
    	ntrTests := []struct {
    		input string
    		err   error
    	}{
    		{
    			input: `<NoncurrentVersionTransition>
    			<NoncurrentDays>0</NoncurrentDays>
    			<StorageClass>S3TIER-1</StorageClass>
    		  </NoncurrentVersionTransition>`,
    			err: nil,
    		},
    		{
    			input: `<NoncurrentVersionTransition>
    			<Days>1</Days>
    		  </NoncurrentVersionTransition>`,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 01 18:58:17 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-audit.go

    	// 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
    }
    
    func newLifecycleAuditEvent(src lcEventSrc, event lifecycle.Event) lcAuditEvent {
    	return lcAuditEvent{
    		Event:  event,
    		source: src,
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. docs/bucket/lifecycle/README.md

            {
                "ID": "Removing all old versions",
                "Filter": {
                    "Prefix": "users-uploads/"
                },
                "NoncurrentVersionExpiration": {
                    "NoncurrentDays": 365
                },
                "Status": "Enabled"
            }
        ]
    }
    ```
    
    This JSON rule is equivalent to the following MinIO Client command:
    ```
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 09 01:45:38 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top