Documentation
¶
Overview ¶
Package storage contains storage services for use in the registry application. It should be considered an internal package, as of Go 1.4.
Index ¶
- func DisableDigestResumption(registry *registry) error
- func EnableDelete(registry *registry) error
- func EnableRedirect(registry *registry) error
- func EnableSchema1(registry *registry) error
- func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, ...) error
- func NewRegistry(ctx context.Context, driver storagedriver.StorageDriver, ...) (distribution.Namespace, error)
- func PurgeUploads(ctx context.Context, driver storageDriver.StorageDriver, olderThan time.Time, ...) ([]string, []error)
- func SkipLayerVerification() distribution.ManifestServiceOption
- func WithMountFrom(ref reference.Canonical) distribution.BlobCreateOption
- type GCOpts
- type ManifestDel
- type ManifestHandler
- type RegistryOption
- func BlobDescriptorCacheProvider(blobDescriptorCacheProvider cache.BlobDescriptorCacheProvider) RegistryOption
- func BlobDescriptorServiceFactory(factory distribution.BlobDescriptorServiceFactory) RegistryOption
- func ManifestURLsAllowRegexp(r *regexp.Regexp) RegistryOption
- func ManifestURLsDenyRegexp(r *regexp.Regexp) RegistryOption
- func Schema1SigningKey(key libtrust.PrivateKey) RegistryOption
- type Vacuum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableDigestResumption ¶
func DisableDigestResumption(registry *registry) error
DisableDigestResumption is a functional option for NewRegistry. It should be used if the registry is acting as a caching proxy.
func EnableDelete ¶
func EnableDelete(registry *registry) error
EnableDelete is a functional option for NewRegistry. It enables deletion on the registry.
func EnableRedirect ¶
func EnableRedirect(registry *registry) error
EnableRedirect is a functional option for NewRegistry. It causes the backend blob server to attempt using (StorageDriver).URLFor to serve all blobs.
func EnableSchema1 ¶
func EnableSchema1(registry *registry) error
EnableSchema1 is a functional option for NewRegistry. It enables pushing of schema1 manifests.
func MarkAndSweep ¶
func MarkAndSweep(ctx context.Context, storageDriver driver.StorageDriver, registry distribution.Namespace, opts GCOpts) error
MarkAndSweep performs a mark and sweep of registry data
func NewRegistry ¶
func NewRegistry(ctx context.Context, driver storagedriver.StorageDriver, options ...RegistryOption) (distribution.Namespace, error)
NewRegistry creates a new registry instance from the provided driver. The resulting registry may be shared by multiple goroutines but is cheap to allocate. If the Redirect option is specified, the backend blob server will attempt to use (StorageDriver).URLFor to serve all blobs.