distro

package
v0.0.0-...-ded95ce Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

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

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