mirror of
https://github.com/restic/restic.git
synced 2026-06-13 04:19:45 +00:00
Remove Create() everywhere
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package backend
|
||||
|
||||
import "io"
|
||||
|
||||
// Type is the type of a Blob.
|
||||
type Type string
|
||||
|
||||
@@ -21,10 +19,6 @@ type Backend interface {
|
||||
// repository.
|
||||
Location() string
|
||||
|
||||
// Create creates a new Blob. The data is available only after Finalize()
|
||||
// has been called on the returned Blob.
|
||||
Create() (Blob, error)
|
||||
|
||||
// Test a boolean value whether a Blob with the name and type exists.
|
||||
Test(t Type, name string) (bool, error)
|
||||
|
||||
@@ -65,14 +59,3 @@ type Deleter interface {
|
||||
type BlobInfo struct {
|
||||
Size int64
|
||||
}
|
||||
|
||||
// Blob is old.
|
||||
type Blob interface {
|
||||
io.Writer
|
||||
|
||||
// Finalize moves the data blob to the final location for type and name.
|
||||
Finalize(t Type, name string) error
|
||||
|
||||
// Size returns the number of bytes written to the backend so far.
|
||||
Size() uint
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user