Documentation ¶
Index ¶
- type NetLink
- func (n NetLink) AddrAdd(link netlink.Link, addr *netlink.Addr) error
- func (n NetLink) AddrDel(link netlink.Link, addr *netlink.Addr) error
- func (n NetLink) AddrList(link netlink.Link, family int) ([]netlink.Addr, error)
- func (n NetLink) AddrReplace(link netlink.Link, addr *netlink.Addr) error
- func (n NetLink) LinkAdd(link netlink.Link) error
- func (n NetLink) LinkByIndex(index int) (netlink.Link, error)
- func (n NetLink) LinkByName(name string) (netlink.Link, error)
- func (n NetLink) LinkDel(link netlink.Link) error
- func (n NetLink) LinkGetProtinfo(link netlink.Link) (netlink.Protinfo, error)
- func (n NetLink) LinkList() ([]netlink.Link, error)
- func (n NetLink) LinkSetDown(link netlink.Link) error
- func (n NetLink) LinkSetHardwareAddr(link netlink.Link, hwaddr net.HardwareAddr) error
- func (n NetLink) LinkSetLearningOff(link netlink.Link) error
- func (n NetLink) LinkSetMTU(link netlink.Link, mtu int) error
- func (n NetLink) LinkSetMaster(link netlink.Link, master *netlink.Bridge) error
- func (n NetLink) LinkSetName(link netlink.Link, name string) error
- func (n NetLink) LinkSetUp(link netlink.Link) error
- func (n NetLink) ParseAddr(s string) (*netlink.Addr, error)
- func (n NetLink) RouteList(link netlink.Link, family int) ([]netlink.Route, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetLink ¶
type NetLink struct{}
func (NetLink) AddrReplace ¶
func (NetLink) LinkGetProtinfo ¶
func (NetLink) LinkSetHardwareAddr ¶
func (NetLink) LinkSetMaster ¶
Click to show internal directories.
Click to hide internal directories.