shirou_gopsutil/disk/disk_fallback.go

34 lines
912 B
Go
Raw Normal View History

2017-08-03 10:08:35 +08:00
// +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris
package disk
2017-12-31 14:25:49 +08:00
import (
"context"
"github.com/shirou/gopsutil/internal/common"
)
func IOCounters(names ...string) (map[string]IOCountersStat, error) {
2017-12-31 14:25:49 +08:00
return IOCountersWithContext(context.Background(), names...)
}
func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
return nil, common.ErrNotImplementedError
}
func Partitions(all bool) ([]PartitionStat, error) {
2017-12-31 14:25:49 +08:00
return PartitionsWithContext(context.Background(), all)
}
func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, error) {
return []PartitionStat{}, common.ErrNotImplementedError
}
func Usage(path string) (*UsageStat, error) {
2017-12-31 14:25:49 +08:00
return UsageWithContext(context.Background(), path)
}
func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
return nil, common.ErrNotImplementedError
}