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 (*Service) PullInstaller ¶
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).
When PullInstaller gracefully skipped the phase on an access error (e.g. the installer repo returns 404), the phase is reported as not attempted so the summary renders "not pulled" rather than falsely claiming the tag was mirrored. This applies to dry-run as well: a skipped phase must not show up in the plan.