scutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryLocation = "/usr/sbin/scutil"

Variables

This section is empty.

Functions

func ChangeKey

func ChangeKey(key string, values ...KeyValue) error

func GetKey

func GetKey(key string, writer io.Writer) error

func IPsToArrayValue

func IPsToArrayValue(in ...net.IP) string

func KeyExists

func KeyExists(key string) bool

func MoveKey

func MoveKey(oldKey, key string, values ...KeyValue) error

func RemoveKey

func RemoveKey(key string) error

func UnmarshalKey

func UnmarshalKey(key string, output interface{}) error

Types

type KeyValue

type KeyValue struct {
	Key    string
	Value  string
	Delete bool
}

type NetworkGlobalIPv4

type NetworkGlobalIPv4 struct {
	PrimaryInterface string
	PrimaryService   string
	Router           net.IP
}

type Routes

type Routes struct {
	DestinationAddress net.IP
	SubnetMask         net.IP
}

type ServiceDns

type ServiceDns struct {
	DomainName      string
	ServerAddresses []net.IP
}

type ServiceIPv4

type ServiceIPv4 struct {
	ARPResolvedHardwareAddress string
	ARPResolvedIPAddress       net.IP
	AdditionalRoutes           []Routes
	Addresses                  []net.IP
	ConfirmedInterfaceName     string
	InterfaceName              string
	NetworkSignature           string
	Router                     net.IP
	SubnetMasks                []net.IP
}

Jump to

Keyboard shortcuts

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