Documentation ¶
Index ¶
- Variables
- type Blob
- type Id
- type Option
- type Reader
- type Store
- func (store *Store) Blob(id Id) (*Blob, error)
- func (store *Store) CommitUpload(tr fdb.Transaction, uploadToken UploadToken) (Id, error)
- func (store *Store) Create(ctx context.Context, r io.Reader) (*Blob, error)
- func (store *Store) DeleteRemovedBlobsBefore(date time.Time) ([]Id, error)
- func (store *Store) DeleteUploadsStartedBefore(date time.Time) ([]Id, error)
- func (store *Store) RemoveBlob(id Id) error
- func (store *Store) Upload(ctx context.Context, r io.Reader) (UploadToken, error)
- type SystemTime
- type UploadToken
Constants ¶
This section is empty.
Variables ¶
View Source
var BlobNotFoundError = errors.New("blob not found")
Functions ¶
This section is empty.
Types ¶
type Blob ¶ added in v0.7.0
type Blob struct {
// contains filtered or unexported fields
}
type Option ¶
func WithChunkSize ¶
func WithSystemTime ¶ added in v0.8.0
func WithSystemTime(systemTime SystemTime) Option
type Store ¶ added in v0.10.0
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CommitUpload ¶ added in v0.10.0
func (store *Store) CommitUpload(tr fdb.Transaction, uploadToken UploadToken) (Id, error)
func (*Store) DeleteRemovedBlobsBefore ¶ added in v0.10.0
func (*Store) DeleteUploadsStartedBefore ¶ added in v0.10.0
func (*Store) RemoveBlob ¶ added in v0.10.0
type SystemTime ¶ added in v0.8.0
type UploadToken ¶ added in v0.4.0
type UploadToken interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.