2021-07-15 10:45:22 +02:00
|
|
|
package healthcheck
|
|
|
|
|
2021-07-28 10:58:41 +02:00
|
|
|
import "fmt"
|
|
|
|
|
2021-07-15 10:45:22 +02:00
|
|
|
// AvailableDiskSpaceRatio returns ratio of available disk space to total
|
|
|
|
// capacity.
|
2021-07-28 10:58:41 +02:00
|
|
|
func AvailableDiskSpaceRatio(_ string) (float64, error) {
|
2021-07-15 10:45:22 +02:00
|
|
|
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
|
|
|
}
|
|
|
|
|
|
|
|
// AvailableDiskSpace returns the available disk space in bytes of the given
|
|
|
|
// file system.
|
2021-07-28 10:58:41 +02:00
|
|
|
func AvailableDiskSpace(_ string) (uint64, error) {
|
2021-07-15 10:45:22 +02:00
|
|
|
return 0, fmt.Errorf("disk space check not supported in WebAssembly")
|
|
|
|
}
|