image

package
v1.5.0-rc-2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 34 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseIso

type BaseIso struct {
	File *asset.File
}

BaseIso generates the base ISO file for the image.

func (*BaseIso) Dependencies

func (i *BaseIso) Dependencies() []asset.Asset

Dependencies returns dependencies used by the asset.

func (*BaseIso) Files

func (i *BaseIso) Files() []*asset.File

Files returns the files generated by the asset.

func (*BaseIso) Generate

func (i *BaseIso) Generate(ctx context.Context, dependencies asset.Parents) error

Generate generates the base ISO.

func (*BaseIso) Load

func (i *BaseIso) Load(f asset.FileFetcher) (bool, error)

Load is not needed, as Generate uses the rhcos/cache to either download the base ISO or return the one found in the cache directory.

func (*BaseIso) Name

func (i *BaseIso) Name() string

Name returns the human-friendly name of the asset.

type Ignition

type Ignition struct {
	Config *igntypes.Config
}

Ignition is an asset that generates the image-based installer ignition file.

func (*Ignition) Dependencies

func (i *Ignition) Dependencies() []asset.Asset

Dependencies returns the assets on which the Ignition asset depends.

func (*Ignition) Generate

func (i *Ignition) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the image-based installer ignition.

func (*Ignition) Name

func (i *Ignition) Name() string

Name returns the human-friendly name of the asset.

type Image

type Image struct {
	Config       *imagebased.InstallationConfig
	IgnitionByte []byte
	ISOPath      string
	// contains filtered or unexported fields
}

Image is an asset that generates the bootable image used to install clusters.

func (*Image) Dependencies

func (i *Image) Dependencies() []asset.Asset

Dependencies returns the assets on which the image asset depends.

func (*Image) Files

func (i *Image) Files() []*asset.File

Files returns the files generated by the asset.

func (*Image) Generate

func (i *Image) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the image file for the ISO asset.

func (*Image) Load

func (i *Image) Load(f asset.FileFetcher) (bool, error)

Load returns the ISO from disk.

func (*Image) Name

func (i *Image) Name() string

Name returns the human-friendly name of the asset.

func (*Image) PersistToFile

func (i *Image) PersistToFile(directory string) error

PersistToFile writes the ISO image in the assets folder.

type ImageBasedInstallationConfig

type ImageBasedInstallationConfig struct {
	File     *asset.File
	Config   *imagebased.InstallationConfig
	Template string
}

ImageBasedInstallationConfig reads the image-based-installation-config.yaml file.

func (*ImageBasedInstallationConfig) Dependencies

func (*ImageBasedInstallationConfig) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*ImageBasedInstallationConfig) Files

func (i *ImageBasedInstallationConfig) Files() []*asset.File

Files returns the files generated by the asset.

func (*ImageBasedInstallationConfig) Generate

func (i *ImageBasedInstallationConfig) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the Image-based Installation Config YAML manifest.

func (*ImageBasedInstallationConfig) Load

Load returns image-based installation ISO config asset from the disk.

func (*ImageBasedInstallationConfig) Name

Name returns a human friendly name for the asset.

func (*ImageBasedInstallationConfig) PersistToFile

func (i *ImageBasedInstallationConfig) PersistToFile(directory string) error

PersistToFile writes the image-based-installation-config.yaml file to the assets folder.

type PostDeployment

type PostDeployment struct {
	File *asset.File
}

PostDeployment manages the post image-based installation steps.

func (*PostDeployment) Dependencies

func (pd *PostDeployment) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed by the asset.

func (*PostDeployment) Files

func (pd *PostDeployment) Files() []*asset.File

Files returns the files generated by the asset.

func (*PostDeployment) Generate

func (pd *PostDeployment) Generate(_ context.Context, dependencies asset.Parents) error

Generate is not required for PostDeployment.

func (*PostDeployment) Load

func (pd *PostDeployment) Load(f asset.FileFetcher) (found bool, err error)

Load reads the asset file from disk.

func (*PostDeployment) Name

func (pd *PostDeployment) Name() string

Name returns a human friendly name for the asset.

type RegistriesConf

type RegistriesConf struct {
	Data   []byte
	Config *sysregistriesv2.V2RegistriesConf
}

RegistriesConf generates the registries.conf data.

func (*RegistriesConf) Dependencies

func (*RegistriesConf) Dependencies() []asset.Asset

Dependencies returns all of the dependencies directly needed to generate the asset.

func (*RegistriesConf) Generate

func (i *RegistriesConf) Generate(_ context.Context, dependencies asset.Parents) error

Generate generates the registries.conf data from the image-based-installation-config.

func (*RegistriesConf) Name

func (*RegistriesConf) Name() string

Name returns a human friendly name for the asset.

Jump to

Keyboard shortcuts

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