Documentation ¶
Index ¶
- Variables
- type Commander
- type Hardware
- func (hw *Hardware) CPUPercentUsage() (usage int, err error)
- func (hw *Hardware) GetPoolCapacity(ctx context.Context, poolName string) (capacity int, err error)
- func (hw *Hardware) GetPoolErrors(ctx context.Context, poolName string) (errors string, err error)
- func (hw *Hardware) GetPoolHealth(ctx context.Context, poolName string) (health string, err error)
- func (hw *Hardware) GetPools(ctx context.Context) (poolNames []string, err error)
- func (hw *Hardware) IsZpoolInstalled(ctx context.Context) bool
- func (hw *Hardware) PartitionsUsage(ctx context.Context) (partitionsUsage map[string]int, warnings []string, err error)
- func (hw *Hardware) ProcessesCount() (processes int)
- func (hw *Hardware) RAMPercentUsage() (usage int)
- func (hw *Hardware) Uptime() time.Duration
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExtractPartitionInformation = errors.New("cannot extract partition information")
)
Functions ¶
This section is empty.
Types ¶
type Hardware ¶
type Hardware struct {
// contains filtered or unexported fields
}
func (*Hardware) CPUPercentUsage ¶
func (*Hardware) GetPoolCapacity ¶
func (*Hardware) GetPoolErrors ¶
func (*Hardware) GetPoolHealth ¶
func (*Hardware) PartitionsUsage ¶
func (*Hardware) ProcessesCount ¶
func (*Hardware) RAMPercentUsage ¶
Click to show internal directories.
Click to hide internal directories.