registry

package
v1.74.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

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