sys

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultDiskUUID = uuid.Nil
)
View Source
var DefaultMACAddress = MustParseMAC("00:00:00:00:00:00")
View Source
var (
	DefaultMachineUUID = uuid.Nil
)

Functions

func MachineUUID

func MachineUUID() (uuid.UUID, error)

func MustParseMAC

func MustParseMAC(s string) net.HardwareAddr

func RootDiskUUID

func RootDiskUUID() (uuid.UUID, error)

Types

type Interface

type Interface struct {
	net.Interface

	IPNetworks []*net.IPNet
}

func FirstPublicInterface

func FirstPublicInterface() (*Interface, error)

func Interfaces

func Interfaces() ([]*Interface, error)

Jump to

Keyboard shortcuts

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