Leases

class aetcd3.leases.Lease(lease_id, ttl, etcd_client)[source]

A lease.

Parameters
  • id – ID of the lease

  • ttl – time to live for this lease

  • etcd_client – Instance of aetcd3.Etcd3Client

async revoke()[source]

Revoke this lease.

async refresh()[source]

Refresh the time to live for this lease.

async remaining_ttl()[source]

Return remaining time to live for this lease.

async granted_ttl()[source]

Return granted time to live for this lease.

async keys()[source]

Return list of keys associated with this lease.