github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/pkg/util/utils_windows.go (about)

     1  // +build windows
     2  
     3  package util
     4  
     5  import (
     6  	"github.com/pkg/errors"
     7  )
     8  
     9  var errNotImplemented = errors.New("not yet implemented")
    10  
    11  // IsCgroup2UnifiedMode returns whether we are running in cgroup 2 unified mode.
    12  func IsCgroup2UnifiedMode() (bool, error) {
    13  	return false, errors.Wrap(errNotImplemented, "IsCgroup2Unified")
    14  }
    15  
    16  // GetContainerPidInformationDescriptors returns a string slice of all supported
    17  // format descriptors of GetContainerPidInformation.
    18  func GetContainerPidInformationDescriptors() ([]string, error) {
    19  	return nil, errors.Wrap(errNotImplemented, "GetContainerPidInformationDescriptors")
    20  }
    21  
    22  // GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for
    23  // the pause process
    24  func GetRootlessPauseProcessPidPath() (string, error) {
    25  	return "", errors.Wrap(errNotImplemented, "GetRootlessPauseProcessPidPath")
    26  }
    27  
    28  // GetRuntimeDir returns the runtime directory
    29  func GetRuntimeDir() (string, error) {
    30  	return "", errors.New("this function is not implemented for windows")
    31  }
    32  
    33  // GetRootlessConfigHomeDir returns the config home directory when running as non root
    34  func GetRootlessConfigHomeDir() (string, error) {
    35  	return "", errors.New("this function is not implemented for windows")
    36  }