Auto refresh a lease reference based on the current time.
Auto refresh a lease reference based on the current time.
This is not a continuous refresh, the flow is:
1. if lease is not renewable or is expired, create a new one 2. if its not expired but half of the duration time has passed more time then configured by the refresh ratio: refresh the the lease 3. return current lease otherwise
a reference to the current (maybe empty) lease
the increment to request in the renew
the ratio of duration time that is allowed to pass before refreshing the lease
the fallback effect reader for creating a new lease
an effect reader with the logic above applied
renew a lease
renew a lease
https://www.vaultproject.io/api/system/leases.html#renew-lease
a lease
time to extend the lease in seconds
extended lease