scutil

package
v0.0.0-...-36b3227 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) error
	// Reset DNS server
	ResetDNSServer() error
	AddInterfaceAlias(string) error
	RemoveInterfaceAlias(string) error
}

Interface is an injectable interface for running scutil/networkconfig/ifconfig commands.

func New

func New(exec utilexec.Interface) Interface

New returns a new Interface which will exec scutil.

Jump to

Keyboard shortcuts

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