示例#1
0
 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)
示例#2
0
 def identity(self):
     return hash_id(self.endpoint)
示例#3
0
 def id(self):
     return hash_id(self.container.identity, self.name, self.version)
示例#4
0
 def identity(self):
     return hash_id(self.endpoint)