Documentation ¶
Index ¶
- func NewReader(db *badger.DB, ref blobstore.BlobRef) (blobstore.BlobReader, error)
- func NewWriter(db *badger.DB, ref blobstore.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 blobstore.BlobRef) (blobstore.BlobWriter, error)
- func (b *BlobStore) CreateVerificationFile(ctx context.Context, id storj.NodeID) error
- func (b *BlobStore) Delete(ctx context.Context, ref blobstore.BlobRef) error
- func (b *BlobStore) DeleteNamespace(ctx context.Context, ref []byte) (err error)
- func (b *BlobStore) DeleteTrashNamespace(ctx context.Context, namespace []byte) (err error)
- func (b *BlobStore) DeleteWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) error
- func (b *BlobStore) DiskInfo(ctx context.Context) (blobstore.DiskInfo, error)
- func (b *BlobStore) EmptyTrash(ctx context.Context, namespace []byte, trashedBefore time.Time) (int64, [][]byte, error)
- func (b *BlobStore) ListNamespaces(ctx context.Context) ([][]byte, error)
- func (b *BlobStore) Open(ctx context.Context, ref blobstore.BlobRef) (blobstore.BlobReader, error)
- func (b *BlobStore) OpenWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.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 blobstore.BlobRef) (blobstore.BlobInfo, error)
- func (b *BlobStore) StatWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobInfo, error)
- func (b *BlobStore) Trash(ctx context.Context, ref blobstore.BlobRef, timestamp time.Time) error
- func (b *BlobStore) TryRestoreTrashBlob(ctx context.Context, ref blobstore.BlobRef) error
- func (b *BlobStore) VerifyStorageDir(ctx context.Context, id storj.NodeID) error
- func (b *BlobStore) WalkNamespace(ctx context.Context, namespace []byte, startFromPrefix string, ...) 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() blobstore.FormatVersion
type BlobStore ¶
type BlobStore struct {
// contains filtered or unexported fields
}
func NewBlobStore ¶
func (*BlobStore) CheckWritability ¶
func (*BlobStore) CreateVerificationFile ¶
func (*BlobStore) DeleteNamespace ¶
func (*BlobStore) DeleteTrashNamespace ¶
func (*BlobStore) DeleteWithStorageFormat ¶
func (*BlobStore) EmptyTrash ¶
func (*BlobStore) ListNamespaces ¶
func (*BlobStore) OpenWithStorageFormat ¶
func (b *BlobStore) OpenWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobReader, error)
func (*BlobStore) RestoreTrash ¶
func (*BlobStore) SpaceUsedForBlobs ¶
func (*BlobStore) SpaceUsedForBlobsInNamespace ¶
func (*BlobStore) SpaceUsedForTrash ¶
func (*BlobStore) StatWithStorageFormat ¶
func (*BlobStore) TryRestoreTrashBlob ¶
func (*BlobStore) VerifyStorageDir ¶
Click to show internal directories.
Click to hide internal directories.