base

package
Version: v0.0.0-...-9649b88 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameSpace

type NameSpace interface {
	Set(ns netns.NsHandle) (err error)
	Get() (netns.NsHandle, error)
	Close()
}
type NetLink interface {
	LinkSetNsPid(link netlink.Link, nspid int) error
	SetLinkListRtn(b bool)
	LinkList() ([]netlink.Link, error)
	LinkSetName(link netlink.Link, name string) error
	LinkSetUp(link netlink.Link) error
	LinkSetDown(link netlink.Link) error
	AddrAdd(link netlink.Link, addr *netlink.Addr) error
	LinkSetMTU(link netlink.Link, mtu int) error
	LinkSetMac(link netlink.Link, mac net.HardwareAddr) error
}

type NetNs

type NetNs interface {
	GetFromPid(pid int) (netns.NsHandle, error)
}

type Writer

type Writer interface {
	WriteFile(filename string, data []byte, perm os.FileMode) error
}

Jump to

Keyboard shortcuts

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