Documentation
¶
Index ¶
- Variables
- func CompressToGzipFile(srcPath, dstPath string) error
- func CpuLoad1Usage() float64
- func DiskUsagePercent() float64
- func EnsureDirExist(path string) error
- func MemoryUsagePercent() float64
- func ParseMemLimit(lines []string) (uint64, error)
- func ParseMemUsage(lines []string) (uint64, error)
- func ReadFileLines(path string) ([]string, error)
- type Mem
- type MemStat
- type UTCTime
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLines = errors.New("not correct line format")
)
View Source
var (
ErrUnSupportFormat = errors.New("unsupported time format")
)
Functions ¶
func CompressToGzipFile ¶
func CpuLoad1Usage ¶
func CpuLoad1Usage() float64
func DiskUsagePercent ¶
func DiskUsagePercent() float64
func EnsureDirExist ¶
func MemoryUsagePercent ¶
func MemoryUsagePercent() float64
func ParseMemLimit ¶
func ParseMemUsage ¶
func ReadFileLines ¶
Types ¶
type Mem ¶
func (Mem) MemUsageNoCache ¶
type MemStat ¶
func ParseMemStat ¶
type UTCTime ¶
func NewNowUTCTime ¶
func NewNowUTCTime() UTCTime
func NewUTCTime ¶
func (UTCTime) MarshalJSON ¶
func (*UTCTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.