Documentation ¶
Overview ¶
Package dockerdist provides helper methods for retrieving and parsing a information from a remote Docker repository.
Index ¶
- Variables
- func AuthenticateResponse(client *http.Client, dockerResponse *http.Response, request *http.Request) error
- func DownloadManifest(image string, insecure bool) (reference.Named, distlib.Manifest, error)
- func DownloadV1Manifest(imageName string, insecure bool) (reference.Named, schema1.SignedManifest, error)
- func GetAuthCredentials(image string) (types.AuthConfig, error)
Constants ¶
This section is empty.
Variables ¶
ErrUnauthorized is return when requested user don't have access to the resource
Functions ¶
func AuthenticateResponse ¶
func AuthenticateResponse(client *http.Client, dockerResponse *http.Response, request *http.Request) error
AuthenticateResponse add authentication headers on request
func DownloadManifest ¶
DownloadManifest the manifest for the given image, using the given credentials.
func DownloadV1Manifest ¶
func DownloadV1Manifest(imageName string, insecure bool) (reference.Named, schema1.SignedManifest, error)
DownloadV1Manifest the manifest for the given image in v1 schema format, using the given credentials.
func GetAuthCredentials ¶
func GetAuthCredentials(image string) (types.AuthConfig, error)
GetAuthCredentials returns the auth credentials (if any found) for the given repository, as found in the user's docker config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.