Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStore ¶
type LocalStore struct {
// contains filtered or unexported fields
}
LocalStore stores blobs on local disk, sharded git-object-store style: <root>/<first-2-hex>/<full-hex>.
func NewLocalStore ¶
func NewLocalStore(root string) *LocalStore
type Store ¶
type Store interface {
Put(content []byte) (contentHash string, err error)
Get(contentHash string) ([]byte, error)
Has(contentHash string) (bool, error)
}
Store is the content-addressable blob interface. Payloads are immutable and identified purely by content hash — a future S3/MinIO implementation satisfies the same interface.
Click to show internal directories.
Click to hide internal directories.