15 lines
402 B
Go
Raw Permalink Normal View History

2024-04-10 22:10:09 +08:00
package interfaces
import (
"context"
"io"
"nf-repo/internal/model"
)
type BlobHandler interface {
Get(ctx context.Context, repo string, hash model.Hash) (io.ReadCloser, error)
Stat(ctx context.Context, repo string, hash model.Hash) (int64, error)
Put(ctx context.Context, repo string, hash model.Hash, rc io.ReadCloser) error
Delete(ctx context.Context, repo string, hash model.Hash) error
}