disk_fallback.go 900 B

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