Documentation ¶
Overview ¶
Package distro reports which distro we're running on.
Index ¶
Constants ¶
View Source
const ( Debian = Distro("debian") Arch = Distro("arch") Synology = Distro("synology") OpenWrt = Distro("openwrt") NixOS = Distro("nixos") QNAP = Distro("qnap") Pfsense = Distro("pfsense") OPNsense = Distro("opnsense") TrueNAS = Distro("truenas") Gokrazy = Distro("gokrazy") WDMyCloud = Distro("wdmycloud") )
Variables ¶
This section is empty.
Functions ¶
func DSMVersion ¶
func DSMVersion() int
DSMVersion reports the Synology DSM major version.
If not Synology, it reports 0.
Types ¶
Click to show internal directories.
Click to hide internal directories.