github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/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  // GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for
    29  // the pause process
    30  func GetRootlessPauseProcessPidPathGivenDir(unused string) (string, error) {
    31  	return "", errors.Wrap(errNotImplemented, "GetRootlessPauseProcessPidPath")
    32  }
    33  
    34  // GetRuntimeDir returns the runtime directory
    35  func GetRuntimeDir() (string, error) {
    36  	return "", errors.New("this function is not implemented for windows")
    37  }
    38  
    39  // GetRootlessConfigHomeDir returns the config home directory when running as non root
    40  func GetRootlessConfigHomeDir() (string, error) {
    41  	return "", errors.New("this function is not implemented for windows")
    42  }