summaryrefslogtreecommitdiff
path: root/libpod/util_unsupported.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-08-13 16:23:24 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-15 18:07:04 +0000
commit74cf870792d45333060a209d142ff360b38cceae (patch)
treef3b566253ecf4107db44b3898f4c248170a36ddd /libpod/util_unsupported.go
parent0998808a752a8a7ae43f2630023b22c1b3de47a4 (diff)
downloadpodman-74cf870792d45333060a209d142ff360b38cceae.tar.gz
podman-74cf870792d45333060a209d142ff360b38cceae.tar.bz2
podman-74cf870792d45333060a209d142ff360b38cceae.zip
Fix build on non-Linux OSes
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1266 Approved by: baude
Diffstat (limited to 'libpod/util_unsupported.go')
-rw-r--r--libpod/util_unsupported.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/libpod/util_unsupported.go b/libpod/util_unsupported.go
new file mode 100644
index 000000000..d598b465f
--- /dev/null
+++ b/libpod/util_unsupported.go
@@ -0,0 +1,23 @@
+// +build !linux
+
+package libpod
+
+import (
+ "github.com/pkg/errors"
+)
+
+func systemdSliceFromPath(parent, name string) (string, error) {
+ return "", errors.Wrapf(ErrOSNotSupported, "cgroups are not supported on non-linux OSes")
+}
+
+func makeSystemdCgroup(path string) error {
+ return errors.Wrapf(ErrOSNotSupported, "cgroups are not supported on non-linux OSes")
+}
+
+func deleteSystemdCgroup(path string) error {
+ return errors.Wrapf(ErrOSNotSupported, "cgroups are not supported on non-linux OSes")
+}
+
+func assembleSystemdCgroupName(baseSlice, newSlice string) (string, error) {
+ return "", errors.Wrapf(ErrOSNotSupported, "cgroups are not supported on non-linux OSes")
+}