refactor: create storage interface, refactor local, s3, ftp and ssh storage
This commit is contained in:
14
pkg/storage/storage.go
Normal file
14
pkg/storage/storage.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package storage
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user