NewReservationEntry
Creates a new ReservationEntry populated with the specified parameters.
def NewReservationEntry(
expiresAt: time.Time,
heartbeatInterval: time.Duration,
ownerID: string,
status: core.CatalogReservation_Status
) - > ReservationEntry
Creates a new ReservationEntry populated with the specified parameters.
Parameters
| Name | Type | Description |
|---|---|---|
| expiresAt | time.Time | The timestamp when the reservation will expire. |
| heartbeatInterval | time.Duration | The duration between heartbeats to keep the reservation active. |
| ownerID | string | The identifier of the owner of this reservation. |
| status | core.CatalogReservation_Status | The initial status of the reservation. |
Returns
| Type | Description |
|---|---|
ReservationEntry | A new ReservationEntry object initialized with the provided details. |