proxyBlobStore implements Put

Signed-off-by: Alex Biehl <alexbiehl@gmail.com>
This commit is contained in:
Alex Biehl 2021-11-17 07:43:21 +01:00
parent 6248a88d03
commit 4dbffc0a25

View file

@ -190,11 +190,11 @@ func (pbs *proxyBlobStore) Get(ctx context.Context, dgst digest.Digest) ([]byte,
return blob, nil
}
// Unsupported functions
func (pbs *proxyBlobStore) Put(ctx context.Context, mediaType string, p []byte) (distribution.Descriptor, error) {
return distribution.Descriptor{}, distribution.ErrUnsupported
return pbs.localStore.Put(ctx, mediaType, p)
}
// Unsupported functions
func (pbs *proxyBlobStore) Create(ctx context.Context, options ...distribution.BlobCreateOption) (distribution.BlobWriter, error) {
return nil, distribution.ErrUnsupported
}