mirror of
https://github.com/jkaninda/go-storage.git
synced 2025-12-06 16:49:39 +01:00
15 lines
259 B
Go
15 lines
259 B
Go
|
|
package pkg
|
||
|
|
|
||
|
|
type Storage interface {
|
||
|
|
Copy(fileName string) error
|
||
|
|
CopyFrom(fileName string) error
|
||
|
|
Prune(retentionDays int) error
|
||
|
|
Name() string
|
||
|
|
}
|
||
|
|
type Backend struct {
|
||
|
|
//Local Path
|
||
|
|
LocalPath string
|
||
|
|
//Remote path or Destination path
|
||
|
|
RemotePath string
|
||
|
|
}
|