Public source validation / validate (push) Failing after 3m8s
12 lines
359 B
Go
12 lines
359 B
Go
//go:build !linux
|
|
|
|
package hostcollect
|
|
|
|
import "errors"
|
|
|
|
// statFS is unavailable off Linux. The package still builds and its parsers stay
|
|
// testable on a developer machine; filesystem usage simply degrades to a warning.
|
|
func statFS(string) (FilesystemUsage, error) {
|
|
return FilesystemUsage{}, errors.New("hostcollect: statfs is only available on linux")
|
|
}
|