Documentation ¶
Index ¶
- func NewBlobDescriptorService(bds distribution.BlobDescriptorService, wrapper Wrapper) distribution.BlobDescriptorService
- func NewBlobStore(bs distribution.BlobStore, wrapper Wrapper) distribution.BlobStore
- func NewBlobWriter(bw distribution.BlobWriter, wrapper Wrapper) distribution.BlobWriter
- func NewFileWriter(w storagedriver.FileWriter, wrapper SimpleWrapper) storagedriver.FileWriter
- func NewManifestService(ms distribution.ManifestService, wrapper Wrapper) distribution.ManifestService
- func NewReadCloser(r io.ReadCloser, wrapper SimpleWrapper) io.ReadCloser
- func NewRepository(r distribution.Repository, wrapper Wrapper) distribution.Repository
- func NewStorageDriver(driver storagedriver.StorageDriver, wrapper SimpleWrapper) storagedriver.StorageDriver
- func NewTagService(ts distribution.TagService, wrapper Wrapper) distribution.TagService
- type SimpleWrapper
- type Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBlobDescriptorService ¶
func NewBlobDescriptorService(bds distribution.BlobDescriptorService, wrapper Wrapper) distribution.BlobDescriptorService
NewBlobDescriptorService NewBlobStore returns a wrapped distribution.BlobDescriptorService.
func NewBlobStore ¶
func NewBlobStore(bs distribution.BlobStore, wrapper Wrapper) distribution.BlobStore
NewBlobStore returns a wrapped distribution.BlobStore.
func NewBlobWriter ¶
func NewBlobWriter(bw distribution.BlobWriter, wrapper Wrapper) distribution.BlobWriter
NewBlobWriter returns a wrapped distribution.BlobWriter.
func NewFileWriter ¶
func NewFileWriter(w storagedriver.FileWriter, wrapper SimpleWrapper) storagedriver.FileWriter
func NewManifestService ¶
func NewManifestService(ms distribution.ManifestService, wrapper Wrapper) distribution.ManifestService
NewManifestService returns a wrapped distribution.ManifestService.
func NewReadCloser ¶
func NewReadCloser(r io.ReadCloser, wrapper SimpleWrapper) io.ReadCloser
func NewRepository ¶
func NewRepository(r distribution.Repository, wrapper Wrapper) distribution.Repository
NewRepository returns a repository that creates wrapped services.
func NewStorageDriver ¶
func NewStorageDriver(driver storagedriver.StorageDriver, wrapper SimpleWrapper) storagedriver.StorageDriver
func NewTagService ¶
func NewTagService(ts distribution.TagService, wrapper Wrapper) distribution.TagService
NewTagService returns a wrapped distribution.TagService.
Types ¶
type SimpleWrapper ¶
SimpleWrapper is a user defined function that wraps methods to control the execution flow and error reporing of methods. Unlike Wrapper, it wraps functions that don't use contexts, including low-level functions like (io.Reader).Read.
Click to show internal directories.
Click to hide internal directories.