Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for RestoreExpires (0.1 sec)

  1. cmd/object-api-datatypes.go

    	// to a delete marker on an object.
    	DeleteMarker bool
    
    	// Transitioned object information
    	TransitionedObject TransitionedObject
    
    	// RestoreExpires indicates date a restored object expires
    	RestoreExpires time.Time
    
    	// RestoreOngoing indicates if a restore is in progress
    	RestoreOngoing bool
    
    	// A standard MIME type describing the format of the object.
    	ContentType string
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle.go

    		return Event{}
    	}
    
    	// Handle expiry of restored object; NB Restored Objects have expiry set on
    	// them as part of RestoreObject API. They aren't governed by lifecycle
    	// rules.
    	if !obj.RestoreExpires.IsZero() && now.After(obj.RestoreExpires) {
    		action := DeleteRestoredAction
    		if !obj.IsLatest {
    			action = DeleteRestoredVersionAction
    		}
    
    		events = append(events, Event{
    			Action: action,
    			Due:    now,
    		})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. cmd/object-api-datatypes_gen.go

    			if err != nil {
    				err = msgp.WrapError(err, "TransitionedObject")
    				return
    			}
    		case "RestoreExpires":
    			z.RestoreExpires, bts, err = msgp.ReadTimeBytes(bts)
    			if err != nil {
    				err = msgp.WrapError(err, "RestoreExpires")
    				return
    			}
    		case "RestoreOngoing":
    			z.RestoreOngoing, bts, err = msgp.ReadBoolBytes(bts)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle.go

    		IsLatest:         oi.IsLatest,
    		NumVersions:      oi.NumVersions,
    		DeleteMarker:     oi.DeleteMarker,
    		SuccessorModTime: oi.SuccessorModTime,
    		RestoreOngoing:   oi.RestoreOngoing,
    		RestoreExpires:   oi.RestoreExpires,
    		TransitionStatus: oi.TransitionedObject.Status,
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Oct 23 15:35:37 UTC 2024
    - 33.7K bytes
    - Viewed (0)
  5. cmd/erasure-metadata.go

    	restoreHdr, ok := fi.Metadata[xhttp.AmzRestore]
    	if ok {
    		if restoreStatus, err := parseRestoreObjStatus(restoreHdr); err == nil {
    			objInfo.RestoreOngoing = restoreStatus.Ongoing()
    			objInfo.RestoreExpires, _ = restoreStatus.Expiry()
    		}
    	}
    	objInfo.Checksum = fi.Checksum
    	objInfo.decryptPartsChecksums(nil)
    	objInfo.Inlined = fi.InlineData()
    	// Success.
    	return objInfo
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/object-handlers.go

    		if objInfo.RestoreOngoing && rreq.Type != SelectRestoreRequest {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrObjectRestoreAlreadyInProgress), r.URL)
    			return
    		}
    		if !objInfo.RestoreOngoing && !objInfo.RestoreExpires.IsZero() {
    			statusCode = http.StatusAccepted
    			alreadyRestored = true
    		}
    	}
    	// set or upgrade restore expiry
    	restoreExpiry := lifecycle.ExpectedExpiryTime(time.Now().UTC(), rreq.Days)
    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