shrub/pkg/arvo/lib/gcp.hoon

16 lines
237 B
Plaintext
Raw Normal View History

2021-02-24 22:30:49 +03:00
/- *gcp
|%
++ token-to-json
|= =token
^- json
=, enjs:format
%+ frond %gcp-token
%: pairs
[%'accessKey' s+access-key.token]
:- %'expiresIn'
2021-02-24 23:55:40 +03:00
%- numb
(div (mul 1.000 expires-in.token) ~s1)
~
2021-02-24 22:30:49 +03:00
==
--