Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrV1NotSupported is returned when we're trying to talk to a // docker V1 registry. ErrV1NotSupported = errors.New("can't talk to a V1 docker registry") ErrUnauthorizedForCredentials = errors.New("unable to retrieve auth token: invalid username/password") )
var Transport = dockerTransport{}
Transport is an ImageTransport for Docker registry-hosted images.
Functions ¶
func CheckAuth ¶
func CheckAuth(ctx context.Context, sCtx *types.SystemContext, username, password, registry string) error
CheckAuth validates the credentials by attempting to log into the registry returns an error if an error occcured while making the http request or the status code received was 401
func NewReference ¶
func NewReference(ref reference.Named) (types.ImageReference, error)
NewReference returns a Docker reference for a named reference. The reference must satisfy !reference.IsNameOnly().
func ParseReference ¶
func ParseReference(refString string) (types.ImageReference, error)
ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an Docker ImageReference.
Types ¶
type Image ¶
Image is a Docker-specific implementation of types.Image with a few extra methods which are specific to Docker.
func (*Image) GetRepositoryTags ¶
GetRepositoryTags list all tags available in the repository. Note that this has no connection with the tag(s) used for this specific image, if any.
func (*Image) SourceRefFullName ¶
SourceRefFullName returns a fully expanded name for the repository this image is in.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package reference provides a general type to represent any way of referencing images within the registry.
|
Package reference provides a general type to represent any way of referencing images within the registry. |
Package tarfile is an internal implementation detail of some transports.
|
Package tarfile is an internal implementation detail of some transports. |