puller

package
v0.22.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitImageRefByRepoAndTag

func SplitImageRefByRepoAndTag(imageReferenceString string) (string, string)

SplitImageRefByRepoAndTag splits an image reference into repository and tag parts

Types

type ImageGetter

type ImageGetter func(ctx context.Context, tag string, opts ...pkg.ImageGetOption) (pkg.RegistryImage, error)

ImageGetter is a function type for getting images from the registry

type ImageMeta

type ImageMeta struct {
	ImageRepo       string
	ImageTag        string
	Digest          *v1.Hash
	Version         string
	TagReference    string
	DigestReference string
}

ImageMeta represents metadata for an image

func NewImageMeta

func NewImageMeta(version string, tagReference string, digest *v1.Hash) *ImageMeta

NewImageMeta creates a new ImageMeta instance

type PullConfig

type PullConfig struct {
	Name             string
	ImageSet         map[string]*ImageMeta
	Layout           *regimage.ImageLayout
	AllowMissingTags bool
	GetterService    pkg.BasicService
}

PullConfig encapsulates the configuration for pulling images

type PullerService

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

PullerService handles the pulling of images from the registry

func NewPullerService

func NewPullerService(
	deckhouseService *service.DeckhouseService,
	logger *dkplog.Logger,
	userLogger *log.SLogger,
) *PullerService

NewPullerService creates a new PullerService

func (*PullerService) PullImageSet

func (ps *PullerService) PullImageSet(
	ctx context.Context,
	imageSet map[string]*ImageMeta,
	imageSetLayout *image.ImageLayout,
	imageGetter ImageGetter,
) error

PullImageSet pulls a set of images using the provided image getter

func (*PullerService) PullImages

func (ps *PullerService) PullImages(ctx context.Context, config PullConfig) error

PullImages pulls images according to the provided configuration

Jump to

Keyboard shortcuts

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