Documentation
¶
Overview ¶
Package registry resolves the current manifest digest for an image tag from its registry, using a cheap manifest HEAD and the standard bearer-token auth challenge flow. It never pulls image layers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client resolves remote digests.
func New ¶
func New() *Client
New returns a Client. If a Docker config.json is present (DOCKER_CONFIG or ~/.docker/config.json), its registry credentials are used; otherwise requests are anonymous.
func (*Client) Credentials ¶ added in v0.1.4
Credentials returns the stored basic-auth username/password and registry host for an image, so they can be forwarded to the Docker daemon when it pulls (the daemon does not see PullPilot's mounted config.json). ok is false if no credentials are configured for that registry.
type CredStore ¶
type CredStore struct {
// contains filtered or unexported fields
}
CredStore holds registry credentials parsed from a Docker config.json.
type Ref ¶
type Ref struct {
Registry string // network host, e.g. registry-1.docker.io
Repository string // e.g. library/nginx
Tag string // e.g. latest (empty if pinned by digest)
Digest string // sha256:… if the ref is pinned by digest
}
Ref is a parsed image reference.