mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
add package to create a prepopulated backend registry
This commit is contained in:
28
internal/backend/all/all.go
Normal file
28
internal/backend/all/all.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package all
|
||||
|
||||
import (
|
||||
"github.com/restic/restic/internal/backend/azure"
|
||||
"github.com/restic/restic/internal/backend/b2"
|
||||
"github.com/restic/restic/internal/backend/gs"
|
||||
"github.com/restic/restic/internal/backend/local"
|
||||
"github.com/restic/restic/internal/backend/location"
|
||||
"github.com/restic/restic/internal/backend/rclone"
|
||||
"github.com/restic/restic/internal/backend/rest"
|
||||
"github.com/restic/restic/internal/backend/s3"
|
||||
"github.com/restic/restic/internal/backend/sftp"
|
||||
"github.com/restic/restic/internal/backend/swift"
|
||||
)
|
||||
|
||||
func Backends() *location.Registry {
|
||||
backends := location.NewRegistry()
|
||||
backends.Register(azure.NewFactory())
|
||||
backends.Register(b2.NewFactory())
|
||||
backends.Register(gs.NewFactory())
|
||||
backends.Register(local.NewFactory())
|
||||
backends.Register(rclone.NewFactory())
|
||||
backends.Register(rest.NewFactory())
|
||||
backends.Register(s3.NewFactory())
|
||||
backends.Register(sftp.NewFactory())
|
||||
backends.Register(swift.NewFactory())
|
||||
return backends
|
||||
}
|
||||
Reference in New Issue
Block a user