envcheck

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckArch

func CheckArch() string

CheckArch returns Arch info of the host.

func CheckConn

func CheckConn(addr string) bool

CheckConn check if address is reachable.

func CheckDiskSpace

func CheckDiskSpace() bool

CheckDiskSpece check if theres enough space to run GoOwl; Minium is 2G.

func CheckDocker

func CheckDocker() int

CheckDocker check if GoOwl running in docker environment; Minium is 128M. Return -1 if unknown;0 if false and 1 if true

func CheckIsRoot

func CheckIsRoot() bool

CheckIsRoot check whether program running with root permission.

func CheckMemory

func CheckMemory() bool

CheckMemory check if theres enough memory to run GoOwl; Minium is 128M.

func CheckOS

func CheckOS() string

CheckOS returns OS info of the host.

func CheckPlatform

func CheckPlatform() string

CheckPlatform returns platform info and kernel version of the host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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