Liking cljdoc? Tell your friends :D

vault.lease

Storage logic for Vault secrets and their associated leases.

Storage logic for Vault secrets and their associated leases.
raw docstring

auth-leaseclj

(auth-lease auth)

Adds extra fields and sanitizes an authentication lease.

Adds extra fields and sanitizes an authentication lease.
raw docstring

expired?clj

(expired? lease)

Determines whether the lease has expired.

Determines whether the lease has expired.
raw docstring

expires-within?clj

(expires-within? lease duration)

Determines whether the lease expires within the given number of seconds.

Determines whether the lease expires within the given number of seconds.
raw docstring

lease-watcherclj

(lease-watcher path watch-fn)

Constructs a watch function which will call the given function with the secret info at a given path when the lease changes.

Constructs a watch function which will call the given function with the
secret info at a given path when the lease changes.
raw docstring

leased?clj

(leased? secret)

Determines whether the secret is leased.

Determines whether the secret is leased.
raw docstring

list-leasesclj

(list-leases store)

Returns a list of lease information currently stored.

Returns a list of lease information currently stored.
raw docstring

lookupclj

(lookup store path-or-id)

Looks up the given secret path in the store by path or lease-id. Returns the lease data, if present.

Looks up the given secret path in the store by path or lease-id. Returns the
lease data, if present.
raw docstring

new-storeclj

(new-store)

Creates a new stateful store for leased secrets.

This takes the form of a reference map of secret paths to lease data, including the secret data and any registered callbacks.

Creates a new stateful store for leased secrets.

This takes the form of a reference map of secret paths to lease data,
including the secret data and any registered callbacks.
raw docstring

remove-lease!clj

(remove-lease! store lease-id)

Removes a lease from the store by id.

Removes a lease from the store by id.
raw docstring

remove-path!clj

(remove-path! store path)

Removes a lease from the store by path.

Removes a lease from the store by path.
raw docstring

renewable-leasesclj

(renewable-leases store window)

Returns a sequence of leases which are within window seconds of expiring, are renewable, and are marked for renewal.

Returns a sequence of leases which are within `window` seconds of expiring,
are renewable, and are marked for renewal.
raw docstring

renewable?clj

(renewable? secret)

Determines whether a leased lease is renewable.

Determines whether a leased lease is renewable.
raw docstring

rotatable-leasesclj

(rotatable-leases store window)

Returns a sequence of leases which are within window seconds of expiring, are not renewable, and are marked for rotation.

Returns a sequence of leases which are within `window` seconds of expiring,
are not renewable, and are marked for rotation.
raw docstring

secret-leaseclj

(secret-lease info)

Adds extra fields and cleans up the secret lease info.

Adds extra fields and cleans up the secret lease info.
raw docstring

sweep!clj

(sweep! store)

Removes expired leases from the store.

Removes expired leases from the store.
raw docstring

update!clj

(update! store info)

Updates secret lease information in the store.

Updates secret lease information in the store.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close