File: dev_other.go

package info (click to toggle)
gdu 5.25.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 624 kB
  • sloc: makefile: 122
file content (22 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//go:build windows || plan9
// +build windows plan9

package device

import "errors"

// OtherDevicesInfoGetter returns info for other devices
type OtherDevicesInfoGetter struct{}

// Getter is current instance of DevicesInfoGetter
var Getter DevicesInfoGetter = OtherDevicesInfoGetter{}

// GetDevicesInfo returns result of GetMounts with usage info about mounted devices
func (t OtherDevicesInfoGetter) GetDevicesInfo() (Devices, error) {
	return nil, errors.New("Only Linux platform is supported for listing devices")
}

// GetMounts returns all mounted filesystems
func (t OtherDevicesInfoGetter) GetMounts() (Devices, error) {
	return nil, errors.New("Only Linux platform is supported for listing mount points")
}