introduced side-effecting import 'kopia/kopia/storage/providers' which registers all storage providers, by default no storage providers are dependencies of 'repo'

This commit is contained in:
Jarek Kowalski
2018-07-22 12:09:42 -07:00
parent be32f6b717
commit 9543c85e5a
2 changed files with 8 additions and 4 deletions

View File

@@ -15,10 +15,6 @@
"github.com/kopia/kopia/internal/ospath"
"github.com/kopia/kopia/internal/units"
"github.com/kopia/kopia/storage"
// Register well-known blob storage providers
_ "github.com/kopia/kopia/storage/filesystem"
_ "github.com/kopia/kopia/storage/gcs"
)
// ConnectOptions specifies options when persisting configuration to connect to a repository.

View File

@@ -0,0 +1,8 @@
// Package providers registers all storage providers that are included as part of Kopia.
package providers
import (
// Register well-known blob storage providers
_ "github.com/kopia/kopia/storage/filesystem"
_ "github.com/kopia/kopia/storage/gcs"
)