platform

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentWorker

type ConcurrentWorker[T, R any] struct {
	// contains filtered or unexported fields
}

func NewConcurrentWorker

func NewConcurrentWorker[T, R any](workersCount int) *ConcurrentWorker[T, R]

func (*ConcurrentWorker[T, R]) Do

func (cw *ConcurrentWorker[T, R]) Do(inputs []T, handler func(input T) (R, error), resultHandler func(item R) error) error

type ImageDownloadList added in v0.22.4

type ImageDownloadList struct {
	Deckhouse                  map[string]*puller.ImageMeta
	DeckhouseExtra             map[string]*puller.ImageMeta
	DeckhouseInstall           map[string]*puller.ImageMeta
	DeckhouseInstallStandalone map[string]*puller.ImageMeta
	DeckhouseReleaseChannel    map[string]*puller.ImageMeta
	// contains filtered or unexported fields
}

func NewImageDownloadList added in v0.22.4

func NewImageDownloadList(rootURL string) *ImageDownloadList

func (*ImageDownloadList) FillDeckhouseImages added in v0.22.4

func (l *ImageDownloadList) FillDeckhouseImages(deckhouseVersions []string)

func (*ImageDownloadList) FillForTag added in v0.22.4

func (l *ImageDownloadList) FillForTag(tag string)

type ImageLayouts

type ImageLayouts struct {
	Deckhouse                  *regimage.ImageLayout
	DeckhouseInstall           *regimage.ImageLayout
	DeckhouseInstallStandalone *regimage.ImageLayout
	DeckhouseReleaseChannel    *regimage.ImageLayout
	// contains filtered or unexported fields
}

func NewImageLayouts

func NewImageLayouts(rootFolder string) *ImageLayouts

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 Service

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

func NewService

func NewService(
	deckhouseService *registryservice.DeckhouseService,
	sinceVersion *semver.Version,
	workingDir string,
	targetTag string,
	ignoreSuspendedChannels bool,
	logger *dkplog.Logger,
	userLogger *log.SLogger,
) *Service

func (*Service) ExtractImageDigestsFromDeckhouseInstallerNew

func (svc *Service) ExtractImageDigestsFromDeckhouseInstallerNew(
	tag string,
	prevDigests map[string]struct{},
) (map[string]*puller.ImageMeta, error)

func (*Service) FindVexImage

func (svc *Service) FindVexImage(
	digest string,
) (string, error)

func (*Service) PullPlatform

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

PullPlatform pulls the Deckhouse platform images and metadata It validates access to the registry, determines which versions to mirror, and prepares the image layouts for mirroring

Jump to

Keyboard shortcuts

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