2019-10-18 19:08:35 +00:00
|
|
|
// +build openbsd
|
|
|
|
|
|
|
|
package hostutil
|
|
|
|
|
|
|
|
import (
|
2019-11-12 04:10:21 +00:00
|
|
|
"context"
|
2019-10-18 19:08:35 +00:00
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type HostInfo struct {
|
|
|
|
Timestamp time.Time `json:"timestamp"`
|
|
|
|
CPU []interface{} `json:"cpu"`
|
|
|
|
CPUTimes []interface{} `json:"cpu_times"`
|
|
|
|
Disk []interface{} `json:"disk"`
|
|
|
|
Host interface{} `json:"host"`
|
|
|
|
Memory interface{} `json:"memory"`
|
|
|
|
}
|
|
|
|
|
2019-11-12 04:10:21 +00:00
|
|
|
func CollectHostInfo(ctx context.Context) (*HostInfo, error) {
|
2019-10-18 19:08:35 +00:00
|
|
|
return nil, fmt.Errorf("host info not supported on this platform")
|
|
|
|
}
|
2021-03-11 15:25:15 +00:00
|
|
|
|
|
|
|
func CollectHostMemory(ctx context.Context) (*VirtualMemoryStat, error) {
|
|
|
|
return nil, fmt.Errorf("host info not supported on this platform")
|
|
|
|
}
|