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

expired?

(expired? lease)

Determines whether the lease has expired.

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

leased?

(leased? secret)

Determines whether the secret is leased.

Determines whether the secret is leased.
sourceraw docstring

list-leases

(list-leases store)

Returns a list of lease information currently stored.

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

remove-lease!

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

(remove-path! store path)

Removes a lease from the store by path.

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

renewable?

(renewable? secret)

Determines whether a leased lease is renewable.

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

sweep!

(sweep! store)

Removes expired leases from the store.

Removes expired leases from the store.
sourceraw docstring

update!

(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