Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ongoingRestoreObj (0.24 sec)

  1. cmd/bucket-lifecycle_test.go

    		}
    	}
    }
    
    // TestRestoreObjStatusRoundTrip restoreObjStatus roundtrip
    func TestRestoreObjStatusRoundTrip(t *testing.T) {
    	testCases := []restoreObjStatus{
    		ongoingRestoreObj(),
    		completedRestoreObj(time.Now().UTC()),
    	}
    	for i, tc := range testCases {
    		actual, err := parseRestoreObjStatus(tc.String())
    		if err != nil {
    			t.Fatalf("Test %d: parse restore object failed: %v", i+1, err)
    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

    // ongoing or completed.
    type restoreObjStatus struct {
    	ongoing bool
    	expiry  time.Time
    }
    
    // ongoingRestoreObj constructs restoreObjStatus for an ongoing restore-object.
    func ongoingRestoreObj() restoreObjStatus {
    	return restoreObjStatus{
    		ongoing: true,
    	}
    }
    
    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

    	transitioned := make(map[string][]byte)
    	transitioned[ReservedMetadataPrefixLower+TransitionStatus] = []byte(lifecycle.TransitionComplete)
    
    	toBeRestored := make(map[string]string)
    	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)
    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

    		if alreadyRestored {
    			metadata[xhttp.AmzRestore] = completedRestoreObj(restoreExpiry).String()
    		} else {
    			metadata[xhttp.AmzRestore] = ongoingRestoreObj().String()
    		}
    		objInfo.UserDefined = metadata
    		if _, err := objectAPI.CopyObject(GlobalContext, bucket, object, bucket, object, objInfo, ObjectOptions{
    			VersionID: objInfo.VersionID,
    		}, ObjectOptions{
    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