distro

package
v0.0.0-...-113f59a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 7 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")
	Unraid    = Distro("unraid")
	Alpine    = Distro("alpine")
)

Variables

This section is empty.

Functions

func DSMVersion

func DSMVersion() int

DSMVersion reports the Synology DSM major version.

If not Synology, it reports 0.

func IsWSL

func IsWSL() bool

IsWSL reports whether we're running in the Windows Subsystem for Linux.

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