Documentation ¶
Index ¶
- Constants
- func CreatePublicNS(iface *types.PubIface, nodeID pkg.Identifier) error
- func NewNetworker(identity pkg.IdentityManager, tnodb client.Directory, storageDir string) (pkg.Networker, error)
- func NodeIDv1() (string, error)
- func ResourceByNodeID(nodeID string, resources []pkg.NetResource) (*pkg.NetResource, error)
Constants ¶
View Source
const (
// ZDBIface is the name of the interface used in the 0-db network namespace
ZDBIface = "zdb0"
)
Variables ¶
This section is empty.
Functions ¶
func CreatePublicNS ¶
func CreatePublicNS(iface *types.PubIface, nodeID pkg.Identifier) error
CreatePublicNS creates a public namespace in a node
func NewNetworker ¶
func NewNetworker(identity pkg.IdentityManager, tnodb client.Directory, storageDir string) (pkg.Networker, error)
NewNetworker create a new pkg.Networker that can be used over zbus
func ResourceByNodeID ¶
func ResourceByNodeID(nodeID string, resources []pkg.NetResource) (*pkg.NetResource, error)
ResourceByNodeID return the net resource associated with a nodeID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.