Documentation ¶
Overview ¶
Package system implements system specific functionality.
Index ¶
- func EnableSyslog() error
- func GetTimezone() (zoneInfoDir, zone string, err error)
- func ReadOSVersion(field string) (imgRelease semver.Version, err error)
- func ReadTimezones(zoneInfoDir string) (listZones []string, err error)
- func SetTime(t time.Time) (err error)
- func SetTimezone(zoneInfoDir, zone string) (err error)
- func UpdateTimeFromNetwork() (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableSyslog ¶ added in v0.0.17
func EnableSyslog() error
EnableSyslog enables logging to syslog
func GetTimezone ¶
GetTimezone returns the current system timezone and its path after zoneInfoPath
func ReadOSVersion ¶ added in v0.0.45
ReadOSVersion reads `releaseFilePath` and parses VERSION_ID into a `Version` struct
func ReadTimezones ¶
ReadTimezones returns a list of possible time zones from the system Possible arguments for zoneInfoDir:
"" (root dir) "US" "posix/America"
func SetTimezone ¶
SetTimezone sets the current system time zone
func UpdateTimeFromNetwork ¶
func UpdateTimeFromNetwork() (err error)
UpdateTimeFromNetwork fetches time from ntp server and stores in system and RTC
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.