2019-07-16 18:25:53 +08:00
|
|
|
// +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris
|
2016-08-23 06:31:26 +08:00
|
|
|
|
|
|
|
package disk
|
|
|
|
|
2017-12-31 14:25:49 +08:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/shirou/gopsutil/internal/common"
|
|
|
|
)
|
2016-08-23 06:31:26 +08:00
|
|
|
|
2017-04-14 09:53:09 +08:00
|
|
|
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) {
|
2016-08-23 06:31:26 +08:00
|
|
|
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) {
|
2016-08-23 06:31:26 +08:00
|
|
|
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) {
|
2016-08-23 06:31:26 +08:00
|
|
|
return nil, common.ErrNotImplementedError
|
|
|
|
}
|