def _walk(self, path, offset=0, rev=None): request = Request(path=path, offset=offset, verb=Request.WALK) if rev: request.rev = rev return self.connection.send(request)
def access(self, secret): request = Request(value=secret, verb=Request.ACCESS) return self.connection.send(request)
def _getdir(self, path, offset=0, rev=None): request = Request(path=path, offset=offset, verb=Request.GETDIR) if rev: request.rev = rev return self.connection.send(request)
def wait(self, path, rev): request = Request(path=path, rev=rev, verb=Request.WAIT) return self.connection.send(request)
def stat(self, path, rev): request = Request(path=path, rev=rev, verb=Request.STAT) return self.connection.send(request)
def get(self, path, rev=None): request = Request(path=path, verb=Request.GET) if rev: request.rev = rev return self.connection.send(request)
def delete(self, path, rev): request = Request(path=path, rev=rev, verb=Request.DEL) return self.connection.send(request, retry=False)
def set(self, path, value, rev): request = Request(path=path, value=value, rev=rev, verb=Request.SET) return self.connection.send(request, retry=False)
def rev(self): request = Request(verb=Request.REV) return self.connection.send(request)