Documentation ¶
Index ¶
- Constants
- func Exist(filename string) (bool, error)
- func GetIPAddress() (addrList []string)
- func GetLocalIP() (string, error)
- func GetTotalCPUUsage() (float64, error)
- func GetTotalMemory() (uint64, error)
- func KillApplicationByNameUnix(processName string) error
- func KillApplicationByNameWindows(processName string) error
- func ListApplicationByNameAndPidUnix(processName string, pid string) (string, error)
- func ListApplicationByNameAndPidWindows(processName string, pid string) (string, error)
- func ListApplicationByNameUnix(processName string) (string, error)
- func ListApplicationByNameWindows(processName string) (string, error)
Constants ¶
View Source
const (
LocalIPKKey = "BK_DISTCC_LOCAL_IP"
)
Variables ¶
This section is empty.
Functions ¶
func GetIPAddress ¶
func GetIPAddress() (addrList []string)
GetIPAddress get local usable inner ip address
func GetLocalIP ¶
get local ip from env first, if not exists or empty, then get from net
func GetTotalMemory ¶
GetTotalMemory get total memory(KB) for windows
func KillApplicationByNameUnix ¶
KillApplicationByNameUnix
func KillApplicationByNameWindows ¶
KillApplicationByNameWindows
func ListApplicationByNameAndPidUnix ¶
ListApplicationByNameAndPidUnix
func ListApplicationByNameAndPidWindows ¶
ListApplicationByNameAndPidWindows
func ListApplicationByNameUnix ¶
ListApplicationByNameUnix
func ListApplicationByNameWindows ¶
ListApplicationByNameWindows
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.