Skip to main content

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

NameTypeDescription
expiresAttime.TimeThe timestamp when the reservation will expire.
heartbeatIntervaltime.DurationThe duration between heartbeats to keep the reservation active.
ownerIDstringThe identifier of the owner of this reservation.
statuscore.CatalogReservation_StatusThe initial status of the reservation.

Returns

TypeDescription
ReservationEntryA new ReservationEntry object initialized with the provided details.