Documentation
¶
Index ¶
- type BasePlatform
- func (p BasePlatform) GetBIOSPlatform() string
- func (p BasePlatform) GetBootFiles() [][2]string
- func (p BasePlatform) GetBootloader() Bootloader
- func (p BasePlatform) GetBuildPackages() []string
- func (p BasePlatform) GetFIPSMenu() bool
- func (p BasePlatform) GetImageFormat() ImageFormat
- func (p BasePlatform) GetPackages() []string
- func (p BasePlatform) GetQCOW2Compat() string
- func (p BasePlatform) GetUEFIVendor() string
- func (p BasePlatform) GetZiplSupport() bool
- type BootMode
- type Bootloader
- type Data
- func (d *Data) GetArch() arch.Arch
- func (d *Data) GetBIOSPlatform() string
- func (d *Data) GetBootFiles() [][2]string
- func (d *Data) GetBootloader() Bootloader
- func (d *Data) GetBuildPackages() []string
- func (d *Data) GetFIPSMenu() bool
- func (d *Data) GetImageFormat() ImageFormat
- func (d *Data) GetPackages() []string
- func (d *Data) GetQCOW2Compat() string
- func (d *Data) GetUEFIVendor() string
- func (d *Data) GetZiplSupport() bool
- type ImageFormat
- type Platform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePlatform ¶
type BasePlatform struct {
ImageFormat ImageFormat
QCOW2Compat string
FirmwarePackages []string
FIPSMenu bool // Add FIPS entry to iso bootloader menu
}
func (BasePlatform) GetBIOSPlatform ¶
func (p BasePlatform) GetBIOSPlatform() string
func (BasePlatform) GetBootFiles ¶
func (p BasePlatform) GetBootFiles() [][2]string
func (BasePlatform) GetBootloader ¶ added in v0.40.2
func (p BasePlatform) GetBootloader() Bootloader
func (BasePlatform) GetBuildPackages ¶
func (p BasePlatform) GetBuildPackages() []string
func (BasePlatform) GetFIPSMenu ¶ added in v0.174.0
func (p BasePlatform) GetFIPSMenu() bool
GetFIPSMenu is used to add the FIPS entry to the iso bootloader menu
func (BasePlatform) GetImageFormat ¶
func (p BasePlatform) GetImageFormat() ImageFormat
func (BasePlatform) GetPackages ¶
func (p BasePlatform) GetPackages() []string
func (BasePlatform) GetQCOW2Compat ¶
func (p BasePlatform) GetQCOW2Compat() string
func (BasePlatform) GetUEFIVendor ¶
func (p BasePlatform) GetUEFIVendor() string
func (BasePlatform) GetZiplSupport ¶
func (p BasePlatform) GetZiplSupport() bool
type Bootloader ¶ added in v0.40.2
type Bootloader int
const ( BOOTLOADER_NONE Bootloader = iota BOOTLOADER_GRUB2 BOOTLOADER_ZIPL BOOTLOADER_UKI )
func FromString ¶ added in v0.40.2
func FromString(b string) (Bootloader, error)
func (*Bootloader) UnmarshalJSON ¶ added in v0.40.2
func (b *Bootloader) UnmarshalJSON(data []byte) (err error)
func (*Bootloader) UnmarshalYAML ¶ added in v0.40.2
func (b *Bootloader) UnmarshalYAML(unmarshal func(any) error) error
type Data ¶ added in v0.178.0
type Data struct {
Arch arch.Arch `yaml:"arch"`
ImageFormat ImageFormat `yaml:"image_format"`
QCOW2Compat string `yaml:"qcow2_compat"`
BIOSPlatform string `yaml:"bios_platform"`
UEFIVendor string `yaml:"uefi_vendor"`
ZiplSupport bool `yaml:"zipl_support"`
// packages are index by an arbitrary string key to
// make them YAML mergable, a good key is e.g. "bios"
// to indicate that these packages are needed for
// bios support
Packages map[string][]string `yaml:"packages"`
BuildPackages map[string][]string `yaml:"build_packages"`
BootFiles [][2]string `yaml:"boot_files"`
Bootloader Bootloader `yaml:"bootloader"`
FIPSMenu bool `yaml:"fips_menu"` // Add FIPS entry to iso bootloader menu
}
Data is a platform configured from YAML inputs that implements the "Platform" interface
func (*Data) GetBIOSPlatform ¶ added in v0.178.0
func (*Data) GetBootFiles ¶ added in v0.178.0
func (*Data) GetBootloader ¶ added in v0.178.0
func (d *Data) GetBootloader() Bootloader
func (*Data) GetBuildPackages ¶ added in v0.178.0
func (*Data) GetFIPSMenu ¶ added in v0.178.0
GetFIPSMenu is used to add the FIPS entry to the iso bootloader menu
func (*Data) GetImageFormat ¶ added in v0.178.0
func (d *Data) GetImageFormat() ImageFormat
func (*Data) GetPackages ¶ added in v0.178.0
func (*Data) GetQCOW2Compat ¶ added in v0.178.0
func (*Data) GetUEFIVendor ¶ added in v0.178.0
func (*Data) GetZiplSupport ¶ added in v0.178.0
type ImageFormat ¶
type ImageFormat uint64
const ( FORMAT_UNSET ImageFormat = iota FORMAT_RAW FORMAT_ISO FORMAT_QCOW2 FORMAT_VMDK FORMAT_VHD FORMAT_GCE FORMAT_OVA FORMAT_VAGRANT_LIBVIRT FORMAT_VAGRANT_VIRTUALBOX )
func (ImageFormat) String ¶
func (f ImageFormat) String() string
func (*ImageFormat) UnmarshalJSON ¶ added in v0.40.2
func (f *ImageFormat) UnmarshalJSON(data []byte) error
func (*ImageFormat) UnmarshalYAML ¶ added in v0.40.2
func (f *ImageFormat) UnmarshalYAML(unmarshal func(any) error) error
Click to show internal directories.
Click to hide internal directories.