Permalink
Browse files

Support add_auth operation in KazooClient

  • Loading branch information...
1 parent 70dab96 commit a44e4f6f47cf977701a44dcce3f47bd70cd88905 @labisso labisso committed Jun 4, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 kazoo/client.py
View
@@ -110,6 +110,14 @@ def close(self):
"""
self.zk.close()
+ def add_auth(self, scheme, credential):
+ """Send credentials to server
+
+ @param scheme: authentication scheme (default supported: "digest")
+ @param credential: the credential -- value depends on scheme
+ """
+ self.zk.add_auth(scheme, credential)
+
def create(self, path, value, acl=None, ephemeral=False, sequence=False,
makepath=False):
"""Create a ZNode

0 comments on commit a44e4f6

Please sign in to comment.