changed from os.file to backend.DataStorageBackend
This commit is contained in:
15
weed/storage/backend/backend.go
Normal file
15
weed/storage/backend/backend.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package backend
|
||||
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
type DataStorageBackend interface {
|
||||
io.ReaderAt
|
||||
io.WriterAt
|
||||
Truncate(off int64) error
|
||||
io.Closer
|
||||
GetStat() (datSize int64, modTime time.Time, err error)
|
||||
String() string
|
||||
}
|
||||
Reference in New Issue
Block a user