@grow-codes/openbao - v0.1.2
    Preparing search index...

    Interface ManagedLease

    Handle of a lease kept alive by LeaseManager.manage.

    interface ManagedLease {
        expired: boolean;
        expiresAt: number;
        leaseId: string;
        running: boolean;
        stop(): Promise<void>;
    }
    Index
    expired: boolean

    Whether onExpire fired.

    expiresAt: number

    Expiry of the current lease (ms since epoch).

    leaseId: string

    Lease id (empty when the response has no lease).

    running: boolean

    Whether renewal is still active.

    • Stops renewing (and revokes when revokeOnStop). Idempotent.

      Returns Promise<void>