Documentation ¶
Overview ¶
This package implements a simple disk-persisted content-addressed blobstore.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadFile = errors.New("a bad file exists in the blobstore directory. unable to create container directores.") ErrNoSuchKey = errors.New("no such key") ErrInvalidKey = errors.New("invalid key") )
View Source
var ErrHashMismatch = errors.New("hash mismatch")
ErrHashMismatch is returned if a blobReader has read a file whose computed hash did not match its key.
Functions ¶
func Close ¶
func Close() (err error)
Close the open default BlobStore. This removes the lockfile allowing other processes to open the BlobStore.
Types ¶
type BlobStore ¶
type BlobStore struct {
// contains filtered or unexported fields
}
func NewBlobStore ¶
Open an existing, or create a new BlobStore residing at path. Path must point to a directory, and must already exist.
func (*BlobStore) Close ¶
Close an open BlobStore. This removes the lockfile allowing other processes to open the BlobStore.
Click to show internal directories.
Click to hide internal directories.