Documentation ¶
Index ¶
- func Base(pathStr string) string
- func GetHttpPort() (ret int)
- func GetIp() (ip net.IP, mac net.HardwareAddr)
- func GetOs() string
- func GetSshPort() (ret int)
- func GetValidPort(start int, end int, existPortMap *sync.Map) (ret int)
- func GetVncPort() (ret int)
- func IntToStrArr(intArr []int) (strArr []string)
- func IsLinux() bool
- func IsMac() bool
- func IsPortInUse(port int) bool
- func IsRelease() bool
- func IsWin() bool
- func LinkedMapToMap(mp maps.Map) map[string]string
- func NewSliceValue(vals []string, p *[]string) *sliceValue
- func RemoveBlankLine(str string) string
- func RemoveHttpPort(port int)
- func RemoveSshPort(port int)
- func RemoveVncPort(port int)
- func UintToStrArr(intArr []uint) (strArr []string)
- func UpdateUrl(url string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHttpPort ¶
func GetHttpPort() (ret int)
func GetSshPort ¶
func GetSshPort() (ret int)
func GetVncPort ¶
func GetVncPort() (ret int)
func IntToStrArr ¶
func IsPortInUse ¶
func NewSliceValue ¶
func RemoveBlankLine ¶
func RemoveHttpPort ¶
func RemoveHttpPort(port int)
func RemoveSshPort ¶
func RemoveSshPort(port int)
func RemoveVncPort ¶
func RemoveVncPort(port int)
func UintToStrArr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.