network

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 42 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// PubIface is pub interface name of the interface used in the 0-db network namespace
	PubIface = "eth0"
	// ZDBYggIface is ygg interface name of the interface used in the 0-db network namespace
	ZDBYggIface      = "ygg0"
	ZDBMyceliumIface = "my0"
)

Variables

View Source
var NetworkSchemaLatestVersion = semver.MustParse("0.1.0")

NetworkSchemaLatestVersion last version

Functions

func CleanupOrphanedNamespaces

func CleanupOrphanedNamespaces()

CleanupOrphanedNamespaces removes network namespaces that start with "n-" but don't have corresponding files in /var/run/cache/networkd/networks/

func CleanupUnusedLinks() error

func NewNetworker

func NewNetworker(identity *stubs.IdentityManagerStub, ndmz ndmz.DMZ, ygg *yggdrasil.YggServer, myc *mycelium.MyceliumServer) (pkg.Networker, error)

NewNetworker create a new pkg.Networker that can be used over zbus

Types

type Veth

type Veth struct {
	// contains filtered or unexported fields
}

func (Veth) String

func (v Veth) String() string

for debugging

Directories

Path Synopsis
Package options abstract setting common networking sys flags on the selected namespaces
Package options abstract setting common networking sys flags on the selected namespaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL