Migrate storage

This commit is contained in:
Jonas Kaninda
2024-11-19 04:03:41 +01:00
parent 048c93cc48
commit 3c8bd91ad1
9 changed files with 646 additions and 10 deletions

14
pkg/storage/storage.go Normal file
View File

@@ -0,0 +1,14 @@
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
}