modules: add v2 support

This commit is contained in:
Nicola Murino
2021-06-26 07:31:41 +02:00
parent 93dfb03eaf
commit 076b2f0ee0
129 changed files with 454 additions and 446 deletions

View File

@@ -23,9 +23,9 @@ import (
"github.com/eikenb/pipeat"
"github.com/pkg/sftp"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/metrics"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/metrics"
"github.com/drakkan/sftpgo/v2/version"
)
const azureDefaultEndpoint = "blob.core.windows.net"

View File

@@ -5,7 +5,7 @@ package vfs
import (
"errors"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
func init() {

View File

@@ -13,7 +13,7 @@ import (
"github.com/minio/sio"
"golang.org/x/crypto/hkdf"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/v2/logger"
)
const (

View File

@@ -3,8 +3,8 @@ package vfs
import (
"fmt"
"github.com/drakkan/sftpgo/kms"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/v2/kms"
"github.com/drakkan/sftpgo/v2/utils"
)
// FilesystemProvider defines the supported storage filesystems

View File

@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/v2/utils"
)
// BaseVirtualFolder defines the path for the virtual folder and the used quota limits.

View File

@@ -22,10 +22,10 @@ import (
"google.golang.org/api/iterator"
"google.golang.org/api/option"
"github.com/drakkan/sftpgo/kms"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/metrics"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/kms"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/metrics"
"github.com/drakkan/sftpgo/v2/version"
)
var (

View File

@@ -5,7 +5,7 @@ package vfs
import (
"errors"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
func init() {

View File

@@ -15,7 +15,7 @@ import (
"github.com/pkg/sftp"
"github.com/rs/xid"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/v2/logger"
)
const (

View File

@@ -22,10 +22,10 @@ import (
"github.com/eikenb/pipeat"
"github.com/pkg/sftp"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/metrics"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/metrics"
"github.com/drakkan/sftpgo/v2/utils"
"github.com/drakkan/sftpgo/v2/version"
)
// using this mime type for directories improves compatibility with s3fs-fuse

View File

@@ -5,7 +5,7 @@ package vfs
import (
"errors"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
func init() {

View File

@@ -19,10 +19,10 @@ import (
"github.com/rs/xid"
"golang.org/x/crypto/ssh"
"github.com/drakkan/sftpgo/kms"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/kms"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/utils"
"github.com/drakkan/sftpgo/v2/version"
)
const (

View File

@@ -16,9 +16,9 @@ import (
"github.com/eikenb/pipeat"
"github.com/pkg/sftp"
"github.com/drakkan/sftpgo/kms"
"github.com/drakkan/sftpgo/logger"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/v2/kms"
"github.com/drakkan/sftpgo/v2/logger"
"github.com/drakkan/sftpgo/v2/utils"
)
const dirMimeType = "inode/directory"