Documentation ¶
Index ¶
- func CopyDir(src, dst string) error
- func CopyFile(src, dst string) error
- func GetCpuNum() int
- func GetCurrentDirectory() (string, error)
- func GetDiskSpace() (uint64, error)
- func GetFreeDiskSpace() (uint64, error)
- func GetHostCurrentUser() (string, error)
- func GetHostIP() (string, error)
- func GetHostTotalMem() (uint64, error)
- func GetHostUsedMem() (uint64, error)
- func GetHostname() (string, error)
- func GetOSArch() string
- func GetOSCurrentUser() (string, error)
- func GetOSName() string
- func GetPlatform() string
- func GetUserHomeDir() (string, error)
- func GetWorkingDir() (string, error)
- func IToi(before interface{}, after interface{}) error
- func Mkdir(dir string) error
- type PlatformParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentDirectory ¶
func GetDiskSpace ¶
func GetFreeDiskSpace ¶
func GetHostCurrentUser ¶
func GetHostTotalMem ¶
func GetHostUsedMem ¶
func GetHostname ¶
func GetOSCurrentUser ¶
func GetPlatform ¶
func GetPlatform() string
func GetUserHomeDir ¶
func GetWorkingDir ¶
Types ¶
type PlatformParameters ¶
type PlatformParameters struct { IP string `json:"ip"` OS string `json:"os"` Arch string `json:"arch"` CurrentUser string `json:"current_user"` MemTotal uint64 `json:"mem_total"` UsedMem uint64 `json:"used_mem"` CpuNum int `json:"cpu_num"` DiskSpace uint64 `json:"disk_space"` FreeDiskSpace uint64 `json:"free_disk_space"` Hostname string `json:"hostname"` }
func GetPlatformParameters ¶
func GetPlatformParameters() (*PlatformParameters, error)
Click to show internal directories.
Click to hide internal directories.