registry

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseImageString

func ParseImageString(image string) (registry, imageName, tag string)

ParseImageString parses an image string and returns registry, image name, and tag

Types

type RegistryTester

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

RegistryTester provides methods to check if an image can be pulled from configured registries and to test registry credentials

func NewRegistryTester

func NewRegistryTester(cfg *config.Config, repo repositories.RepositoriesInterface, kubeClient *k8s.KubeClient) *RegistryTester

NewRegistryTester creates a new RegistryTester instance (renamed from NewImageChecker)

func (*RegistryTester) CanPullImage

func (self *RegistryTester) CanPullImage(ctx context.Context, image string) (bool, error)

CanPullImage checks if the given image can be pulled using any of the configured registries

func (*RegistryTester) TestRegistryCredentials

func (self *RegistryTester) TestRegistryCredentials(ctx context.Context, registryHost, username, password string) (bool, error)

TestRegistryCredentials tests if the provided credentials are valid for a given registry (docker.io, ghcr, quay, or arbitrary URL)

Jump to

Keyboard shortcuts

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