Documentation ¶
Index ¶
- Constants
- Variables
- type BlobStore
- func (store *BlobStore) Count(partition *string) (int, error)
- func (store *BlobStore) Delete(key []byte) error
- func (store *BlobStore) Exists(key []byte) bool
- func (store *BlobStore) Get(key []byte) ([]byte, error)
- func (store *BlobStore) Home() string
- func (store *BlobStore) Partition() string
- func (store *BlobStore) Save(key, data []byte) error
- type BlobStorer
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 ¶
Deletes a blob from the blob store. ErrBlobNotFound is returned if the provided blob key could not be found.
func (*BlobStore) Get ¶
Retrieves a blob from the blob store. ErrBlobNotFound is returned if the signed data could not be found.
type BlobStorer ¶
type BlobStorer interface { Count(partition *string) (int, error) Delete(key []byte) error Exists(key []byte) bool Get(key []byte) ([]byte, error) Home() string Partition() string Save(key, data []byte) 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.