Documentation ¶
Index ¶
- func Migrate(db *sql.DB) error
- func Open(driver string, file string, migrate bool) (*sql.DB, error)
- type SQLiteDB
- func (db *SQLiteDB) Close() error
- func (db *SQLiteDB) CountUploaders(ctx context.Context) (int, error)
- func (db *SQLiteDB) CreateUpload(ctx context.Context, upID string, up *uploader.Upload) error
- func (db *SQLiteDB) CreateUploader(ctx context.Context, upper *uploader.PersistentUploader) error
- func (db *SQLiteDB) DeleteObject(ctx context.Context, storeID, objectID string) (err error)
- func (db *SQLiteDB) DeleteUploader(ctx context.Context, id string) error
- func (db *SQLiteDB) GetObjectManifest(ctx context.Context, storeID, objID string) (*chaparral.ObjectManifest, error)
- func (db *SQLiteDB) GetUploader(ctx context.Context, id string) (*uploader.PersistentUploader, error)
- func (db *SQLiteDB) GetUploaderIDs(ctx context.Context) ([]string, error)
- func (sqdb *SQLiteDB) SetObjectManifest(ctx context.Context, obj *chaparral.ObjectManifest) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SQLiteDB ¶
func (*SQLiteDB) CountUploaders ¶
number of uploaders
func (*SQLiteDB) CreateUpload ¶
func (*SQLiteDB) CreateUploader ¶
func (*SQLiteDB) DeleteObject ¶
func (*SQLiteDB) DeleteUploader ¶
Delete the uploader and all its uploads
func (*SQLiteDB) GetObjectManifest ¶
func (*SQLiteDB) GetUploader ¶
func (db *SQLiteDB) GetUploader(ctx context.Context, id string) (*uploader.PersistentUploader, error)
GetUploader with all it's uploads
func (*SQLiteDB) GetUploaderIDs ¶
list of all uploaderIDs
func (*SQLiteDB) SetObjectManifest ¶
Click to show internal directories.
Click to hide internal directories.