spiegel_podman/cmd/podman/compose_machine.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

22 lines
498 B
Go

//go:build amd64 || arm64
package main
import (
"net/url"
"go.podman.io/podman/v6/internal/localapi"
)
func getMachineConn(connectionURI string, parsedConnection *url.URL) (string, error) {
mc, machineProvider, err := localapi.FindMachineByPort(connectionURI, parsedConnection)
if err != nil {
return "", err
}
podmanSocket, podmanPipe, err := mc.ConnectionInfo(machineProvider.VMType())
if err != nil {
return "", err
}
return extractConnectionString(podmanSocket, podmanPipe)
}