platform

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 ImageDownloadRequest

type ImageDownloadRequest struct {
	DeckhouseImages         map[string]*puller.ImageMeta
	InstallImages           map[string]*puller.ImageMeta
	InstallStandaloneImages map[string]*puller.ImageMeta
	ReleaseChannelImages    map[string]*puller.ImageMeta
}

type ImageLayouts

type ImageLayouts struct {
	Deckhouse       *regimage.ImageLayout
	DeckhouseImages map[string]*puller.ImageMeta

	DeckhouseInstall *regimage.ImageLayout
	InstallImages    map[string]*puller.ImageMeta

	DeckhouseInstallStandalone *regimage.ImageLayout
	InstallStandaloneImages    map[string]*puller.ImageMeta

	DeckhouseReleaseChannel *regimage.ImageLayout
	ReleaseChannelImages    map[string]*puller.ImageMeta
	// contains filtered or unexported fields
}

func NewImageLayouts

func NewImageLayouts(rootFolder, rootURL 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.

func (*ImageLayouts) FillDeckhouseImages

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

func (*ImageLayouts) FillForTag

func (l *ImageLayouts) FillForTag(tag string)

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