package
Version:
v1.30.0
Opens a new window with list of versions in this module.
Published: Dec 4, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Base = 10
Bitwise = 30
Duration = 2 * time.Second
GB = "GB"
Milli = 1000
Current = "."
Parent = ".."
Root = "/"
Dev = "/dev/"
Home = "/home"
)
type Entry struct {
Name string `json:"name"`
IsDir bool `json:"isDir"`
Size int64 `json:"size"`
Time string `json:"time"`
User string `json:"user"`
Group string `json:"group"`
Mode string `json:"mode"`
}
type Glance interface {
Init(context.Context) error
Deinit(context.Context) error
Dir(context.Context, string) ([]Entry, error)
File(context.Context, string, int64) (string, bool, error)
Sys(context.Context) (Resource, Resource, Stats, Stats, Stats, string, string, error)
}
type Resource struct {
MilliCPU int64 `json:"milliCPU"`
Memory int64 `json:"memory"`
Storage int64 `json:"storage"`
}
type Stats struct {
Total string `json:"total"`
Used string `json:"used"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.