Documentation ¶
Index ¶
Constants ¶
View Source
const (
PARTITION_BLOBS = "blobs"
)
Variables ¶
View Source
var (
ErrBlobNotFound = errors.New("store/blob: blob not found")
)
Functions ¶
This section is empty.
Types ¶
type BlobStore ¶
type BlobStore struct { BlobStorer // contains filtered or unexported fields }
func (*BlobStore) Count ¶
Deleted blob the blob store. ErrBlobNotFound is returned if the provided blob key could not be found.
func (*BlobStore) Delete ¶
Deleted blob the blob store. ErrBlobNotFound is returned if the provided blob key could not be found.
func (*BlobStore) Get ¶
Retrieves a signed blob from the "signed" partition. ErrBlobNotFound is returned if the signed data could not be found.
type BlobStorer ¶
type BlobStorer interface { Delete(key []byte) error Exists(key []byte) bool Get(key []byte) ([]byte, error) Save(key, data []byte) error Count(partition *string) (int, error) }
func NewFSBlobStore ¶
func NewFSBlobStore( logger *logging.Logger, fs afero.Fs, rootDir string, partition *string) (BlobStorer, error)
Creates a new local file system backed blob store
Click to show internal directories.
Click to hide internal directories.