Add documentation for FinisherDataStore
This commit is contained in:
parent
101648e382
commit
cbf08de13d
|
@ -64,9 +64,16 @@ type TerminaterDataStore interface {
|
||||||
Terminate(id string) error
|
Terminate(id string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FinisherDataStore is the interface which can be implemented by DataStores
|
||||||
|
// which need to do additional operations once an entire upload has been
|
||||||
|
// completed. These tasks may include but are not limited to freeing unused
|
||||||
|
// resources or notifying other services. For example, S3Store uses this
|
||||||
|
// interface for removing a temporary object.
|
||||||
type FinisherDataStore interface {
|
type FinisherDataStore interface {
|
||||||
DataStore
|
DataStore
|
||||||
|
|
||||||
|
// FinishUpload executes additional operations for the finished upload which
|
||||||
|
// is specified by its ID.
|
||||||
FinishUpload(id string) error
|
FinishUpload(id string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue