mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 12:49:36 +00:00
The podman module paths are moving from github.com/containers/podman to go.podman.io/podman. This will help with future mobility. Signed-off-by: Brent Baude <bbaude@redhat.com>
26 lines
701 B
Go
26 lines
701 B
Go
//go:build !remote && (linux || freebsd)
|
|
|
|
package infra
|
|
|
|
import (
|
|
"context"
|
|
|
|
flag "github.com/spf13/pflag"
|
|
ientities "go.podman.io/podman/v6/internal/domain/entities"
|
|
"go.podman.io/podman/v6/internal/domain/infra/abi"
|
|
"go.podman.io/podman/v6/pkg/domain/entities"
|
|
"go.podman.io/podman/v6/pkg/domain/infra"
|
|
"go.podman.io/storage"
|
|
)
|
|
|
|
func NewLibpodTestingRuntime(flags *flag.FlagSet, opts *entities.PodmanConfig) (ientities.TestingEngine, error) {
|
|
r, err := infra.GetRuntime(context.Background(), flags, opts)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
store, err := storage.GetStore(r.StorageConfig())
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &abi.TestingEngine{Libpod: r, Store: store}, nil
|
|
}
|