spiegel_podman/internal/domain/infra/runtime_proxy.go
Brent Baude 2cc3be7332
RUN-4539: Change podman module paths
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>
2026-04-22 14:02:25 -05:00

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
}