go.mod: bump osbuild/images to 51

This commit is contained in:
Sanne Raymaekers 2024-03-26 14:07:44 +01:00
parent 9aa80c25bc
commit 1ce72071b4
38 changed files with 507 additions and 153 deletions

View file

@ -45,10 +45,19 @@ type Distro interface {
// files on the host system and required for the subscription support.
Releasever() string
// Returns the OS version of the distro, which may contain minor versions
// if the distro supports them. This is used in various places where the
// minor version of the distro is needed to determine the correct
// configuration.
OsVersion() string
// Returns the module platform id of the distro. This is used by DNF
// for modularity support.
ModulePlatformID() string
// Returns the product name of the distro.
Product() string
// Returns the ostree reference template
OSTreeRef() string
@ -96,6 +105,10 @@ type ImageType interface {
// Returns the default OSTree ref for the image type.
OSTreeRef() string
// Returns the ISO Label for the image type. Returns an error if the image
// type is not an ISO.
ISOLabel() (string, error)
// Returns the proper image size for a given output format. If the input size
// is 0 the default value for the format will be returned.
Size(size uint64) uint64