Versions in this module Expand all Collapse all v0 v0.7.1 Mar 19, 2026 v0.7.0 Mar 19, 2026 Changes in this version + func DetectCompression(path string) string + func DetectImageSource(ref string) (types.ImageSource, error) + func DownloadToFile(ctx context.Context, url, destPath string, onProgress ProgressFunc) error + func FindInitrdPath(mountPoint string) string + func FindKernelPath(mountPoint string) string + func OpenDecompressed(path string) (io.ReadCloser, int64, error) + type ContainerSource struct + func NewContainerSource(ref string) *ContainerSource + func (s *ContainerSource) Close() error + func (s *ContainerSource) GetBootAssets() (*types.BootAssets, error) + func (s *ContainerSource) GetInstallAssets(tmpDir string, _ uint64) (*types.InstallAssets, error) + func (s *ContainerSource) GetInstallAssets(tmpDir string, sizeGiB uint64) (*types.InstallAssets, error) + func (s *ContainerSource) Reference() string + func (s *ContainerSource) Type() types.ImageSourceType + type HTTPSource struct + func NewHTTPSource(url string, targetType types.ImageSourceType) *HTTPSource + func (s *HTTPSource) Close() error + func (s *HTTPSource) GetBootAssets() (*types.BootAssets, error) + func (s *HTTPSource) GetInstallAssets(tmpDir string, sizeGiB uint64) (*types.InstallAssets, error) + func (s *HTTPSource) Reference() string + func (s *HTTPSource) Type() types.ImageSourceType + type ISOSource struct + func NewISOSource(path string) *ISOSource + func (s *ISOSource) Close() error + func (s *ISOSource) GetBootAssets() (*types.BootAssets, error) + func (s *ISOSource) GetInstallAssets(tmpDir string, sizeGiB uint64) (*types.InstallAssets, error) + func (s *ISOSource) Reference() string + func (s *ISOSource) Type() types.ImageSourceType + type ProgressFunc func(current, total int64) + type RAWSource struct + func NewRAWSource(path string) *RAWSource + func (s *RAWSource) Close() error + func (s *RAWSource) GetBootAssets() (*types.BootAssets, error) + func (s *RAWSource) GetInstallAssets(tmpDir string, sizeGiB uint64) (*types.InstallAssets, error) + func (s *RAWSource) Reference() string + func (s *RAWSource) Type() types.ImageSourceType