forked from TrueCloudLab/distribution
2392893bcf
Signed-off-by: Wang Yan <wangyan@vmware.com>
(cherry picked from commit 3f4c558dac
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
482 B
Go
18 lines
482 B
Go
//go:build noresumabledigest
|
|
// +build noresumabledigest
|
|
|
|
package storage
|
|
|
|
import (
|
|
"github.com/docker/distribution/context"
|
|
)
|
|
|
|
// resumeHashAt is a noop when resumable digest support is disabled.
|
|
func (bw *blobWriter) resumeDigest(ctx context.Context) error {
|
|
return errResumableDigestNotAvailable
|
|
}
|
|
|
|
// storeHashState is a noop when resumable digest support is disabled.
|
|
func (bw *blobWriter) storeHashState(ctx context.Context) error {
|
|
return errResumableDigestNotAvailable
|
|
}
|