mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-31 02:07:42 +00:00
* EngineOptions obtained in command via `opt, err := registry.Options(cmd)` Signed-off-by: Jhon Honce <jhonce@redhat.com>
21 lines
533 B
Go
21 lines
533 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 podmanV2 is separated from libpod repo
|
|
|
|
func NewLibpodRuntime(flags *flag.FlagSet, opts entities.EngineOptions) (entities.ContainerEngine, error) {
|
|
r, err := GetRuntime(context.Background(), flags, opts)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &abi.ContainerEngine{Libpod: r}, nil
|
|
}
|