Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResolver ¶
func DelResolver ¶
Types ¶
type DNSConfig ¶
type DNSConfig struct { Domain string SearchDomain []string NameServers []string IfIndex string IfName string Flags string Reach string Options string }
DNSConfig structure
type Interface ¶
type Interface interface { // GetDNSServers retreive the dns servers GetDNSServers(iface string) error // Set DNS server SetDNSServer(dns string, domains []string, peers []string, internal string, api string) error // Reset DNS server ResetDNSServer(dns string) error AddInterfaceAlias(string) error RemoveInterfaceAlias(string) error ReturnDNS() []string ReturnDomainSearch() []string }
Interface is an injectable interface for running scutil/networkconfig/ifconfig commands.
Click to show internal directories.
Click to hide internal directories.