gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

cgroups_unsupported.go (355B)


      1 //go:build !linux
      2 // +build !linux
      3 
      4 package memlimit
      5 
      6 func FromCgroup() (uint64, error) {
      7 	return 0, ErrCgroupsNotSupported
      8 }
      9 
     10 func FromCgroupV1() (uint64, error) {
     11 	return 0, ErrCgroupsNotSupported
     12 }
     13 
     14 func fromCgroupHybrid() (uint64, error) {
     15 	return 0, ErrCgroupsNotSupported
     16 }
     17 
     18 func FromCgroupV2() (uint64, error) {
     19 	return 0, ErrCgroupsNotSupported
     20 }