Documentation ¶
Index ¶
- Variables
- func InitTable(conn *sql.DB) error
- func NewReader(db *sql.DB, dir string, ref blobstore.BlobRef) (*reader, error)
- func NewReaderFromEntry(dir string, sourceFile string, size int64, offset int64) (*reader, error)
- func NewWriter(db *sql.DB, dir string, ref blobstore.BlobRef) (*writer, error)
- func RefToFile(ref blobstore.BlobRef) string
- func TestStores(t *testing.T, e func(ctx context.Context, t *testing.T, store blobstore.Blobs))
- func TestWithDb(t *testing.T, ctx context.Context, ...)
- type BlobInfo
- type FileInfo
- type LargeFileStore
- func (b *LargeFileStore) CheckWritability(ctx context.Context) error
- func (b *LargeFileStore) Close() error
- func (b *LargeFileStore) Create(ctx context.Context, ref blobstore.BlobRef, size int64) (blobstore.BlobWriter, error)
- func (b *LargeFileStore) CreateVerificationFile(ctx context.Context, id storj.NodeID) error
- func (b *LargeFileStore) Delete(ctx context.Context, ref blobstore.BlobRef) error
- func (b *LargeFileStore) DeleteNamespace(ctx context.Context, ref []byte) (err error)
- func (b *LargeFileStore) DeleteWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) error
- func (b *LargeFileStore) EmptyTrash(ctx context.Context, namespace []byte, trashedBefore time.Time) (int64, [][]byte, error)
- func (b *LargeFileStore) FreeSpace(ctx context.Context) (int64, error)
- func (b *LargeFileStore) ListNamespaces(ctx context.Context) ([][]byte, error)
- func (b *LargeFileStore) Open(ctx context.Context, ref blobstore.BlobRef) (blobstore.BlobReader, error)
- func (b *LargeFileStore) OpenWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobReader, error)
- func (b *LargeFileStore) RenameRef(ctx context.Context, ref1 blobstore.BlobRef, name string) error
- func (b *LargeFileStore) RestoreTrash(ctx context.Context, namespace []byte) ([][]byte, error)
- func (b *LargeFileStore) SpaceUsedForBlobs(ctx context.Context) (res int64, err error)
- func (b *LargeFileStore) SpaceUsedForBlobsInNamespace(ctx context.Context, namespace []byte) (res int64, err error)
- func (b *LargeFileStore) SpaceUsedForTrash(ctx context.Context) (res int64, err error)
- func (b *LargeFileStore) Stat(ctx context.Context, ref blobstore.BlobRef) (blobstore.BlobInfo, error)
- func (b *LargeFileStore) StatWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobInfo, error)
- func (b *LargeFileStore) Trash(ctx context.Context, ref blobstore.BlobRef) error
- func (b *LargeFileStore) VerifyStorageDir(ctx context.Context, id storj.NodeID) error
- func (b *LargeFileStore) WalkNamespace(ctx context.Context, namespace []byte, walkFunc func(blobstore.BlobInfo) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PathEncoding = base32.NewEncoding("abcdefghijklmnopqrstuvwxyz234567").WithPadding(base32.NoPadding)
Functions ¶
func NewReaderFromEntry ¶
func TestStores ¶
func TestWithDb ¶
Types ¶
type BlobInfo ¶
type BlobInfo struct {
// contains filtered or unexported fields
}
func (BlobInfo) StorageFormatVersion ¶
func (i BlobInfo) StorageFormatVersion() blobstore.FormatVersion
type LargeFileStore ¶
type LargeFileStore struct {
// contains filtered or unexported fields
}
func NewBlobStore ¶
func NewBlobStore(connDef string, dir string) (*LargeFileStore, error)
func (*LargeFileStore) CheckWritability ¶
func (b *LargeFileStore) CheckWritability(ctx context.Context) error
func (*LargeFileStore) Close ¶
func (b *LargeFileStore) Close() error
func (*LargeFileStore) Create ¶
func (b *LargeFileStore) Create(ctx context.Context, ref blobstore.BlobRef, size int64) (blobstore.BlobWriter, error)
func (*LargeFileStore) CreateVerificationFile ¶
func (*LargeFileStore) DeleteNamespace ¶
func (b *LargeFileStore) DeleteNamespace(ctx context.Context, ref []byte) (err error)
func (*LargeFileStore) DeleteWithStorageFormat ¶
func (b *LargeFileStore) DeleteWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) error
func (*LargeFileStore) EmptyTrash ¶
func (*LargeFileStore) FreeSpace ¶
func (b *LargeFileStore) FreeSpace(ctx context.Context) (int64, error)
func (*LargeFileStore) ListNamespaces ¶
func (b *LargeFileStore) ListNamespaces(ctx context.Context) ([][]byte, error)
func (*LargeFileStore) Open ¶
func (b *LargeFileStore) Open(ctx context.Context, ref blobstore.BlobRef) (blobstore.BlobReader, error)
func (*LargeFileStore) OpenWithStorageFormat ¶
func (b *LargeFileStore) OpenWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobReader, error)
func (*LargeFileStore) RestoreTrash ¶
func (*LargeFileStore) SpaceUsedForBlobs ¶
func (b *LargeFileStore) SpaceUsedForBlobs(ctx context.Context) (res int64, err error)
func (*LargeFileStore) SpaceUsedForBlobsInNamespace ¶
func (*LargeFileStore) SpaceUsedForTrash ¶
func (b *LargeFileStore) SpaceUsedForTrash(ctx context.Context) (res int64, err error)
func (*LargeFileStore) StatWithStorageFormat ¶
func (b *LargeFileStore) StatWithStorageFormat(ctx context.Context, ref blobstore.BlobRef, formatVer blobstore.FormatVersion) (blobstore.BlobInfo, error)
func (*LargeFileStore) VerifyStorageDir ¶
func (*LargeFileStore) WalkNamespace ¶
Click to show internal directories.
Click to hide internal directories.