Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2024 Changes in this version + func GB2312toUTF8(gb2312Str string) string + type Interface interface + AddIPAddress func(iface string, address string) error + DeleteIPAddress func(args []string) error + DeletePortProxyRule func(args []string) error + EnableForwarding func(iface string) error + EnsurePortProxyRule func(args []string) (bool, error) + GetDefaultGatewayIfaceName func() (string, error) + GetInterfaceByIP func(ipAddr string) (Ipv4Interface, error) + GetInterfaceByName func(name string) (Ipv4Interface, error) + GetInterfaces func() ([]Ipv4Interface, error) + Restore func(args []string) error + SetDNSServer func(iface string, dns string) error + SetIPAddress func(iface string, address string) error + func New(exec utilexec.Interface) Interface + type Ipv4Interface struct + DNS string + DefaultGatewayAddress string + DhcpEnabled bool + GatewayMetric int + Idx int + InterfaceMetric int + IpAddress string + Name string + SubnetPrefix int