mirror of
https://github.com/containers/podman.git
synced 2026-06-07 15:25:45 -04:00
add system df, info, load, renumber, and migrate Refactor for specialized libpod engines add the ability to prune images, volumes, containers, and pods Signed-off-by: baude <bbaude@redhat.com>
30 lines
779 B
Go
30 lines
779 B
Go
// +build ABISupport
|
|
|
|
package infra
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containers/libpod/pkg/domain/entities"
|
|
"github.com/containers/libpod/pkg/domain/infra/abi"
|
|
flag "github.com/spf13/pflag"
|
|
)
|
|
|
|
// ContainerEngine Proxy will be EOL'ed after podman is separated from libpod repo
|
|
|
|
func NewLibpodRuntime(flags *flag.FlagSet, opts *entities.PodmanConfig) (entities.ContainerEngine, error) {
|
|
r, err := GetRuntime(context.Background(), flags, opts)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &abi.ContainerEngine{Libpod: r}, nil
|
|
}
|
|
|
|
func NewLibpodImageRuntime(flags *flag.FlagSet, opts *entities.PodmanConfig) (entities.ImageEngine, error) {
|
|
r, err := GetRuntime(context.Background(), flags, opts)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &abi.ImageEngine{Libpod: r}, nil
|
|
}
|