mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
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:
23
libpod/util_unsupported.go
Normal file
23
libpod/util_unsupported.go
Normal 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")
|
||||
}
|
Reference in New Issue
Block a user