dockerdist

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package dockerdist provides helper methods for retrieving and parsing a information from a remote Docker repository.

Index

Constants

This section is empty.

Variables

View Source
var ErrTagNotFound = errors.New("this image or tag is not found")
View Source
var ErrUnauthorized = errors.New("unauthorized access")

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

func DownloadManifest(image string, insecure bool) (reference.NamedTagged, distlib.Manifest, error)

DownloadManifest the manifest for the given image, using the given credentials.

func DownloadV1Manifest

func DownloadV1Manifest(imageName string, insecure bool) (reference.NamedTagged, 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.

func GetPushURL

func GetPushURL(hostname string) (*url.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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