diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-08-10 12:01:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-10 12:01:57 +0200 |
commit | 3a554a0fda3acb460d0656b1bf059603dfd79a4d (patch) | |
tree | 151424d1e16f30b56c04200c2a0ed45106be3133 /pkg/util | |
parent | 8c77dd77af6852d1980949730663fc6814aacbdf (diff) | |
parent | b31130a79d51ad68e9d332eafd712abf7266e22c (diff) | |
download | podman-3a554a0fda3acb460d0656b1bf059603dfd79a4d.tar.gz podman-3a554a0fda3acb460d0656b1bf059603dfd79a4d.tar.bz2 podman-3a554a0fda3acb460d0656b1bf059603dfd79a4d.zip |
Merge pull request #3746 from baude/enablewindowsremote
enable windows remote client
Diffstat (limited to 'pkg/util')
-rw-r--r-- | pkg/util/utils_windows.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pkg/util/utils_windows.go b/pkg/util/utils_windows.go index e7b2a272e..e781e6717 100644 --- a/pkg/util/utils_windows.go +++ b/pkg/util/utils_windows.go @@ -6,29 +6,31 @@ import ( "github.com/pkg/errors" ) +var errNotImplemented = errors.New("not yet implemented") + // IsCgroup2UnifiedMode returns whether we are running in cgroup 2 unified mode. func IsCgroup2UnifiedMode() (bool, error) { - return false, errors.New("this function is not implemented for windows") + return false, errors.Wrap(errNotImplemented, "IsCgroup2Unified") } // GetContainerPidInformationDescriptors returns a string slice of all supported // format descriptors of GetContainerPidInformation. func GetContainerPidInformationDescriptors() ([]string, error) { - return nil, errors.New("this function is not implemented for windows") + return nil, errors.Wrap(errNotImplemented, "GetContainerPidInformationDescriptors") } // GetRootlessPauseProcessPidPath returns the path to the file that holds the pid for // the pause process func GetRootlessPauseProcessPidPath() (string, error) { - return "", errors.New("this function is not implemented for windows") + return "", errors.Wrap(errNotImplemented, "GetRootlessPauseProcessPidPath") } // GetRootlessRuntimeDir returns the runtime directory when running as non root func GetRootlessRuntimeDir() (string, error) { - return "", errors.New("this function is not implemented for windows") + return "", errors.Wrap(errNotImplemented, "GetRootlessRuntimeDir") } // GetRootlessConfigHomeDir returns the config home directory when running as non root func GetRootlessConfigHomeDir() (string, error) { - return "", errors.New("this function is not implemented for windows") + return "", errors.Wrap(errNotImplemented, "GetRootlessConfigHomeDir") } |