renamed storage.Storage to blob.Storage

This commit is contained in:
Jarek Kowalski
2016-09-08 21:11:50 -07:00
parent 00afa2dff6
commit 3323d17536
32 changed files with 123 additions and 123 deletions

View File

@@ -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

View File

@@ -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"
)

View File

@@ -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
}