Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for completedRestoreObj (0.15 sec)

  1. cmd/bucket-lifecycle_test.go

    			restoreStatus: ongoingRestoreObj(),
    			ondisk:        false,
    		},
    		{
    			// restore completed but expired
    			restoreStatus: completedRestoreObj(time.Now().Add(-time.Hour)),
    			ondisk:        false,
    		},
    		{
    			// restore completed
    			restoreStatus: completedRestoreObj(time.Now().Add(time.Hour)),
    			ondisk:        true,
    		},
    	}
    
    	for i, tc := range testCases {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 31 09:57:57 UTC 2022
    - 7K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    func ongoingRestoreObj() restoreObjStatus {
    	return restoreObjStatus{
    		ongoing: true,
    	}
    }
    
    // completedRestoreObj constructs restoreObjStatus for a completed restore-object with given expiry.
    func completedRestoreObj(expiry time.Time) restoreObjStatus {
    	return restoreObjStatus{
    		ongoing: false,
    		expiry:  expiry.UTC(),
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2_test.go

    	toBeRestored[xhttp.AmzRestore] = ongoingRestoreObj().String()
    
    	restored := make(map[string]string)
    	restored[xhttp.AmzRestore] = completedRestoreObj(time.Now().UTC().Add(time.Hour)).String()
    
    	restoredExpired := make(map[string]string)
    	restoredExpired[xhttp.AmzRestore] = completedRestoreObj(time.Now().UTC().Add(-time.Hour)).String()
    
    	testCases := []struct {
    		xlmeta xlMetaV2Object
    		uses   bool
    	}{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  4. cmd/object-handlers.go

    		metadata[xhttp.AmzRestoreExpiryDays] = strconv.Itoa(rreq.Days)
    		metadata[xhttp.AmzRestoreRequestDate] = time.Now().UTC().Format(http.TimeFormat)
    		if alreadyRestored {
    			metadata[xhttp.AmzRestore] = completedRestoreObj(restoreExpiry).String()
    		} else {
    			metadata[xhttp.AmzRestore] = ongoingRestoreObj().String()
    		}
    		objInfo.UserDefined = metadata
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top