1 //go:build noresumabledigest 2 // +build noresumabledigest 3 4 package storage 5 6 import ( 7 "github.com/docker/distribution/context" 8 ) 9 10 // resumeHashAt is a noop when resumable digest support is disabled. 11 func (bw *blobWriter) resumeDigest(ctx context.Context) error { 12 return errResumableDigestNotAvailable 13 } 14 15 // storeHashState is a noop when resumable digest support is disabled. 16 func (bw *blobWriter) storeHashState(ctx context.Context) error { 17 return errResumableDigestNotAvailable 18 } 19