network

package
v0.0.0-...-23a443e Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSManager

type DNSManager struct {
}

func NewDNSManager

func NewDNSManager() (*DNSManager, error)

NewDNS returns a new DNS manager on MacOS

func (*DNSManager) AddDomainServer

func (m *DNSManager) AddDomainServer(domain string, server net.IP, port int) error

func (*DNSManager) DelDomainServer

func (m *DNSManager) DelDomainServer(domain string) error

type Manager

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

func NewManager

func NewManager() (*Manager, error)

func (*Manager) ConfigurePeers

func (m *Manager) ConfigurePeers(instances []cloud.InstanceInfo, devices []user.UserDevice) error

func (*Manager) CreateNamespacedInterface

func (m *Manager) CreateNamespacedInterface(netNSpath string, IP net.IP) error

func (*Manager) Down

func (m *Manager) Down() error

func (*Manager) Init

func (m *Manager) Init(key *pcrypto.Key, domain string) error

func (*Manager) Up

func (m *Manager) Up() error

initNetwork initializes the protos network

Jump to

Keyboard shortcuts

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