dockerhub

package
v0.19.786 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dockerhub provides utilities for working with Docker Hub references.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDockerHubRegistry

func IsDockerHubRegistry(host string) bool

IsDockerHubRegistry returns true if the host is a Docker Hub registry.

func NormalizeReference

func NormalizeReference(ref string) string

NormalizeReference normalizes Docker Hub references to fully qualified form. - "nginx" -> "docker.io/library/nginx" (official images) - "username/image" -> "docker.io/username/image" (user images) - "docker.io/nginx" -> "docker.io/library/nginx" (official images with explicit host) - "registry-1.docker.io/nginx" -> "registry-1.docker.io/library/nginx" - Non-Docker Hub refs pass through unchanged

Types

This section is empty.

Jump to

Keyboard shortcuts

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