Files
podman/pkg/machine/ocipull/oci.go
Paul Holzinger f3c82a917c pkg/machine: remove deadcode
Yes this is a lot.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-26 19:37:15 +02:00

26 lines
364 B
Go

package ocipull
import (
"fmt"
"github.com/blang/semver/v4"
"github.com/containers/podman/v5/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)
}