Move all backends into backend directory

This commit is contained in:
Nick Craig-Wood 2018-01-11 16:05:41 +00:00
parent 0a7731cf0d
commit b8b620f5c2
143 changed files with 88 additions and 87 deletions

26
backend/all/all.go Normal file
View file

@ -0,0 +1,26 @@
package all
import (
// Active file systems
_ "github.com/ncw/rclone/backend/amazonclouddrive"
_ "github.com/ncw/rclone/backend/azureblob"
_ "github.com/ncw/rclone/backend/b2"
_ "github.com/ncw/rclone/backend/box"
_ "github.com/ncw/rclone/backend/cache"
_ "github.com/ncw/rclone/backend/crypt"
_ "github.com/ncw/rclone/backend/drive"
_ "github.com/ncw/rclone/backend/dropbox"
_ "github.com/ncw/rclone/backend/ftp"
_ "github.com/ncw/rclone/backend/googlecloudstorage"
_ "github.com/ncw/rclone/backend/http"
_ "github.com/ncw/rclone/backend/hubic"
_ "github.com/ncw/rclone/backend/local"
_ "github.com/ncw/rclone/backend/onedrive"
_ "github.com/ncw/rclone/backend/pcloud"
_ "github.com/ncw/rclone/backend/qingstor"
_ "github.com/ncw/rclone/backend/s3"
_ "github.com/ncw/rclone/backend/sftp"
_ "github.com/ncw/rclone/backend/swift"
_ "github.com/ncw/rclone/backend/webdav"
_ "github.com/ncw/rclone/backend/yandex"
)

View file

@ -7,7 +7,7 @@ package amazonclouddrive_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/amazonclouddrive" "github.com/ncw/rclone/backend/amazonclouddrive"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -10,7 +10,7 @@ package azureblob_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/azureblob" "github.com/ncw/rclone/backend/azureblob"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/ncw/rclone/b2/api" "github.com/ncw/rclone/backend/b2/api"
"github.com/ncw/rclone/fstest" "github.com/ncw/rclone/fstest"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -19,7 +19,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/ncw/rclone/b2/api" "github.com/ncw/rclone/backend/b2/api"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/pacer" "github.com/ncw/rclone/pacer"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"

View file

@ -7,7 +7,7 @@ package b2_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/b2" "github.com/ncw/rclone/backend/b2"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -14,7 +14,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/ncw/rclone/b2/api" "github.com/ncw/rclone/backend/b2/api"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"
"github.com/pkg/errors" "github.com/pkg/errors"

View file

@ -21,7 +21,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/ncw/rclone/box/api" "github.com/ncw/rclone/backend/box/api"
"github.com/ncw/rclone/dircache" "github.com/ncw/rclone/dircache"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil" "github.com/ncw/rclone/oauthutil"

View file

@ -7,7 +7,7 @@ package box_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/box" "github.com/ncw/rclone/backend/box"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -14,7 +14,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/ncw/rclone/box/api" "github.com/ncw/rclone/backend/box/api"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"
"github.com/pkg/errors" "github.com/pkg/errors"

View file

@ -16,7 +16,7 @@ import (
"os/signal" "os/signal"
"syscall" "syscall"
"github.com/ncw/rclone/crypt" "github.com/ncw/rclone/backend/crypt"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/net/context" "golang.org/x/net/context"

View file

@ -19,14 +19,14 @@ import (
"os/exec" "os/exec"
//"strings" //"strings"
"github.com/ncw/rclone/cache" "github.com/ncw/rclone/backend/cache"
//"github.com/ncw/rclone/cmd/mount" //"github.com/ncw/rclone/cmd/mount"
//_ "github.com/ncw/rclone/cmd/cmount" //_ "github.com/ncw/rclone/cmd/cmount"
//"github.com/ncw/rclone/cmd/mountlib" //"github.com/ncw/rclone/cmd/mountlib"
_ "github.com/ncw/rclone/drive" _ "github.com/ncw/rclone/backend/drive"
"github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest" "github.com/ncw/rclone/fstest"
"github.com/ncw/rclone/local"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View file

@ -10,10 +10,10 @@ package cache_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/cache" "github.com/ncw/rclone/backend/cache"
_ "github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
_ "github.com/ncw/rclone/local"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -13,7 +13,7 @@ import (
"sync" "sync"
"unicode/utf8" "unicode/utf8"
"github.com/ncw/rclone/crypt/pkcs7" "github.com/ncw/rclone/backend/crypt/pkcs7"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/crypto/nacl/secretbox" "golang.org/x/crypto/nacl/secretbox"

View file

@ -9,7 +9,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/ncw/rclone/crypt/pkcs7" "github.com/ncw/rclone/backend/crypt/pkcs7"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View file

@ -7,10 +7,10 @@ package crypt_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/crypt" "github.com/ncw/rclone/backend/crypt"
_ "github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
_ "github.com/ncw/rclone/local"
) )
func TestSetup2(t *testing.T) { func TestSetup2(t *testing.T) {

View file

@ -7,10 +7,10 @@ package crypt_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/crypt" "github.com/ncw/rclone/backend/crypt"
_ "github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
_ "github.com/ncw/rclone/local"
) )
func TestSetup3(t *testing.T) { func TestSetup3(t *testing.T) {

View file

@ -7,10 +7,10 @@ package crypt_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/crypt" "github.com/ncw/rclone/backend/crypt"
_ "github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
_ "github.com/ncw/rclone/local"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,7 +7,7 @@ package drive_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/drive" "github.com/ncw/rclone/backend/drive"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/ncw/rclone/dropbox/dbhash" "github.com/ncw/rclone/backend/dropbox/dbhash"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View file

@ -7,7 +7,7 @@ package dropbox_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/dropbox" "github.com/ncw/rclone/backend/dropbox"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
) )

View file

@ -7,9 +7,9 @@ package ftp_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/ftp"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/ftp"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,9 +7,9 @@ package googlecloudstorage_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/googlecloudstorage"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/googlecloudstorage"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -13,9 +13,9 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/ncw/rclone/backend/swift"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil" "github.com/ncw/rclone/oauthutil"
"github.com/ncw/rclone/swift"
swiftLib "github.com/ncw/swift" swiftLib "github.com/ncw/swift"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/oauth2" "golang.org/x/oauth2"

View file

@ -7,9 +7,9 @@ package hubic_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/hubic"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/hubic"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,9 +7,9 @@ package local_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/local"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/local"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -14,10 +14,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/ncw/rclone/backend/onedrive/api"
"github.com/ncw/rclone/dircache" "github.com/ncw/rclone/dircache"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil" "github.com/ncw/rclone/oauthutil"
"github.com/ncw/rclone/onedrive/api"
"github.com/ncw/rclone/pacer" "github.com/ncw/rclone/pacer"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"
"github.com/pkg/errors" "github.com/pkg/errors"

View file

@ -7,9 +7,9 @@ package onedrive_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/onedrive"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/onedrive"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -21,11 +21,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/ncw/rclone/backend/pcloud/api"
"github.com/ncw/rclone/dircache" "github.com/ncw/rclone/dircache"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil" "github.com/ncw/rclone/oauthutil"
"github.com/ncw/rclone/pacer" "github.com/ncw/rclone/pacer"
"github.com/ncw/rclone/pcloud/api"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"
"github.com/pkg/errors" "github.com/pkg/errors"
"golang.org/x/oauth2" "golang.org/x/oauth2"

View file

@ -7,9 +7,9 @@ package pcloud_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/pcloud"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/pcloud"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -10,9 +10,9 @@ package qingstor_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/qingstor"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/qingstor"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,9 +7,9 @@ package s3_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/s3"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/s3"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,9 +7,9 @@ package sftp_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/sftp"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/sftp"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -7,9 +7,9 @@ package swift_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/swift"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/swift"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

View file

@ -28,10 +28,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/ncw/rclone/backend/webdav/api"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/pacer" "github.com/ncw/rclone/pacer"
"github.com/ncw/rclone/rest" "github.com/ncw/rclone/rest"
"github.com/ncw/rclone/webdav/api"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View file

@ -7,9 +7,9 @@ package webdav_test
import ( import (
"testing" "testing"
"github.com/ncw/rclone/backend/webdav"
"github.com/ncw/rclone/fs" "github.com/ncw/rclone/fs"
"github.com/ncw/rclone/fstest/fstests" "github.com/ncw/rclone/fstest/fstests"
"github.com/ncw/rclone/webdav"
) )
func TestSetup(t *testing.T) { func TestSetup(t *testing.T) {

Some files were not shown because too many files have changed in this diff Show more