disk_fallback.go 912 B

123456789101112131415161718192021222324252627282930313233
  1. // +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris
  2. package disk
  3. import (
  4. "context"
  5. "github.com/shirou/gopsutil/internal/common"
  6. )
  7. func IOCounters(names ...string) (map[string]IOCountersStat, error) {
  8. return IOCountersWithContext(context.Background(), names...)
  9. }
  10. func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) {
  11. return nil, common.ErrNotImplementedError
  12. }
  13. func Partitions(all bool) ([]PartitionStat, error) {
  14. return PartitionsWithContext(context.Background(), all)
  15. }
  16. func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, error) {
  17. return []PartitionStat{}, common.ErrNotImplementedError
  18. }
  19. func Usage(path string) (*UsageStat, error) {
  20. return UsageWithContext(context.Background(), path)
  21. }
  22. func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
  23. return nil, common.ErrNotImplementedError
  24. }