network

package
v0.0.0-...-7735c78 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

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

func New

func New(cidr string) (*Network, error)

func (*Network) ConfigurePeerInterface

func (n *Network) ConfigurePeerInterface(name string, namespacePid int, addr *netlink.Addr, gatewayIP string) error

func (*Network) CreateVirtualEthernetPair

func (n *Network) CreateVirtualEthernetPair(pid int) *netlink.Veth

func (*Network) InstallVirtualEthernetPair

func (n *Network) InstallVirtualEthernetPair(vEthPair *netlink.Veth, namespacePid int) error

Jump to

Keyboard shortcuts

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