Documentation
¶
Overview ¶
Package sys defines operating systems and detects the Linux distribution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ListSystem is the list of allowed operating systems.
Functions ¶
func SystemFromGOOS ¶
SystemFromGOOS returns the system from 'GOOS', and the distribution at Linux systems.
Types ¶
type Distro ¶
type Distro int
Distro represents a distribution of Linux system.
Most used Linux distributions.
func DetectDistro ¶
DetectDistro returns the Linux distribution.
Directories
¶
| Path | Synopsis |
|---|---|
|
config
|
|
|
env
Package env implements the setting of persistent environment variables.
|
Package env implements the setting of persistent environment variables. |
|
shconf
Package shconf implements a parser and scanner for the configuration in format shell-variable.
|
Package shconf implements a parser and scanner for the configuration in format shell-variable. |
|
Package edi allows edit files.
|
Package edi allows edit files. |
|
Package executil lets to call to system commands.
|
Package executil lets to call to system commands. |
|
Package fileutil handles common operations in files.
|
Package fileutil handles common operations in files. |
|
Package pkg handles basic operations in the management of packages in FreeBSD, Linux and macOs operating systems.
|
Package pkg handles basic operations in the management of packages in FreeBSD, Linux and macOs operating systems. |
|
Package userutil provides access to UNIX users database in local files.
|
Package userutil provides access to UNIX users database in local files. |
|
crypt
Package crypt provides interface for password crypt functions and collects common constants.
|
Package crypt provides interface for password crypt functions and collects common constants. |
|
crypt/apr1_crypt
Package apr1_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD, and modified by the Apache project.
|
Package apr1_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD, and modified by the Apache project. |
|
crypt/common
Package common contains routines used by multiple password hashing algorithms.
|
Package common contains routines used by multiple password hashing algorithms. |
|
crypt/md5_crypt
Package md5_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD.
|
Package md5_crypt implements the standard Unix MD5-crypt algorithm created by Poul-Henning Kamp for FreeBSD. |
|
crypt/sha256_crypt
Package sha256_crypt implements Ulrich Drepper's SHA256-crypt password hashing algorithm.
|
Package sha256_crypt implements Ulrich Drepper's SHA256-crypt password hashing algorithm. |
|
crypt/sha512_crypt
Package sha512_crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm.
|
Package sha512_crypt implements Ulrich Drepper's SHA512-crypt password hashing algorithm. |
Click to show internal directories.
Click to hide internal directories.