mirror of
https://github.com/containers/podman.git
synced 2025-05-23 10:07:33 +08:00

Note: this makes info.go linux-only since it mixes linux-specific and generic code. This should be addressed in a separate refactoring PR. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson <dfr@rabson.org>
28 lines
733 B
Go
28 lines
733 B
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"errors"
|
|
|
|
spec "github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
// systemdSliceFromPath makes a new systemd slice under the given parent with
|
|
// the given name.
|
|
// The parent must be a slice. The name must NOT include ".slice"
|
|
func systemdSliceFromPath(parent, name string, resources *spec.LinuxResources) (string, error) {
|
|
return "", errors.New("not implemented systemdSliceFromPath")
|
|
}
|
|
|
|
// Unmount umounts a target directory
|
|
func Unmount(mount string) {
|
|
}
|
|
|
|
// LabelVolumePath takes a mount path for a volume and gives it an
|
|
// selinux label of either shared or not
|
|
func LabelVolumePath(path string) error {
|
|
return errors.New("not implemented LabelVolumePath")
|
|
}
|