Documentation
¶
Index ¶
- Constants
- Variables
- type Handler
- func (h *Handler) GetDNSDomains() []string
- func (h *Handler) GetOriginalDNS() []net.IP
- func (h *Handler) GetOriginalOptions() []string
- func (h *Handler) GetOriginalSuffixes() []string
- func (h *Handler) IsNetworkManager() bool
- func (h *Handler) IsResolve() bool
- func (h *Handler) IsShill() bool
- func (h *Handler) Restore()
- func (h *Handler) Set() error
- func (h *Handler) SetDNSDomains(dnsDomains []string)
- func (h *Handler) SetDNSServers(dnsServers []net.IP)
- func (h *Handler) SetOptions(dnsOptions []string)
- func (h *Handler) SetSuffixes(dnsSuffixes []string)
Constants ¶
View Source
const (
ResolvPath = "/etc/resolv.conf"
)
Variables ¶
View Source
var (
AppName = "tuncfg"
)
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) GetDNSDomains ¶
func (*Handler) GetOriginalDNS ¶
func (*Handler) GetOriginalOptions ¶
func (*Handler) GetOriginalSuffixes ¶
func (*Handler) IsNetworkManager ¶
func (*Handler) SetDNSDomains ¶
func (*Handler) SetDNSServers ¶
func (*Handler) SetOptions ¶
func (*Handler) SetSuffixes ¶
Click to show internal directories.
Click to hide internal directories.