generic

package
v0.244.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDistroNotFound = errors.New("distribution not found")
)

Functions

func DistroFactory

func DistroFactory(idStr string) distro.Distro

func New added in v0.241.0

func New(nameVer string) (distro.Distro, error)

func PlatformFor added in v0.241.0

func PlatformFor(archStr, uefiVendor string) *platform.Data

Types

type BootcDistro added in v0.241.0

type BootcDistro struct {
	// contains filtered or unexported fields
}

func NewBootc added in v0.241.0

func NewBootc(name string, cinfo *bootc.Info) (*BootcDistro, error)

NewBootc returns a distro initialised with the provided information. All required information must be defined. There are no restrictions or requirements for the name of the distro and it is only used to identify this particular instance of the distribution. The name bootc is commonly used, unless multiple instances are created. To generate the github.com/osbuild/images/pkg/bootc.Info from a container ref, use the github.com/osbuild/images/pkg/bootc.Container type and its methods.

func (*BootcDistro) BootstrapContainer added in v0.241.0

func (d *BootcDistro) BootstrapContainer(a string) (string, error)

func (*BootcDistro) Codename added in v0.241.0

func (d *BootcDistro) Codename() string

func (*BootcDistro) GetArch added in v0.241.0

func (d *BootcDistro) GetArch(arch string) (distro.Arch, error)

func (*BootcDistro) GetTweaks added in v0.241.0

func (d *BootcDistro) GetTweaks() *distro.Tweaks

func (*BootcDistro) ID added in v0.241.0

func (d *BootcDistro) ID() distro.ID

func (*BootcDistro) IDLike added in v0.241.0

func (d *BootcDistro) IDLike() manifest.Distro

func (*BootcDistro) ImageConfig added in v0.241.0

func (d *BootcDistro) ImageConfig() *distro.ImageConfig

func (*BootcDistro) ListArches added in v0.241.0

func (d *BootcDistro) ListArches() []string

func (*BootcDistro) ModulePlatformID added in v0.241.0

func (d *BootcDistro) ModulePlatformID() string

func (*BootcDistro) Name added in v0.241.0

func (d *BootcDistro) Name() string

func (*BootcDistro) OsVersion added in v0.241.0

func (d *BootcDistro) OsVersion() string

func (*BootcDistro) Product added in v0.241.0

func (d *BootcDistro) Product() string

func (*BootcDistro) Releasever added in v0.241.0

func (d *BootcDistro) Releasever() string

func (*BootcDistro) Runner added in v0.241.0

func (d *BootcDistro) Runner() runner.RunnerConf

func (*BootcDistro) SetBuildContainer added in v0.241.0

func (d *BootcDistro) SetBuildContainer(cinfo *bootc.Info) error

SetBuildContainer configures the build to use a separate container for the build root. To generate the github.com/osbuild/images/pkg/bootc.Info from a container ref, use the github.com/osbuild/images/pkg/bootc.Container type and its methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL