Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for day0 (0.16 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    			objectName:     "foxdir/fooobject",
    			objectModTime:  time.Now().UTC().Add(-10 * 24 * time.Hour), // Created 10 days ago
    			expectedAction: NoneAction,
    		},
    		// Should remove (test Days)
    		{
    			inputConfig:    `<LifecycleConfiguration><Rule><Filter><Prefix>foodir/</Prefix></Filter><Status>Enabled</Status><Expiration><Days>5</Days></Expiration></Rule></LifecycleConfiguration>`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle.go

    // modification time plus the number of transition/restore days.
    //
    //	e.g. If the object modtime is `Thu May 21 13:42:50 GMT 2020` and the object should
    //	    transition in 1 day, then the expected transition time is `Fri, 23 May 2020 00:00:00 GMT`
    func ExpectedExpiryTime(modTime time.Time, days int) time.Time {
    	if days == 0 {
    		return modTime
    	}
    	t := modTime.UTC().Add(time.Duration(days+1) * 24 * time.Hour)
    	return t.Truncate(24 * time.Hour)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/rule_test.go

    				<Expiration>
    					<Days>365</Days>
    				</Expiration>
                                <Status>Enabled</Status>
    	                    </Rule>`,
    			expectedErr: errXMLNotWellFormed,
    		},
    		{
    			inputXML: `<Rule>
    				<ID>Rule with a tag and DelMarkerExpiration</ID>
    				<Filter><Tag><Key>k1</Key><Value>v1</Value></Tag></Filter>
    				<DelMarkerExpiration>
    					<Days>365</Days>
    				</DelMarkerExpiration>
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/delmarker-expiration.go

    import (
    	"encoding/xml"
    	"time"
    )
    
    var errInvalidDaysDelMarkerExpiration = Errorf("Days must be a positive integer with DelMarkerExpiration")
    
    // DelMarkerExpiration used to xml encode/decode ILM action by the same name
    type DelMarkerExpiration struct {
    	XMLName xml.Name `xml:"DelMarkerExpiration"`
    	Days    int      `xml:"Days,omitempty"`
    }
    
    // Empty returns if a DelMarkerExpiration XML element is empty.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/delmarker-expiration_test.go

    )
    
    func TestDelMarkerExpParseAndValidate(t *testing.T) {
    	tests := []struct {
    		xml string
    		err error
    	}{
    		{
    			xml: `<DelMarkerExpiration> <Days> 1 </Days> </DelMarkerExpiration>`,
    			err: nil,
    		},
    		{
    			xml: `<DelMarkerExpiration> <Days> -1 </Days> </DelMarkerExpiration>`,
    			err: errInvalidDaysDelMarkerExpiration,
    		},
    	}
    
    	for i, test := range tests {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  6. cmd/data-scanner_test.go

    		IsLatest:     true,
    		DeleteMarker: true,
    		NumVersions:  4,
    	}
    	deleteAllILM := `<LifecycleConfiguration>
    			    <Rule>
    		               <Expiration>
    		                  <Days>30</Days>
    	                          <ExpiredObjectAllVersions>true</ExpiredObjectAllVersions>
    	                       </Expiration>
    	                       <Filter></Filter>
    	                       <Status>Enabled</Status>
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  7. .github/workflows/scorecard.yml

          - name: "Upload artifact"
            uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
            with:
              name: SARIF file
              path: results.sarif
              retention-days: 5
    
          # Upload the results to GitHub's code scanning dashboard.
          - name: "Upload to code-scanning"
            uses: github/codeql-action/upload-sarif@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
            with:
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 29 23:37:56 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    		{testBuckets[3], "A/B", "contentstring", nil},
    		{testBuckets[4], "file1/receipt.json", "content", nil},
    		{testBuckets[4], "file1/guidSplunk-aaaa/file", "content", nil},
    		{testBuckets[5], "dir/day_id=2017-10-10/issue", "content", nil},
    		{testBuckets[5], "dir/day_id=2017-10-11/issue", "content", nil},
    		{testBuckets[5], "foo/201910/1122", "content", nil},
    		{testBuckets[5], "foo/201910/1112", "content", nil},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  9. docs/pl/docs/index.md

    {% endif %}
    
    <!-- /sponsors -->
    
    <a href="https://fastapi.tiangolo.com/fastapi-people/#sponsors" class="external-link" target="_blank">Inni sponsorzy</a>
    
    ## Opinie
    
    "_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  10. docs/en/docs/index.md

    {% endif %}
    
    <!-- /sponsors -->
    
    <a href="https://fastapi.tiangolo.com/fastapi-people/#sponsors" class="external-link" target="_blank">Other sponsors</a>
    
    ## Opinions
    
    "_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top