Documentation ¶
Index ¶
- func Download(url string) ([]byte, error)
- func DownloadAndSave(url, destination string) error
- func GenerateIPAddress() string
- func GetGatewayFromIP(ip string) (string, error)
- func GetIPFromNetworkAddress(net string) string
- func RandomMacAddress() (string, error)
- func ValidateIPAddress(ip string) bool
- type Ethernets
- type Match
- type Nameservers
- type Network
- type VirtNet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAndSave ¶
Download fetches a file from the internet
func GetGatewayFromIP ¶
getGatewayFromIP will return the gateway from the IPv4 addres
Example: IP: 192.168.122.100 GW? 192.168.122.1
func GetIPFromNetworkAddress ¶ added in v0.0.2
Types ¶
type Nameservers ¶
type Nameservers struct {
Addresses []string `yaml:"addresses"`
}
type Network ¶
func NewNetwork ¶
func NewNetwork() *Network
Click to show internal directories.
Click to hide internal directories.