implement

package
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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameSpace

type NameSpace struct {
	base.NameSpace
}

func (*NameSpace) Get

func (self *NameSpace) Get() (netns.NsHandle, error)

func (*NameSpace) Set

func (self *NameSpace) Set(ns netns.NsHandle) (err error)
type NetLink struct {
	base.NetLink
}

func (*NetLink) AddrAdd

func (self *NetLink) AddrAdd(link netlink.Link, addr *netlink.Addr) error
func (self *NetLink) LinkList() ([]netlink.Link, error)

func (*NetLink) LinkSetDown

func (self *NetLink) LinkSetDown(link netlink.Link) error

func (*NetLink) LinkSetMTU

func (self *NetLink) LinkSetMTU(link netlink.Link, mtu int) error

func (*NetLink) LinkSetMac

func (self *NetLink) LinkSetMac(link netlink.Link, mac net.HardwareAddr) error

func (*NetLink) LinkSetName

func (self *NetLink) LinkSetName(link netlink.Link, name string) error

func (*NetLink) LinkSetNsPid

func (self *NetLink) LinkSetNsPid(link netlink.Link, nspid int) error

func (*NetLink) LinkSetUp

func (self *NetLink) LinkSetUp(link netlink.Link) error

type NetNs

type NetNs struct {
	base.NetNs
}

func (*NetNs) GetFromPid

func (self *NetNs) GetFromPid(pid int) (netns.NsHandle, error)

type Writer

type Writer struct {
	base.Writer
}

func (*Writer) WriteFile

func (self *Writer) 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