Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitImageRefByRepoAndTag ¶
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
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( 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
Click to show internal directories.
Click to hide internal directories.