Add LengthDeferrerDataStore interface

This commit is contained in:
Adam Jensen 2018-05-05 11:37:56 -04:00
parent 77a8455a67
commit 55f99cb34a
1 changed files with 8 additions and 0 deletions

View File

@ -114,3 +114,11 @@ type ConcaterDataStore interface {
// must be respected during concatenation.
ConcatUploads(destination string, partialUploads []string) error
}
// LengthDeferrerDataStore is the interface that must be implemented if the
// creation-defer-length extension should be enabled. The extension enables a
// client to upload files when their total size is not yet known. Instead, the
// client must send the total size as soon as it becomes known.
type LengthDeferrerDataStore interface {
DeclareLength(id string, length int64) error
}