The etcd3gw.lock Module

class etcd3gw.lock.Lock(name, ttl=30, client=None)[source]

Bases: object

acquire()[source]

Acquire the lock.

is_acquired()[source]

Check if the lock is acquired

refresh()[source]

Refresh the lease on the lock

Returns:

release()[source]

Release the lock

property uuid

The unique id of the lock