Documentation
¶
Overview ¶
Package registry provides functions to fetch the latest digest of an image.
Index ¶
- Constants
- func BuildManifestURL(image string) (string, error)
- func GetImageDigest(image string) (string, error)
- func GetScopeFromImageName(image, svc string) string
- func GetToken(image string) (string, error)
- func NormalizeRegistry(registry string) (string, error)
- func Req(method, uri string, header http.Header) ([]byte, error)
Constants ¶
View Source
const ChallengeHeader = "WWW-Authenticate"
ChallengeHeader is the HTTP Header containing challenge instructions
View Source
const ContentDigestHeader = "Docker-Content-Digest"
ContentDigestHeader is the key for the key-value pair containing the digest header
Variables ¶
This section is empty.
Functions ¶
func BuildManifestURL ¶
BuildManifestURL from raw image data
func GetImageDigest ¶
GetImageDigest returns the latest digest of an image.
func GetScopeFromImageName ¶
GetScopeFromImageName normalizes an image name for use as scope during auth and head requests
func NormalizeRegistry ¶
NormalizeRegistry makes sure variations of DockerHubs registry
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.