fork/gdu
git clone https://git.julia.blue/fork/gdu
516c421
ignore
1//go:build windows || plan9 2 3package device 4 5import "errors" 6 7// OtherDevicesInfoGetter returns info for other devices 8type OtherDevicesInfoGetter struct {} 9 10// Getter is current instance of DevicesInfoGetter 11var Getter DevicesInfoGetter = OtherDevicesInfoGetter {} 12 13// GetDevicesInfo returns result of GetMounts with usage info about mounted devices 14func (t OtherDevicesInfoGetter )GetDevicesInfo () (devices Devices ,err error ) { 15return nil ,errors .New ("Only Linux platform is supported for listing devices" ) 16} 17 18// GetMounts returns all mounted filesystems 19func (t OtherDevicesInfoGetter )GetMounts () (devices Devices ,err error ) { 20return nil ,errors .New ("Only Linux platform is supported for listing mount points" ) 21}