mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
d0f5aa670b
Our context package predates the establishment of current best practices regarding context usage and it shows. It encourages bad practices such as using contexts to propagate non-request-scoped values like the application version and using string-typed keys for context values. Move the package internal to remove it from the API surface of distribution/v3@v3.0.0 so we are free to iterate on it without being constrained by compatibility. Signed-off-by: Cory Snider <csnider@mirantis.com>
19 lines
451 B
Go
19 lines
451 B
Go
//go:build noresumabledigest
|
|
// +build noresumabledigest
|
|
|
|
package storage
|
|
|
|
import (
|
|
"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
|
|
}
|