automation-tests/cmd/podman/compose_machine_unix.go

17 lines
365 B
Go

//go:build (amd64 || arm64) && !windows
package main
import (
"errors"
"github.com/containers/podman/v5/pkg/machine/define"
)
func extractConnectionString(podmanSocket *define.VMFile, podmanPipe *define.VMFile) (string, error) {
if podmanSocket == nil {
return "", errors.New("socket of machine is not set")
}
return "unix://" + podmanSocket.Path, nil
}