mirror of
https://github.com/distribution/distribution.git
synced 2025-09-29 07:55:51 +00:00
Add support for blobAccessController middleware
Signed-off-by: Michal Minar <miminar@redhat.com> Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
This commit is contained in:
committed by
Alexey Gladkov
parent
4a915d6efd
commit
f97eca5ad6
5
blobs.go
5
blobs.go
@@ -124,6 +124,11 @@ type BlobDescriptorService interface {
|
||||
Clear(ctx context.Context, dgst digest.Digest) error
|
||||
}
|
||||
|
||||
// BlobDescriptorServiceFactory creates middleware for BlobDescriptorService.
|
||||
type BlobDescriptorServiceFactory interface {
|
||||
BlobAccessController(svc BlobDescriptorService) BlobDescriptorService
|
||||
}
|
||||
|
||||
// ReadSeekCloser is the primary reader type for blob data, combining
|
||||
// io.ReadSeeker with io.Closer.
|
||||
type ReadSeekCloser interface {
|
||||
|
Reference in New Issue
Block a user