shirou_gopsutil/disk/disk_fallback.go

30 lines
815 B
Go
Raw Normal View History

2021-11-09 21:14:54 +08:00
// +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris,!aix
package disk
2017-12-31 14:25:49 +08:00
import (
"context"
"github.com/shirou/gopsutil/v3/internal/common"
2017-12-31 14:25:49 +08:00
)
2017-12-31 14:25:49 +08:00
func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
return nil, common.ErrNotImplementedError
}
2017-12-31 14:25:49 +08:00
func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, error) {
return []PartitionStat{}, common.ErrNotImplementedError
}
2017-12-31 14:25:49 +08:00
func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
return nil, common.ErrNotImplementedError
}
func SerialNumberWithContext(ctx context.Context, name string) (string, error) {
return "", common.ErrNotImplementedError
}
func LabelWithContext(ctx context.Context, name string) (string, error) {
return "", common.ErrNotImplementedError
}