registry

package
v1.76.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote added in v1.75.0

type Remote struct {
	Name         string `json:"name" yaml:"name"`
	Repository   string `json:"repository" yaml:"repository"`
	DockerConfig string `json:"dockercfg" yaml:"dockercfg"`
	Login        string `json:"login" yaml:"login"`
	Password     string `json:"password" yaml:"password"`
	Scheme       string `json:"scheme" yaml:"scheme"`
	CA           string `json:"ca" yaml:"ca"`
}

func BuildRemote added in v1.75.0

func BuildRemote[T *v1alpha1.ModuleSource | *v1alpha1.PackageRepository](reg T) Remote

type Service

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

func NewService

func NewService(dc dependency.Container, logger *log.Logger) *Service

func (*Service) Download

func (s *Service) Download(ctx context.Context, remote Remote, out, packageName, tag string) error

Download downloads package on temp fs and returns path to it <registry>/<package>:<tag>

func (*Service) GetImageDigest

func (s *Service) GetImageDigest(ctx context.Context, remote Remote, packageName, tag string) (string, error)

GetImageDigest downloads package image and returns its digest <registry>/<package>:<tag>

func (*Service) GetImageReader

func (s *Service) GetImageReader(ctx context.Context, remote Remote, packageName, tag string) (io.ReadCloser, error)

GetImageReader downloads the package image and extracts it. IMPORTANT do not forget to close reader <registry>/<packageName>:<tag>

func (*Service) GetImageRootHash

func (s *Service) GetImageRootHash(ctx context.Context, remote Remote, packageName, tag string) (string, error)

GetImageRootHash downloads package manifest to parse rootHash from manifest annotations <registry>/<package>:<tag>

func (*Service) SetClusterUUID

func (s *Service) SetClusterUUID(id string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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