syscheck

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysInfo

type SysInfo types.HostInfo

SysInfo is a warpper of types.OS

func SystemInfo

func SystemInfo() (SysInfo, error)

SystemInfo return a full information of system

func (SysInfo) ShowInfo

func (s SysInfo) ShowInfo()

ShowInfo display system info

type SysType

type SysType string

SysType is a type which Linux distribution

const (
	// RedHat is a series of Linux which using yum for package manager
	// ex. Centos / RedHat Enterprise/ Fedora
	RedHat SysType = "redhat"

	// Debian is a series of Linux which using apt for package manager
	// ex. Ubuntu / Deepin / Kylin
	Debian SysType = "debian"

	// Arch is a series of Linux which using pacman for package manager
	// ex. Arch / Manjaro / KaOS
	Arch SysType = "arch"

	// UnSupported for others,which unsupported for now
	UnSupported SysType = "unsupported"
)

func SystemType

func SystemType() (SysType, error)

SystemType return the type of the running linux

Jump to

Keyboard shortcuts

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