registry

package
v1.78.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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

func DevVersion added in v1.78.0

func DevVersion(digest string) string

DevVersion is the immutable version of a dev image with digest "sha256:<hex>": dev-<hex>.

func IsDevVersion added in v1.78.0

func IsDevVersion(version string) bool

IsDevVersion reports whether version was made by DevVersion.

func PullTag added in v1.78.0

func PullTag(version string) string

PullTag is the tag to pull version by: a dev version pulls its digest (the client joins repository:dev@sha256:<hex>, a digest reference whose tag is ignored), any other version itself.

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) GetFileContent added in v1.78.0

func (s *Service) GetFileContent(ctx context.Context, remote Remote, path, tag, filePath string) ([]byte, error)

GetFileContent downloads image and extracts the file content from it <registry>/<path>:<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) ImageExists added in v1.78.0

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

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