Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Support add_auth operation in KazooClient
Browse files Browse the repository at this point in the history
  • Loading branch information
labisso committed Jun 4, 2012
1 parent 70dab96 commit a44e4f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kazoo/client.py
Expand Up @@ -110,6 +110,14 @@ def close(self):
""" """
self.zk.close() 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, def create(self, path, value, acl=None, ephemeral=False, sequence=False,
makepath=False): makepath=False):
"""Create a ZNode """Create a ZNode
Expand Down

0 comments on commit a44e4f6

Please sign in to comment.