Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NoncurrentDays (0.12 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

                                  <NoncurrentVersionExpiration>
                                    <NoncurrentDays>60</NoncurrentDays>
                                  </NoncurrentVersionExpiration>
    	                      <NoncurrentVersionTransition>
                                    <StorageClass>WARM-1</StorageClass>
                                    <NoncurrentDays>30</NoncurrentDays>
                                  </NoncurrentVersionTransition>
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. internal/bucket/lifecycle/lifecycle.go

    			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)
  5. 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)
  6. 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)
  7. docs/bucket/replication/setup_ilm_expiry_replication.sh

    noncurrentDays=$(./mc ilm rule list siteb/bucket --json | jq '.config.Rules[0].NoncurrentVersionExpiration.NoncurrentDays')
    if [ $expDays -ne 3 ]; then
    	echo "BUG: Incorrect expiry days '${expDays}' set for 'siteb'"
    	exit 1
    fi
    if [ $noncurrentDays -ne 2 ]; then
    	echo "BUG: Incorrect non current expiry days '${noncurrentDays}' set for siteb"
    	exit 1
    fi
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  8. 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)
  9. cmd/data-scanner.go

    			// subsequent lifecycle policy applications
    			objectInfos = append(objectInfos, obj)
    			continue
    		}
    
    		// NoncurrentDays not passed yet.
    		if time.Now().UTC().Before(lifecycle.ExpectedExpiryTime(obj.SuccessorModTime, event.NoncurrentDays)) {
    			// add this version back to remaining versions for
    			// subsequent lifecycle policy applications
    			objectInfos = append(objectInfos, obj)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top