mirror of
https://github.com/openziti/zrok.git
synced 2024-11-29 19:43:26 +01:00
23 lines
385 B
Go
23 lines
385 B
Go
package sync
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
"time"
|
|
)
|
|
|
|
type Object struct {
|
|
Path string
|
|
Size int64
|
|
Modified time.Time
|
|
ETag string
|
|
}
|
|
|
|
type Target interface {
|
|
Inventory() ([]*Object, error)
|
|
IsDir() bool
|
|
ReadStream(path string) (io.ReadCloser, error)
|
|
WriteStream(path string, stream io.Reader, mode os.FileMode) error
|
|
SetModificationTime(path string, mtime time.Time) error
|
|
}
|