network

package
v0.0.0-...-50ffc52 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIpForwardingDisabled = errors.New("error: ip forwarding is disabled")
)
View Source
var Fix = Check

Functions

func Check

func Check() error

func IPExists

func IPExists(ip net.IP) (bool, error)

func LinkAddAddr

func LinkAddAddr(linkName, ip string) error

func LinkAddGateway

func LinkAddGateway(linkName, gatewayIP string) error

func LinkRename

func LinkRename(old, new string) error

func LinkSetMaster

func LinkSetMaster(linkName, masterName string) error

func LinkSetNsByFile

func LinkSetNsByFile(filename, linkName string) error

func LinkSetup

func LinkSetup(linkName string) error

func MountNewNetworkNamespace

func MountNewNetworkNamespace(nsTarget string) (filesystem.Unmounter, error)

func SetupBridge

func SetupBridge(name string) error

func SetupVirtualEthernet

func SetupVirtualEthernet(name, peer string) error

Types

type Releaser

type Releaser func() error

type Unsetter

type Unsetter func() error

func SetNetNSByFile

func SetNetNSByFile(filename string) (Unsetter, error)

Jump to

Keyboard shortcuts

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