You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
The StorageService class (see #10) needs to be initialized with a default instance of LeaseManager (see #4) backed by a TokenProvider (see #3). When the lookup() method is called with /v1/token/default as the secret argument, the result of calling LeaseManager#data should be returned.
If the Lease Manager is not in a READY state, the callback argument to lookup() should be queued. Once the Lease Manager becomes ready, the callback should be triggered with a result argument. If the Lease Manager fails to become ready within N seconds (TBD what N is) the callback should be triggered with an error argument.
The result argument should be the data property from the Lease Manager. The error argument should be an Error with an appropriate message.
Multiple calls to lookup() for the default token should queue all given callbacks. If the same callback is provided more than once, it should trigger as many times as provided.
The text was updated successfully, but these errors were encountered:
The
StorageService
class (see #10) needs to be initialized with a default instance ofLeaseManager
(see #4) backed by aTokenProvider
(see #3). When thelookup()
method is called with/v1/token/default
as thesecret
argument, the result of callingLeaseManager#data
should be returned.If the Lease Manager is not in a
READY
state, thecallback
argument tolookup()
should be queued. Once the Lease Manager becomes ready, the callback should be triggered with aresult
argument. If the Lease Manager fails to become ready within N seconds (TBD what N is) the callback should be triggered with anerror
argument.The
result
argument should be thedata
property from the Lease Manager. Theerror
argument should be anError
with an appropriate message.Multiple calls to
lookup()
for the default token should queue all given callbacks. If the same callback is provided more than once, it should trigger as many times as provided.The text was updated successfully, but these errors were encountered: