mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-14 04:39:33 +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>
25 lines
355 B
Go
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)
|
|
}
|