Documentation
¶
Index ¶
- Constants
- func DiskImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func EdgeCommitImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func EdgeContainerImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func EdgeInstallerImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func EdgeRawImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func EdgeSimplifiedInstallerImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func ImageInstallerImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- func TarImage(workload workload.Workload, t *ImageType, ...) (image.ImageKind, error)
- type Architecture
- type BasePartitionTableFunc
- type CheckOptionsFunc
- type Distribution
- func (d *Distribution) AddArches(arches ...*Architecture)
- func (d *Distribution) GetArch(name string) (distro.Arch, error)
- func (d *Distribution) GetDefaultImageConfig() *distro.ImageConfig
- func (d *Distribution) IsRHEL() bool
- func (d *Distribution) ListArches() []string
- func (d *Distribution) ModulePlatformID() string
- func (d *Distribution) Name() string
- func (d *Distribution) OSTreeRef() string
- func (d *Distribution) OsVersion() string
- func (d *Distribution) Product() string
- func (d *Distribution) Releasever() string
- func (d *Distribution) Vendor() string
- type ISOLabelFunc
- type ImageFunc
- type ImageType
- func (t *ImageType) Arch() distro.Arch
- func (t *ImageType) BootMode() distro.BootMode
- func (t *ImageType) BuildPipelines() []string
- func (t *ImageType) Exports() []string
- func (t *ImageType) Filename() string
- func (t *ImageType) GetPartitionTable(mountpoints []blueprint.FilesystemCustomization, options distro.ImageOptions, ...) (*disk.PartitionTable, error)
- func (t *ImageType) ISOLabel() (string, error)
- func (t *ImageType) IsRHEL() bool
- func (t *ImageType) MIMEType() string
- func (t *ImageType) Manifest(bp *blueprint.Blueprint, options distro.ImageOptions, repos []rpmmd.RepoConfig, ...) (*manifest.Manifest, []string, error)
- func (t *ImageType) Name() string
- func (t *ImageType) OSTreeRef() string
- func (t *ImageType) PackageSetsChains() map[string][]string
- func (t *ImageType) PartitionType() string
- func (t *ImageType) PayloadPackageSets() []string
- func (t *ImageType) PayloadPipelines() []string
- func (t *ImageType) Size(size uint64) uint64
- type PackageSetFunc
Constants ¶
View Source
const ( // build package set name BuildPkgsKey = "build" // main/common os image package set name OSPkgsKey = "os" // container package set name ContainerPkgsKey = "container" // installer package set name InstallerPkgsKey = "installer" // blueprint package set name BlueprintPkgsKey = "blueprint" )
View Source
const (
UEFIVendor = "redhat"
)
Variables ¶
This section is empty.
Functions ¶
func DiskImage ¶
func DiskImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func EdgeCommitImage ¶
func EdgeCommitImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func EdgeContainerImage ¶
func EdgeContainerImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func EdgeInstallerImage ¶
func EdgeInstallerImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func EdgeRawImage ¶
func EdgeRawImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func EdgeSimplifiedInstallerImage ¶
func EdgeSimplifiedInstallerImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func ImageInstallerImage ¶
func ImageInstallerImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
func TarImage ¶
func TarImage(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
Types ¶
type Architecture ¶
type Architecture struct {
// contains filtered or unexported fields
}
func NewArchitecture ¶
func NewArchitecture(distro *Distribution, arch arch.Arch) *Architecture
func (*Architecture) AddImageTypes ¶
func (a *Architecture) AddImageTypes(platform platform.Platform, imageTypes ...*ImageType)
func (*Architecture) Distro ¶
func (a *Architecture) Distro() distro.Distro
func (*Architecture) GetImageType ¶
func (a *Architecture) GetImageType(name string) (distro.ImageType, error)
func (*Architecture) ListImageTypes ¶
func (a *Architecture) ListImageTypes() []string
func (*Architecture) Name ¶
func (a *Architecture) Name() string
type BasePartitionTableFunc ¶
type BasePartitionTableFunc func(t *ImageType) (disk.PartitionTable, bool)
type CheckOptionsFunc ¶
type Distribution ¶
type Distribution struct { // distro specific function to check options per image type CheckOptions CheckOptionsFunc // contains filtered or unexported fields }
func NewDistribution ¶
func NewDistribution(name string, major, minor int) (*Distribution, error)
func (*Distribution) AddArches ¶
func (d *Distribution) AddArches(arches ...*Architecture)
func (*Distribution) GetDefaultImageConfig ¶
func (d *Distribution) GetDefaultImageConfig() *distro.ImageConfig
func (*Distribution) IsRHEL ¶
func (d *Distribution) IsRHEL() bool
func (*Distribution) ListArches ¶
func (d *Distribution) ListArches() []string
func (*Distribution) ModulePlatformID ¶
func (d *Distribution) ModulePlatformID() string
func (*Distribution) Name ¶
func (d *Distribution) Name() string
func (*Distribution) OSTreeRef ¶
func (d *Distribution) OSTreeRef() string
func (*Distribution) OsVersion ¶
func (d *Distribution) OsVersion() string
func (*Distribution) Product ¶
func (d *Distribution) Product() string
func (*Distribution) Releasever ¶
func (d *Distribution) Releasever() string
func (*Distribution) Vendor ¶
func (d *Distribution) Vendor() string
type ISOLabelFunc ¶
type ImageFunc ¶
type ImageFunc func(workload workload.Workload, t *ImageType, customizations *blueprint.Customizations, options distro.ImageOptions, packageSets map[string]rpmmd.PackageSet, containers []container.SourceSpec, rng *rand.Rand) (image.ImageKind, error)
type ImageType ¶
type ImageType struct { Environment environment.Environment NameAliases []string Compression string // TODO: remove from image definition and make it a transport option DefaultImageConfig *distro.ImageConfig KernelOptions string DefaultSize uint64 // bootISO: installable ISO BootISO bool // rpmOstree: edge/ostree RPMOSTree bool // bootable image Bootable bool // List of valid arches for the image type BasePartitionTables BasePartitionTableFunc ISOLabelFn ISOLabelFunc // contains filtered or unexported fields }
func NewImageType ¶
func (*ImageType) BuildPipelines ¶
func (*ImageType) GetPartitionTable ¶
func (t *ImageType) GetPartitionTable( mountpoints []blueprint.FilesystemCustomization, options distro.ImageOptions, rng *rand.Rand, ) (*disk.PartitionTable, error)
func (*ImageType) IsRHEL ¶
IsRHEL returns true if the image type is part of a RHEL distribution
This is a convenience method, because external packages can't get the information from t.Arch().Distro(), since the distro.Distro interface does not have this method. And since the distro.Distro interface is distro-agnostic, it does not make much sense to have a method like this in the interface.
func (*ImageType) PackageSetsChains ¶
func (*ImageType) PartitionType ¶
func (*ImageType) PayloadPackageSets ¶
func (*ImageType) PayloadPipelines ¶
type PackageSetFunc ¶
type PackageSetFunc func(t *ImageType) rpmmd.PackageSet
Click to show internal directories.
Click to hide internal directories.