1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
//go: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 Devices, err error) {
return nil, errors.New("Only Linux platform is supported for listing devices")
}
// GetMounts returns all mounted filesystems
func (t OtherDevicesInfoGetter) GetMounts() (devices Devices, err error) {
return nil, errors.New("Only Linux platform is supported for listing mount points")
}
|