예제 #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)
예제 #2
0
 def access(self, secret):
     request = Request(value=secret, verb=Request.ACCESS)
     return self.connection.send(request)
예제 #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)
예제 #4
0
 def wait(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.WAIT)
     return self.connection.send(request)
예제 #5
0
 def stat(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.STAT)
     return self.connection.send(request)
예제 #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)
예제 #7
0
 def delete(self, path, rev):
     request = Request(path=path, rev=rev, verb=Request.DEL)
     return self.connection.send(request, retry=False)
예제 #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)
예제 #9
0
 def rev(self):
     request = Request(verb=Request.REV)
     return self.connection.send(request)
예제 #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)
예제 #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)
예제 #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)