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.
sourceraw docstring

expired?clj

(expired? lease)

Determines whether the lease has expired.

Determines whether the lease has expired.
sourceraw 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.
sourceraw 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.
sourceraw docstring

leased?clj

(leased? secret)

Determines whether the secret is leased.

Determines whether the secret is leased.
sourceraw docstring

list-leasesclj

(list-leases store)

Returns a list of lease information currently stored.

Returns a list of lease information currently stored.
sourceraw 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.
sourceraw 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.
sourceraw 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.
sourceraw docstring

remove-path!clj

(remove-path! store path)

Removes a lease from the store by path.

Removes a lease from the store by path.
sourceraw 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.
sourceraw docstring

renewable?clj

(renewable? secret)

Determines whether a leased lease is renewable.

Determines whether a leased lease is renewable.
sourceraw 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.
sourceraw 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.
sourceraw docstring

sweep!clj

(sweep! store)

Removes expired leases from the store.

Removes expired leases from the store.
sourceraw docstring

update!clj

(update! store info)

Updates secret lease information in the store.

Updates secret lease information in the store.
sourceraw docstring

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

× close