@grow-codes/hashicorp-vault - v0.1.1
    Preparing search index...

    Interface ManageLeaseOptions

    Options of manage().

    interface ManageLeaseOptions {
        incrementMs?: number;
        minDelayMs?: number;
        onError?: (error: unknown) => void;
        onExpire?: () => void;
        onRenew?: (renewal: LeaseRenewal) => void;
        renewFraction?: number;
        revokeOnStop?: boolean;
        scheduler?: Scheduler;
    }

    Hierarchy (View Summary)

    Index
    incrementMs?: number

    Requested TTL for each renewal in ms. Default: the server's default for the token/lease. A renewal that grants less than the requested TTL (or less than the initial TTL when no increment is set) means the maximum TTL was reached.

    minDelayMs?: number

    Shortest delay between two attempts in ms (default 500).

    onError?: (error: unknown) => void

    Called with every failed attempt. Renewal goes on while time is left.

    onExpire?: () => void

    Called exactly once when the token/lease expires and cannot be renewed any more.

    onRenew?: (renewal: LeaseRenewal) => void

    Called after every renewal.

    renewFraction?: number

    Renew after this fraction of the TTL has passed (default 2/3).

    revokeOnStop?: boolean

    Revoke the lease when the handle is stopped or the client closes (default false).

    scheduler?: Scheduler

    Clock and timers (tests).