Documentation ¶
Index ¶
- func IsBlobNotFound(err error) bool
- func IsImageNotFound(err error) bool
- func IsNotFound(err error) bool
- func IsRegistryNotFound(err error) bool
- func IsRepositoryNotFound(err error) bool
- func IsTagNotFound(err error) bool
- func NewImageNotFoundError(repository, image, tag string) error
- type Client
- type Connection
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBlobNotFound ¶ added in v1.3.0
func IsImageNotFound ¶
func IsNotFound ¶
func IsRegistryNotFound ¶
func IsRepositoryNotFound ¶
func IsTagNotFound ¶
func NewImageNotFoundError ¶ added in v0.4.2
Types ¶
type Client ¶
type Client interface { // Connect to a Docker registry by name. Pass "" for the Docker Hub Connect(registry string, allowInsecure bool) (Connection, error) }
Client includes methods for accessing a Docker registry by name.
type Connection ¶
type Connection interface { // ImageTags will return a map of the tags for the image by namespace and name. // If namespace is not specified, will default to "library" for Docker hub. ImageTags(namespace, name string) (map[string]string, error) // ImageByID will return the requested image by namespace, name, and ID. // If namespace is not specified, will default to "library" for Docker hub. ImageByID(namespace, name, id string) (*Image, error) // ImageByTag will return the requested image by namespace, name, and tag // (if not specified, "latest"). // If namespace is not specified, will default to "library" for Docker hub. ImageByTag(namespace, name, tag string) (*Image, error) // ImageManifest will return the raw image manifest and digest by namespace, // name, and tag. ImageManifest(namespace, name, tag string) (string, []byte, error) }
Connection allows you to retrieve data from a Docker V1/V2 registry.
Directories ¶
Path | Synopsis |
---|---|
Package server wraps repository and blob store objects of docker/distribution upstream.
|
Package server wraps repository and blob store objects of docker/distribution upstream. |
api
Package api describes routes and urls that extends the Registry JSON HTTP API.
|
Package api describes routes and urls that extends the Registry JSON HTTP API. |
audit
Package audit log the beginning and end of each API request to different logger.
|
Package audit log the beginning and end of each API request to different logger. |
client
Package client provides functions to make requests to external APIs.
|
Package client provides functions to make requests to external APIs. |
metrics
Package metrics provides functions to collect runtime registry statistics and expose the registered metrics via HTTP.
|
Package metrics provides functions to collect runtime registry statistics and expose the registered metrics via HTTP. |
Click to show internal directories.
Click to hide internal directories.