mirror of
https://github.com/Luzifer/s3sync.git
synced 2024-12-20 19:41:15 +00:00
Knut Ahlers
627fe09bac
- Drop MD5 checksumming - Replace logging to stdout - Add Endpoint flag for MinIO support - Switch to Go modules support Signed-off-by: Knut Ahlers <knut@ahlers.me>
26 lines
620 B
Go
26 lines
620 B
Go
// Package fsprovider contains implementations for filesystem access
|
|
// to read files from / write files to
|
|
package fsprovider
|
|
|
|
import (
|
|
"io"
|
|
"time"
|
|
)
|
|
|
|
type (
|
|
// File contains metadata about the file to be copied
|
|
File struct {
|
|
Filename string
|
|
LastModified time.Time
|
|
Size int64
|
|
}
|
|
|
|
// Provider describes the implementation of a fsprovider
|
|
Provider interface {
|
|
WriteFile(path string, content io.Reader, public bool) error
|
|
ReadFile(path string) (io.ReadCloser, error)
|
|
ListFiles(prefix string) ([]File, error)
|
|
DeleteFile(path string) error
|
|
GetAbsolutePath(path string) (string, error)
|
|
}
|
|
)
|