etcd3gw.lease
Module¶etcd3gw.lease.
Lease
(id, client=None)[source]¶Bases: object
refresh
()[source]¶LeaseKeepAlive keeps the lease alive
By streaming keep alive requests from the client to the server and streaming keep alive responses from the server to the client. This method makes a synchronous HTTP request by default.
returns new TTL for lease. If lease was already expired then TTL field is absent in response and the function returns -1 according to etcd documentation. https://etcd.io/docs/v3.5/dev-guide/apispec/swagger/rpc.swagger.json
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.