Esempio n. 1
0
 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)
Esempio n. 2
0
 def access(self, secret):
     request = Request(value=secret, verb=Request.ACCESS)
     return self.connection.send(request)
Esempio n. 3
0
 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)
Esempio n. 4
0
 def wait(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.WAIT)
     return self.connection.send(request)
Esempio n. 5
0
 def stat(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.STAT)
     return self.connection.send(request)
Esempio n. 6
0
 def get(self, path, rev=None):
     request = Request(path=path, verb=Request.GET)
     if rev:
         request.rev = rev
     return self.connection.send(request)
Esempio n. 7
0
 def delete(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.DEL)
     return self.connection.send(request, retry=False)
Esempio n. 8
0
 def set(self, path, value, rev):
     request = Request(path=path, value=value, rev=rev, verb=Request.SET)
     return self.connection.send(request, retry=False)
Esempio n. 9
0
 def rev(self):
     request = Request(verb=Request.REV)
     return self.connection.send(request)
Esempio n. 10
0
 def get(self, path, rev=None):
     request = Request(path=path, verb=Request.GET)
     if rev:
         request.rev = rev
     return self.connection.send(request)
Esempio n. 11
0
 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)
Esempio n. 12
0
 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)