mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-17 11:27:33 +00:00
15 lines
343 B
Go
15 lines
343 B
Go
package main
|
|
|
|
import (
|
|
"errors"
|
|
"path/filepath"
|
|
|
|
"github.com/containers/podman/v5/pkg/machine/define"
|
|
)
|
|
|
|
func extractConnectionString(_ *define.VMFile, podmanPipe *define.VMFile) (string, error) {
|
|
if podmanPipe == nil {
|
|
return "", errors.New("pipe of machine is not set")
|
|
}
|
|
return "npipe://" + filepath.ToSlash(podmanPipe.Path), nil
|
|
}
|