Documentation
¶
Overview ¶
Package dhi provides utilities for mapping container image references to Docker Hardened Images (dhi.io) equivalents.
Index ¶
Constants ¶
View Source
const ( // Registry is the DHI registry hostname Registry = "dhi.io" // DockerHubDomain is the canonical Docker Hub domain DockerHubDomain = "docker.io" // LibraryPrefix is the path prefix for official Docker Hub images LibraryPrefix = "library/" )
Variables ¶
View Source
var ErrNotEligible = errors.New("image not eligible for DHI mapping")
ErrNotEligible is returned when an image reference cannot be mapped to DHI.
Functions ¶
func CanMapToDHI ¶
CanMapToDHI returns true if the reference is a docker.io library image that may have a DHI equivalent. Only official images (docker.io/library/*) are eligible for DHI mapping.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.