def member(pod): annotations = pod.metadata.annotations or {} member = Member.from_node(pod.metadata.resource_version, pod.metadata.name, None, annotations.get('status', '')) member.data['pod_labels'] = pod.metadata.labels return member
def member(node): return Member.from_node(node.modifiedIndex, os.path.basename(node.key), node.ttl, node.value)
def member(node): return Member.from_node(node['ModifyIndex'], os.path.basename(node['Key']), node.get('Session'), node['Value'])
def member(name, value, znode): return Member.from_node(znode.version, name, znode.ephemeralOwner, value)
def member(key, value): return Member.from_node(value['index'], os.path.basename(key), None, value['value'])