Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseImageString ¶
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.