open-vault/helper/hostutil/hostinfo_openbsd.go
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

30 lines
695 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build openbsd
package hostutil
import (
"context"
"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"`
}
func CollectHostInfo(ctx context.Context) (*HostInfo, error) {
return nil, fmt.Errorf("host info not supported on this platform")
}
func CollectHostMemory(ctx context.Context) (*VirtualMemoryStat, error) {
return nil, fmt.Errorf("host info not supported on this platform")
}