hfc.fabric.organization
¶
Module Contents¶
Classes¶
|
An organization in the network. |
Functions¶
|
Factory method to construct an organization instance |
-
hfc.fabric.organization.
_logger
¶
-
class
hfc.fabric.organization.
Organization
(name='org', state_store=None)¶ Bases:
object
An organization in the network.
It contains several members.
-
init_with_bundle
(self, info)¶ Init the peer with given info dict :param info: Dict including all info, e.g., endpoint, grpc option :return: True or False
-
get_user
(self, name)¶ Return user instance with the name. :param name: Name of the user :return: User instance or None
-
-
hfc.fabric.organization.
create_org
(name, info, state_store)¶ Factory method to construct an organization instance :param name: Name of the organization :param info: Info dict for initialization :param state_store: State store for data cache :return: an organization instance