registry

package
v1.74.6 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 18 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 Registry

type Registry struct {
	Name         string `json:"name" yaml:"name"`
	Repository   string `json:"repository" yaml:"repository"`
	DockerConfig string `json:"dockercfg" yaml:"dockercfg"`
	Scheme       string `json:"scheme" yaml:"scheme"`
	CA           string `json:"ca" yaml:"ca"`
}

func BuildRegistryByRepository

func BuildRegistryByRepository(repo *v1alpha1.PackageRepository) Registry

func BuildRegistryBySource

func BuildRegistryBySource(source *v1alpha1.ModuleSource) Registry

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, cred Registry, 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, cred Registry, 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, cred Registry, 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, cred Registry, 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)

Jump to

Keyboard shortcuts

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