mirror of
https://github.com/kopia/kopia.git
synced 2026-07-04 18:56:04 -04:00
renamed storage.Storage to blob.Storage
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
"gopkg.in/alecthomas/kingpin.v2"
|
||||
|
||||
"github.com/kopia/kopia/blob"
|
||||
"github.com/kopia/kopia/repo"
|
||||
"github.com/kopia/kopia/storage"
|
||||
"github.com/kopia/kopia/vault"
|
||||
)
|
||||
|
||||
@@ -59,7 +59,7 @@ func repositoryFormat() (*repo.Format, error) {
|
||||
return f, nil
|
||||
}
|
||||
|
||||
func openStorageAndEnsureEmpty(url string) (storage.Storage, error) {
|
||||
func openStorageAndEnsureEmpty(url string) (blob.Storage, error) {
|
||||
s, err := newStorageFromURL(url)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
"github.com/bgentry/speakeasy"
|
||||
"github.com/kopia/kopia"
|
||||
"github.com/kopia/kopia/blob/logging"
|
||||
"github.com/kopia/kopia/fs"
|
||||
"github.com/kopia/kopia/fs/localfs"
|
||||
"github.com/kopia/kopia/fs/loggingfs"
|
||||
"github.com/kopia/kopia/internal/config"
|
||||
"github.com/kopia/kopia/repo"
|
||||
"github.com/kopia/kopia/storage/logging"
|
||||
"github.com/kopia/kopia/vault"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/kopia/kopia/storage"
|
||||
fsstorage "github.com/kopia/kopia/storage/filesystem"
|
||||
gcsstorage "github.com/kopia/kopia/storage/gcs"
|
||||
"github.com/kopia/kopia/blob"
|
||||
fsstorage "github.com/kopia/kopia/blob/filesystem"
|
||||
gcsstorage "github.com/kopia/kopia/blob/gcs"
|
||||
)
|
||||
|
||||
func newStorageFromURL(urlString string) (storage.Storage, error) {
|
||||
func newStorageFromURL(urlString string) (blob.Storage, error) {
|
||||
if strings.HasPrefix(urlString, "/") {
|
||||
urlString = "file://" + urlString
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user