Fix build on non-Linux OSes

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #1266
Approved by: baude
This commit is contained in:
Matthew Heon
2018-08-13 16:23:24 -04:00
committed by Atomic Bot
parent 0998808a75
commit 74cf870792
3 changed files with 92 additions and 58 deletions

View File

@ -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")
}