mirror of
https://github.com/jkaninda/go-storage.git
synced 2025-12-06 16:49:39 +01:00
Initial commit
This commit is contained in:
14
pkg/storage.go
Normal file
14
pkg/storage.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user