installer

package
v0.30.20 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentStats added in v0.30.20

type ComponentStats struct {
	Attempted bool
	Images    int
	// Tag is the installer image tag mirrored ("latest" by default, or a pinned
	// --installer-tag). Resolved before download, so it is set in dry-run too.
	Tag string
}

ComponentStats is the installer phase's image accounting, mapped into the top-level summary by the pull orchestrator.

type ImageDownloadList

type ImageDownloadList struct {
	Installer map[string]*puller.ImageMeta
	// contains filtered or unexported fields
}

func NewImageDownloadList

func NewImageDownloadList(rootURL string) *ImageDownloadList

func (*ImageDownloadList) FillInstallerImages

func (l *ImageDownloadList) FillInstallerImages(tagsToMirror []string)

type ImageLayouts

type ImageLayouts struct {
	// contains filtered or unexported fields
}

func NewImageLayouts

func NewImageLayouts(rootFolder string) (*ImageLayouts, error)

func (*ImageLayouts) AsList

func (l *ImageLayouts) AsList() []layout.Path

AsList returns a list of layout.Path's in it. Undefined path's are not included in the list.

type Options

type Options struct {
	// TargetTag specifies a specific tag to mirror instead of determining versions automatically
	// it can be:
	// semver f.e. vX.Y.Z
	// channel f.e. alpha/beta/stable
	// any other tag
	TargetTag string
	// BundleDir is the directory to store the bundle
	BundleDir string
	// BundleChunkSize is the max size of bundle chunks in bytes (0 = no chunking)
	BundleChunkSize int64
	// Timeout is the timeout for the installer access check
	Timeout time.Duration
	// DryRun prints the pull plan without downloading any image blobs
	DryRun bool
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	registryService *registryservice.Service,
	workingDir string,
	options *Options,
	logger *dkplog.Logger,
	userLogger *log.SLogger,
) *Service

func (*Service) PullInstaller

func (svc *Service) PullInstaller(ctx context.Context) error

PullInstaller pulls the installer image It validates access to the registry and pulls the image

func (*Service) Stats added in v0.30.20

func (svc *Service) Stats() ComponentStats

Stats returns image accounting for the installer phase. In dry-run it reports the planned count from the download list; otherwise it reports the actual number of manifests pulled into the OCI layout, captured before packing (see Service.pulledImages).

Jump to

Keyboard shortcuts

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