spiegel_podman/pkg/machine/ocipull/oci.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

25 lines
355 B
Go

package ocipull
import (
"fmt"
"github.com/blang/semver/v4"
"go.podman.io/podman/v6/version"
)
type OSVersion struct {
*semver.Version
}
type Disker interface {
Get() error
}
func getVersion() *OSVersion {
v := version.Version
return &OSVersion{&v}
}
func (o *OSVersion) majorMinor() string {
return fmt.Sprintf("%d.%d", o.Major, o.Minor)
}