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.

auth-lease

(auth-lease auth)

Adds extra fields and sanitizes an authentication lease.

Adds extra fields and sanitizes an authentication lease.
raw docstring

expired?

(expired? lease)

Determines whether the lease has expired.

Determines whether the lease has expired.
raw docstring

expires-within?

(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-watcher

(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?

(leased? secret)

Determines whether the secret is leased.

Determines whether the secret is leased.
raw docstring

list-leases

(list-leases store)

Returns a list of lease information currently stored.

Returns a list of lease information currently stored.
raw docstring

lookup

(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-store

(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!

(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!

(remove-path! store path)

Removes a lease from the store by path.

Removes a lease from the store by path.
raw docstring

renewable-leases

(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?

(renewable? secret)

Determines whether a leased lease is renewable.

Determines whether a leased lease is renewable.
raw docstring

rotatable-leases

(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-lease

(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!

(sweep! store)

Removes expired leases from the store.

Removes expired leases from the store.
raw docstring

update!

(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