diff options
Diffstat (limited to 'libpod/util_unsupported.go')
-rw-r--r-- | libpod/util_unsupported.go | 23 |
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") +} |