Documentation ¶
Index ¶
- Constants
- type Factory
- func (f *Factory) CreateBridge(name string) error
- func (f *Factory) CreateDummy(name string) error
- func (f *Factory) CreateVeth(name, peerName string, mtu int) error
- func (f *Factory) CreateVxlan(name string, vni int) error
- func (f *Factory) DeleteLink(link netlink.Link) error
- func (f *Factory) DeleteLinkByName(name string) error
- func (f *Factory) Exists(name string) bool
- func (f *Factory) FindLink(name string) (netlink.Link, error)
- func (f *Factory) HardwareAddress(linkName string) (net.HardwareAddr, error)
- func (f *Factory) ListLinks() ([]netlink.Link, error)
- func (f *Factory) SetMaster(slave, master string) error
- func (f *Factory) SetNamespace(linkName string, fd uintptr) error
- func (f *Factory) SetUp(name string) error
- func (f *Factory) VethDeviceCount() (int, error)
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 (*Factory) CreateDummy ¶
func (*Factory) DeleteLinkByName ¶
func (*Factory) HardwareAddress ¶
func (f *Factory) HardwareAddress(linkName string) (net.HardwareAddr, error)
func (*Factory) VethDeviceCount ¶
Click to show internal directories.
Click to hide internal directories.