Documentation ¶
Index ¶
- func NewReader(db *badger.DB, ref storage.BlobRef) (storage.BlobReader, error)
- func NewWriter(db *badger.DB, ref storage.BlobRef) *writer
- type BlobInfo
- type BlobStore
- func (b *BlobStore) CheckWritability(ctx context.Context) error
- func (b *BlobStore) Close() error
- func (b *BlobStore) Create(ctx context.Context, ref storage.BlobRef, size int64) (storage.BlobWriter, error)
- func (b *BlobStore) CreateVerificationFile(ctx context.Context, id storj.NodeID) error
- func (b *BlobStore) Delete(ctx context.Context, ref storage.BlobRef) error
- func (b *BlobStore) DeleteNamespace(ctx context.Context, ref []byte) (err error)
- func (b *BlobStore) DeleteWithStorageFormat(ctx context.Context, ref storage.BlobRef, formatVer storage.FormatVersion) error
- func (b *BlobStore) EmptyTrash(ctx context.Context, namespace []byte, trashedBefore time.Time) (int64, [][]byte, error)
- func (b *BlobStore) FreeSpace(ctx context.Context) (int64, error)
- func (b *BlobStore) ListNamespaces(ctx context.Context) ([][]byte, error)
- func (b *BlobStore) Open(ctx context.Context, ref storage.BlobRef) (storage.BlobReader, error)
- func (b *BlobStore) OpenWithStorageFormat(ctx context.Context, ref storage.BlobRef, formatVer storage.FormatVersion) (storage.BlobReader, error)
- func (b *BlobStore) RestoreTrash(ctx context.Context, namespace []byte) ([][]byte, error)
- func (b *BlobStore) SpaceUsedForBlobs(ctx context.Context) (int64, error)
- func (b *BlobStore) SpaceUsedForBlobsInNamespace(ctx context.Context, namespace []byte) (int64, error)
- func (b *BlobStore) SpaceUsedForTrash(ctx context.Context) (int64, error)
- func (b *BlobStore) Stat(ctx context.Context, ref storage.BlobRef) (storage.BlobInfo, error)
- func (b *BlobStore) StatWithStorageFormat(ctx context.Context, ref storage.BlobRef, formatVer storage.FormatVersion) (storage.BlobInfo, error)
- func (b *BlobStore) Trash(ctx context.Context, ref storage.BlobRef) error
- func (b *BlobStore) VerifyStorageDir(ctx context.Context, id storj.NodeID) error
- func (b *BlobStore) WalkNamespace(ctx context.Context, namespace []byte, walkFunc func(storage.BlobInfo) error) error
- type DiskInfo
- type FileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlobInfo ¶
type BlobInfo struct {
// contains filtered or unexported fields
}
func (BlobInfo) StorageFormatVersion ¶
func (i BlobInfo) StorageFormatVersion() storage.FormatVersion
type BlobStore ¶
type BlobStore struct {
// contains filtered or unexported fields
}
func NewBlobStore ¶
func (*BlobStore) CheckWritability ¶
func (*BlobStore) CreateVerificationFile ¶
func (*BlobStore) DeleteNamespace ¶
func (*BlobStore) DeleteWithStorageFormat ¶
func (*BlobStore) EmptyTrash ¶
func (*BlobStore) ListNamespaces ¶
func (*BlobStore) OpenWithStorageFormat ¶
func (b *BlobStore) OpenWithStorageFormat(ctx context.Context, ref storage.BlobRef, formatVer storage.FormatVersion) (storage.BlobReader, error)
func (*BlobStore) RestoreTrash ¶
func (*BlobStore) SpaceUsedForBlobs ¶
func (*BlobStore) SpaceUsedForBlobsInNamespace ¶
func (*BlobStore) SpaceUsedForTrash ¶
func (*BlobStore) StatWithStorageFormat ¶
func (*BlobStore) VerifyStorageDir ¶
Click to show internal directories.
Click to hide internal directories.