aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/backend/backend.go
blob: 4d72abc87c5669102bd3f4c8fc7a149802bb87e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package backend

import (
	"io"
	"os"
	"time"
)

type DataStorageBackend interface {
	io.ReaderAt
	io.WriterAt
	Truncate(off int64) error
	io.Closer
	GetStat() (datSize int64, modTime time.Time, err error)
	String() string
	Instantiate(src *os.File) error
}

var (
	StorageBackends []DataStorageBackend
)