system

package
v1.0.177 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateWPASupplicantConfig added in v1.0.112

func GenerateWPASupplicantConfig(ssid, password string) string

GenerateWPASupplicantConfig generates the updated config file for wpa_supplicant

func GetOutboundIP

func GetOutboundIP() (net.IP, error)

GetOutboundIP gets the preferred outbound ip of this machine

func GetTimezone added in v1.0.144

func GetTimezone() (string, error)

GetTimezone gets the current machine's timezone information

func GetWirelessNetworks added in v1.0.81

func GetWirelessNetworks() (map[string]WirelessNetwork, error)

GetWirelessNetworks returns a list of available wireless networks

func UpdateTimezone added in v1.0.144

func UpdateTimezone(updatedTimezone string) error

UpdateTimezone sets the current machine's timezone to the given timezone

func UpdateWPASupplicantConfig added in v1.0.114

func UpdateWPASupplicantConfig(updatedConfig string) error

UpdateWPASupplicantConfig saves the updated config file for wpa_supplicant and forces a refresh of the config file

Types

type WirelessNetwork added in v1.0.81

type WirelessNetwork struct {
	Address       string `json:"address"`
	ESSID         string `json:"essid"`
	Encrypted     bool   `json:"encrypted"`
	Frequency     string `json:"frequency"`
	SignalQuality int    `json:"signal_quality"`
	SignalLevel   int    `json:"signal_level"`
}

Jump to

Keyboard shortcuts

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