distro

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: BSD-3-Clause Imports: 7 Imported by: 53

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 added in v1.28.0

func DSMVersion() int

DSMVersion reports the Synology DSM major version.

If not Synology, it reports 0.

Types

type Distro

type Distro string

func Get

func Get() Distro

Get returns the current distro, or the empty string if unknown.

Jump to

Keyboard shortcuts

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