mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +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>
15 lines
235 B
Go
15 lines
235 B
Go
//go:build amd64 || arm64
|
|
|
|
package main
|
|
|
|
import (
|
|
"go.podman.io/podman/v6/pkg/machine/provider"
|
|
)
|
|
|
|
func getProvider() (string, error) {
|
|
p, err := provider.Get()
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return p.VMType().String(), nil
|
|
}
|