Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
Config
// contains filtered or unexported fields
}
func (*Registry) BuildHandler ¶
func (*Registry) BuildIndex ¶
BuildIndex builds the blob to manifest index. Docker only allows listing and retreiving images, not layers/blobs, so the proxy must maintain its own index mapping blobs to manifests. On startup, this index is empty, but calling BuildIndex will list all images with the provided prefixes (or all images if no prefixes are provided), and build this index. This is slow, however, any successful /v2/{name}/manifests/{reference} will also index that particular image, so this call should only be needed if the API is used directly to fetch blobs without first obtaining a manifest.
func (*Registry) HasAllowedPrefix ¶
Click to show internal directories.
Click to hide internal directories.