pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/system/info_fs_darwin.go (about)

     1  package system
     2  
     3  // ////////////////////////////////////////////////////////////////////////////////// //
     4  //                                                                                    //
     5  //                         Copyright (c) 2022 ESSENTIAL KAOS                          //
     6  //      Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0>     //
     7  //                                                                                    //
     8  // ////////////////////////////////////////////////////////////////////////////////// //
     9  
    10  import (
    11  	"time"
    12  )
    13  
    14  // ////////////////////////////////////////////////////////////////////////////////// //
    15  
    16  // ❗ GetFSUsage returns info about mounted filesystems
    17  func GetFSUsage() (map[string]*FSUsage, error) {
    18  	panic("UNSUPPORTED")
    19  	return map[string]*FSUsage{"/": {}}, nil
    20  }
    21  
    22  // ❗ GetIOStats returns I/O stats
    23  func GetIOStats() (map[string]*IOStats, error) {
    24  	panic("UNSUPPORTED")
    25  	return map[string]*IOStats{"/dev/sda1": {}}, nil
    26  }
    27  
    28  // ❗ GetIOUtil returns IO utilization
    29  func GetIOUtil(duration time.Duration) (map[string]float64, error) {
    30  	panic("UNSUPPORTED")
    31  	return map[string]float64{"/": 0}, nil
    32  }
    33  
    34  // ❗ CalculateIOUtil calculates IO utilization for all devices
    35  func CalculateIOUtil(io1, io2 map[string]*IOStats, duration time.Duration) map[string]float64 {
    36  	panic("UNSUPPORTED")
    37  	return map[string]float64{"/": 0}
    38  }