mirror of
https://github.com/containers/podman.git
synced 2025-06-18 15:39:08 +08:00

This is basically the same change as ff47a4c2d5485fc49f937f3ce0c4e2fd6bdb1956 (Use a struct to pass options to Checkpoint()) just for the Restore() function. It is used to pass multiple restore options to the API and down to conmon which is used to restore containers. This is for the upcoming changes to support checkpointing and restoring containers with '--tcp-established'. Signed-off-by: Adrian Reber <areber@redhat.com>
29 lines
571 B
Go
29 lines
571 B
Go
// +build !linux
|
|
|
|
package libpod
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
)
|
|
|
|
func (r *OCIRuntime) moveConmonToCgroup(ctr *Container, cgroupParent string, cmd *exec.Cmd) error {
|
|
return ErrOSNotSupported
|
|
}
|
|
|
|
func newPipe() (parent *os.File, child *os.File, err error) {
|
|
return nil, nil, ErrNotImplemented
|
|
}
|
|
|
|
func (r *OCIRuntime) createContainer(ctr *Container, cgroupParent string, restoreOptions *ContainerCheckpointOptions) (err error) {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func (r *OCIRuntime) pathPackage() string {
|
|
return ""
|
|
}
|
|
|
|
func (r *OCIRuntime) conmonPackage() string {
|
|
return ""
|
|
}
|