angelos.lib.policy.domain¶
Policy classes for Domain and Nodes.
-
class
angelos.lib.policy.domain.
DomainPolicy
¶ Bases:
angelos.lib.policy.policy.Policy
-
static
generate
(portfolio: angelos.portfolio.collection.PrivatePortfolio)¶ Generate domain document from currently running node.
-
update
(portfolio: angelos.portfolio.collection.PrivatePortfolio, domain: angelos.document.domain.Domain) → bool¶
-
static
-
class
angelos.lib.policy.domain.
NetworkPolicy
¶ Bases:
angelos.lib.policy.policy.Policy
-
static
generate
(portfolio: angelos.portfolio.collection.PrivatePortfolio)¶ Generate network document from currently running node.
-
update
(portfolio: angelos.portfolio.collection.PrivatePortfolio, network: angelos.document.domain.Network) → bool¶
-
static
-
class
angelos.lib.policy.domain.
NodePolicy
¶ Bases:
angelos.lib.policy.policy.Policy
Generate node documents.
-
ROLE
= ('client', 'server', 'backup')¶
-
static
current
(portfolio: angelos.portfolio.collection.PrivatePortfolio, role: int = 112, server: bool = False, ip: Optional[Union[ipaddress.IPv4Address, ipaddress.IPv6Address]] = None)¶ Generate node document from the current node.
-
generate
(**kwargs)¶
-
update
(portfolio: angelos.portfolio.collection.PrivatePortfolio, node: angelos.document.domain.Node) → bool¶
-