Documentation
¶
Index ¶
- Constants
- Variables
- func DistroFactory(idStr string) distro.Distro
- func GetDistroAndRunner(osRelease osinfo.OSRelease) (manifest.Distro, runner.Runner, error)
- func LabelForISO(os *osinfo.OSRelease, arch string) string
- func LoraxTemplatePackage(si osinfo.OSRelease) string
- func LoraxTemplates(si osinfo.OSRelease) []manifest.InstallerLoraxTemplate
- func NeedsRHELLoraxTemplates(si osinfo.OSRelease) bool
- func PlatformFor(archStr, uefiVendor string) *platform.Data
- type BootcAnacondaInstaller
- func (t *BootcAnacondaInstaller) Aliases() []string
- func (t *BootcAnacondaInstaller) Arch() distro.Arch
- func (t *BootcAnacondaInstaller) BasePartitionTable() (*disk.PartitionTable, error)
- func (t *BootcAnacondaInstaller) BootMode() platform.BootMode
- func (t *BootcAnacondaInstaller) BuildPipelines() []string
- func (t *BootcAnacondaInstaller) Exports() []string
- func (t *BootcAnacondaInstaller) Filename() string
- func (t *BootcAnacondaInstaller) ISOLabel() (string, error)
- func (t *BootcAnacondaInstaller) MIMEType() string
- func (t *BootcAnacondaInstaller) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, ...) (*manifest.Manifest, []string, error)
- func (t *BootcAnacondaInstaller) Name() string
- func (t *BootcAnacondaInstaller) OSTreeRef() string
- func (t *BootcAnacondaInstaller) PartitionType() disk.PartitionTableType
- func (t *BootcAnacondaInstaller) PayloadPackageSets() []string
- func (t *BootcAnacondaInstaller) PayloadPipelines() []string
- func (t *BootcAnacondaInstaller) RequiredBlueprintOptions() []string
- func (t *BootcAnacondaInstaller) Size(size uint64) uint64
- func (t *BootcAnacondaInstaller) SupportedBlueprintOptions() []string
- type BootcArch
- type BootcDistro
- func (d *BootcDistro) Codename() string
- func (d *BootcDistro) DefaultFs() string
- func (d *BootcDistro) GetArch(arch string) (distro.Arch, error)
- func (d *BootcDistro) ListArches() []string
- func (d *BootcDistro) ModulePlatformID() string
- func (d *BootcDistro) Name() string
- func (d *BootcDistro) OSTreeRef() string
- func (d *BootcDistro) OsVersion() string
- func (d *BootcDistro) Product() string
- func (d *BootcDistro) Releasever() string
- func (d *BootcDistro) SetBuildContainer(imgref string) (err error)
- func (d *BootcDistro) SetBuildContainerForTesting(imgref string, info *osinfo.Info) error
- func (d *BootcDistro) SetDefaultFs(defaultFs string) error
- type BootcImageType
- func (t *BootcImageType) Aliases() []string
- func (t *BootcImageType) Arch() distro.Arch
- func (t *BootcImageType) BasePartitionTable() (*disk.PartitionTable, error)
- func (t *BootcImageType) BootMode() platform.BootMode
- func (t *BootcImageType) BuildPipelines() []string
- func (t *BootcImageType) Exports() []string
- func (t *BootcImageType) Filename() string
- func (t *BootcImageType) ISOLabel() (string, error)
- func (t *BootcImageType) MIMEType() string
- func (t *BootcImageType) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, ...) (*manifest.Manifest, []string, error)
- func (t *BootcImageType) Name() string
- func (t *BootcImageType) OSTreeRef() string
- func (t *BootcImageType) PartitionType() disk.PartitionTableType
- func (t *BootcImageType) PayloadPackageSets() []string
- func (t *BootcImageType) PayloadPipelines() []string
- func (t *BootcImageType) RequiredBlueprintOptions() []string
- func (t *BootcImageType) Size(size uint64) uint64
- func (t *BootcImageType) SupportedBlueprintOptions() []string
Constants ¶
View Source
const ( MebiByte = 1024 * 1024 // MiB GibiByte = 1024 * 1024 * 1024 // GiB // BootOptions defines the mountpoint options for /boot // See https://github.com/containers/bootc/pull/341 for the rationale for // using `ro` by default. Briefly it protects against corruption // by non-ostree aware tools. BootOptions = "ro" // And we default to `ro` for the rootfs too, because we assume the input // container image is using composefs. For more info, see // https://github.com/containers/bootc/pull/417 and // https://github.com/ostreedev/ostree/issues/3193 RootOptions = "ro" )
View Source
const (
DEFAULT_SIZE = datasizes.Size(10 * GibiByte)
)
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 GetDistroAndRunner ¶ added in v0.210.0
func LoraxTemplatePackage ¶ added in v0.210.0
func LoraxTemplates ¶ added in v0.210.0
func LoraxTemplates(si osinfo.OSRelease) []manifest.InstallerLoraxTemplate
func NeedsRHELLoraxTemplates ¶ added in v0.210.0
func PlatformFor ¶ added in v0.210.0
Types ¶
type BootcAnacondaInstaller ¶ added in v0.210.0
type BootcAnacondaInstaller struct {
// contains filtered or unexported fields
}
BootcAnacondaInstaller is an image-type for a bootc container based ISO installer.
func (*BootcAnacondaInstaller) Aliases ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Aliases() []string
func (*BootcAnacondaInstaller) Arch ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Arch() distro.Arch
func (*BootcAnacondaInstaller) BasePartitionTable ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) BasePartitionTable() (*disk.PartitionTable, error)
func (*BootcAnacondaInstaller) BootMode ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) BootMode() platform.BootMode
func (*BootcAnacondaInstaller) BuildPipelines ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) BuildPipelines() []string
func (*BootcAnacondaInstaller) Exports ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Exports() []string
func (*BootcAnacondaInstaller) Filename ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Filename() string
func (*BootcAnacondaInstaller) ISOLabel ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) ISOLabel() (string, error)
func (*BootcAnacondaInstaller) MIMEType ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) MIMEType() string
func (*BootcAnacondaInstaller) Manifest ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, seedp *int64) (*manifest.Manifest, []string, error)
XXX: duplication with BootcImageType
func (*BootcAnacondaInstaller) Name ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Name() string
func (*BootcAnacondaInstaller) OSTreeRef ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) OSTreeRef() string
func (*BootcAnacondaInstaller) PartitionType ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) PartitionType() disk.PartitionTableType
func (*BootcAnacondaInstaller) PayloadPackageSets ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) PayloadPackageSets() []string
func (*BootcAnacondaInstaller) PayloadPipelines ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) PayloadPipelines() []string
func (*BootcAnacondaInstaller) RequiredBlueprintOptions ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) RequiredBlueprintOptions() []string
func (*BootcAnacondaInstaller) Size ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) Size(size uint64) uint64
func (*BootcAnacondaInstaller) SupportedBlueprintOptions ¶ added in v0.210.0
func (t *BootcAnacondaInstaller) SupportedBlueprintOptions() []string
type BootcArch ¶
type BootcArch struct {
// contains filtered or unexported fields
}
func (*BootcArch) GetImageType ¶
func (*BootcArch) ListImageTypes ¶
type BootcDistro ¶
type BootcDistro struct {
// contains filtered or unexported fields
}
func NewBootcDistro ¶
func NewBootcDistro(imgref string) (*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) 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
func (*BootcDistro) SetDefaultFs ¶
func (d *BootcDistro) SetDefaultFs(defaultFs string) error
type BootcImageType ¶
type BootcImageType struct {
// 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) BuildPipelines ¶
func (t *BootcImageType) BuildPipelines() []string
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) PayloadPipelines ¶
func (t *BootcImageType) PayloadPipelines() []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
Click to show internal directories.
Click to hide internal directories.