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