diskcheck_js.go 472 B

12345678910111213141516
  1. package healthcheck
  2. import "fmt"
  3. // AvailableDiskSpaceRatio returns ratio of available disk space to total
  4. // capacity.
  5. func AvailableDiskSpaceRatio(_ string) (float64, error) {
  6. return 0, fmt.Errorf("disk space check not supported in WebAssembly")
  7. }
  8. // AvailableDiskSpace returns the available disk space in bytes of the given
  9. // file system.
  10. func AvailableDiskSpace(_ string) (uint64, error) {
  11. return 0, fmt.Errorf("disk space check not supported in WebAssembly")
  12. }