bootc

package
v0.219.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewBootcDistroForTesting = newBootcDistroAfterIntrospect

NewBootcDistroForTesting can be used to generate test manifests. The container introspection is skipped. Do not use this for anything but tests.

Functions

func DistroFactory

func DistroFactory(idStr string) distro.Distro

func GetDistroAndRunner added in v0.210.0

func GetDistroAndRunner(osRelease osinfo.OSRelease) (manifest.Distro, runner.Runner, error)

func LabelForISO added in v0.210.0

func LabelForISO(os *osinfo.OSRelease, arch string) string

func LoraxTemplatePackage added in v0.210.0

func LoraxTemplatePackage(si osinfo.OSRelease) string

func LoraxTemplates added in v0.210.0

func LoraxTemplates(si osinfo.OSRelease) []manifest.InstallerLoraxTemplate

func NeedsRHELLoraxTemplates added in v0.210.0

func NeedsRHELLoraxTemplates(si osinfo.OSRelease) bool

func PlatformFor added in v0.210.0

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

Types

type BootcArch

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

func (*BootcArch) Distro

func (a *BootcArch) Distro() distro.Distro

func (*BootcArch) GetImageType

func (a *BootcArch) GetImageType(imageType string) (distro.ImageType, error)

func (*BootcArch) ListImageTypes

func (a *BootcArch) ListImageTypes() []string

func (*BootcArch) Name

func (a *BootcArch) Name() string

type BootcDistro

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

func NewBootcDistro

func NewBootcDistro(imgref string, opts *DistroOptions) (*BootcDistro, error)

newBootcDistro returns a new instance of BootcDistro from the given url

func (*BootcDistro) Codename

func (d *BootcDistro) Codename() string

func (*BootcDistro) DefaultFs added in v0.184.0

func (d *BootcDistro) DefaultFs() string

func (*BootcDistro) GetArch

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

func (*BootcDistro) ListArches

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

func (*BootcDistro) ModulePlatformID

func (d *BootcDistro) ModulePlatformID() string

func (*BootcDistro) Name

func (d *BootcDistro) Name() string

func (*BootcDistro) OSTreeRef

func (d *BootcDistro) OSTreeRef() string

func (*BootcDistro) OsVersion

func (d *BootcDistro) OsVersion() string

func (*BootcDistro) Product

func (d *BootcDistro) Product() string

func (*BootcDistro) Releasever

func (d *BootcDistro) Releasever() string

func (*BootcDistro) SetBuildContainer

func (d *BootcDistro) SetBuildContainer(imgref string) (err error)

func (*BootcDistro) SetBuildContainerForTesting added in v0.190.0

func (d *BootcDistro) SetBuildContainerForTesting(imgref string, info *osinfo.Info) error

SetBuildContainerForTesting should only be used for in tests please use "SetBuildContainer" instead

type BootcImageType

type BootcImageType struct {
	defs.ImageTypeYAML
	// contains filtered or unexported fields
}

func (*BootcImageType) Aliases

func (t *BootcImageType) Aliases() []string

func (*BootcImageType) Arch

func (t *BootcImageType) Arch() distro.Arch

func (*BootcImageType) BasePartitionTable

func (t *BootcImageType) BasePartitionTable() (*disk.PartitionTable, error)

func (*BootcImageType) BootMode

func (t *BootcImageType) BootMode() platform.BootMode

func (*BootcImageType) Exports

func (t *BootcImageType) Exports() []string

func (*BootcImageType) Filename

func (t *BootcImageType) Filename() string

func (*BootcImageType) ISOLabel

func (t *BootcImageType) ISOLabel() (string, error)

func (*BootcImageType) MIMEType

func (t *BootcImageType) MIMEType() string

func (*BootcImageType) Manifest

func (t *BootcImageType) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, seedp *int64) (*manifest.Manifest, []string, error)

func (*BootcImageType) Name

func (t *BootcImageType) Name() string

func (*BootcImageType) OSTreeRef

func (t *BootcImageType) OSTreeRef() string

func (*BootcImageType) PartitionType

func (t *BootcImageType) PartitionType() disk.PartitionTableType

func (*BootcImageType) PayloadPackageSets

func (t *BootcImageType) PayloadPackageSets() []string

func (*BootcImageType) RequiredBlueprintOptions

func (t *BootcImageType) RequiredBlueprintOptions() []string

func (*BootcImageType) Size

func (t *BootcImageType) Size(size uint64) uint64

func (*BootcImageType) SupportedBlueprintOptions

func (t *BootcImageType) SupportedBlueprintOptions() []string

type DistroOptions added in v0.217.0

type DistroOptions struct {
	// DefaultFs to use, this takes precedence over the default
	// from the container and is required if the container does
	// not declare a default.
	DefaultFs string
}

Directories

Path Synopsis
exe command

Jump to

Keyboard shortcuts

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