Documentation ¶
Index ¶
- func NewStaticProfileList(nodes []NetworkNode) []profiles.StaticProfile
- func NodeAddr(n NetworkNode) string
- func NodeRef(n NetworkNode) reference.Global
- func NodeRole(n NetworkNode) member.PrimaryRole
- func NodeSignedDigest(n NetworkNode) cryptkit.SignedDigestHolder
- type AuthorizationCertificate
- type Certificate
- type CertificateGetter
- type CertificateManager
- type DiscoveryNode
- type Meta
- type NetworkNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticProfileList ¶
func NewStaticProfileList(nodes []NetworkNode) []profiles.StaticProfile
func NodeAddr ¶
func NodeAddr(n NetworkNode) string
func NodeRef ¶
func NodeRef(n NetworkNode) reference.Global
func NodeRole ¶
func NodeRole(n NetworkNode) member.PrimaryRole
func NodeSignedDigest ¶
func NodeSignedDigest(n NetworkNode) cryptkit.SignedDigestHolder
Types ¶
type AuthorizationCertificate ¶
type AuthorizationCertificate interface { Meta GetRole() member.PrimaryRole SerializeNodePart() []byte GetDiscoverySigns() map[reference.Global][]byte }
AuthorizationCertificate interface provides methods to manage info about node from it certificate
type Certificate ¶
type Certificate interface { AuthorizationCertificate GetDiscoveryNodes() []DiscoveryNode GetMajorityRule() int GetMinRoles() (virtual uint, heavyMaterial uint, lightMaterial uint) }
Certificate interface provides methods to manage keys
type CertificateGetter ¶
type CertificateManager ¶
type CertificateManager interface {
GetCertificate() Certificate
}
CertificateManager interface provides methods to manage nodes certificate
type DiscoveryNode ¶
type NetworkNode ¶
type NetworkNode = profiles.ActiveNode
func NewNetworkNode ¶
func NewNetworkNode(profile profiles.ActiveNode) NetworkNode
func NewNetworkNodeList ¶
func NewNetworkNodeList(profiles []profiles.ActiveNode) []NetworkNode
Click to show internal directories.
Click to hide internal directories.