Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for completedRestoreObj (0.1 sec)

  1. 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)
  2. 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