links

package
v0.0.0-...-92a250d Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BridgeMTU    = 1500
	VxlanPort    = 4789
	VxlanVethMTU = 1450
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	Netlinker netlinker
}

func (*Factory) CreateBridge

func (f *Factory) CreateBridge(name string) error

func (*Factory) CreateDummy

func (f *Factory) CreateDummy(name string) error

func (*Factory) CreateVeth

func (f *Factory) CreateVeth(name, peerName string, mtu int) error

func (*Factory) CreateVxlan

func (f *Factory) CreateVxlan(name string, vni int) error
func (f *Factory) DeleteLink(link netlink.Link) error

func (*Factory) DeleteLinkByName

func (f *Factory) DeleteLinkByName(name string) error

func (*Factory) Exists

func (f *Factory) Exists(name string) bool
func (f *Factory) FindLink(name string) (netlink.Link, error)

func (*Factory) HardwareAddress

func (f *Factory) HardwareAddress(linkName string) (net.HardwareAddr, error)
func (f *Factory) ListLinks() ([]netlink.Link, error)

func (*Factory) SetMaster

func (f *Factory) SetMaster(slave, master string) error

func (*Factory) SetNamespace

func (f *Factory) SetNamespace(linkName string, fd uintptr) error

func (*Factory) SetUp

func (f *Factory) SetUp(name string) error

func (*Factory) VethDeviceCount

func (f *Factory) VethDeviceCount() (int, error)

Jump to

Keyboard shortcuts

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