def __init__(self, id=None, identity=None, **info): self.id = id self.identity = identity if identity else hash_id(info.get('endpoint')) self.info = {} self.update(**info)
def identity(self): return hash_id(self.endpoint)
def id(self): return hash_id(self.container.identity, self.name, self.version)