windows

package
v0.0.0-...-77e15ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+build windows

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNRPT

func AddNRPT(dns string, name []string) error

func DelNRPT

func DelNRPT(dns string) error

Types

type Interface

type Interface interface {
	GetInterfaces() ([]NetworkInterface, error)
	SetInterfaceDNSConfig(NetworkInterface)
	SetDNSServer(dns string, domains []string, peers []string, internal string, api string) error
	ResetDNSServer(dns string) error
	ReturnDNS() []string
	ReturnDomainSearch() []string
}

Interface is an injectable interface for running commands.

func New

func New() Interface

New returns a new Interface

type NetworkInterface

type NetworkInterface struct {
	Name           string
	Description    string
	DhcpEnabled    bool
	Domain         string
	IPAddress      net.IP
	Mask           net.IPMask
	DefaultGateway []net.IP
	GatewayMetric  int
	DNSServers     []net.IP
}

NetworkInterface structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL