Versions in this module Expand all Collapse all v1 v1.1.3 Jan 20, 2025 Changes in this version + func New(opts ...Option) http.Handler + func TLS(domain string) (*httptest.Server, error) + type BlobDeleteHandler interface + Delete func(ctx context.Context, repo string, h v1.Hash) error + type BlobHandler interface + Get func(ctx context.Context, repo string, h v1.Hash) (io.ReadCloser, error) + func NewDiskBlobHandler(dir string) BlobHandler + func NewInMemoryBlobHandler() BlobHandler + type BlobPutHandler interface + Put func(ctx context.Context, repo string, h v1.Hash, rc io.ReadCloser) error + type BlobStatHandler interface + Stat func(ctx context.Context, repo string, h v1.Hash) (int64, error) + type Option func(r *registry) + func Logger(l *log.Logger) Option + func WithBlobHandler(h BlobHandler) Option + func WithReferrersSupport(enabled bool) Option + func WithWarning(prob float64, msg string) Option