Documentation ¶
Index ¶
- func CmdOutBytes(name string, arg ...string) ([]byte, error)
- func CmdOutString(name string, arg ...string) (string, error)
- func CmdOutTrim(name string, arg ...string) (string, error)
- func CmdRun(name string, arg ...string) error
- func CmdRunT(timeout time.Duration, name string, arg ...string) (output string, err error, istimeout bool)
- func GetOutboundIpaddr() string
- func IntranetIP() (ips []string, err error)
- func IsIntranet(ipStr string) bool
- func KillProcessByCmdline(cmdline string) error
- func LocalHostIdent() string
- func PidsByCmdline(cmdline string) []int
- func WrapTimeout(cmd *exec.Cmd, timeout time.Duration) (error, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdRunT ¶
func CmdRunT(timeout time.Duration, name string, arg ...string) (output string, err error, istimeout bool)
CmdRunT Command run with timeout
func GetOutboundIpaddr ¶
func GetOutboundIpaddr() string
func IntranetIP ¶
func IsIntranet ¶
func KillProcessByCmdline ¶
func PidsByCmdline ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.