exos

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIP

func CheckIP(ip string) bool

CheckIP Verify IP address validity

func DefaultPrivateKey added in v0.3.4

func DefaultPrivateKey() string

DefaultPrivateKey 默认ssh key

func GetEnv

func GetEnv(envstr, fallback string) string

GetEnv 获取环境变量

func IsContainer added in v0.3.3

func IsContainer() bool

IsContainer 是否是容器

func IsLinux added in v0.3.3

func IsLinux() bool

IsLinux is linux

func IsMacOS added in v0.3.3

func IsMacOS() bool

IsMacOS is Mac OS

func IsUnix added in v0.3.3

func IsUnix() bool

IsUnix macos or linux

func LocalIP

func LocalIP() string

LocalIP 获取本机非loopback ip,默认第一个

Types

This section is empty.

Jump to

Keyboard shortcuts

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