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

@@ -6,7 +6,7 @@ import (
// we import awskms here to be able to disable AWS KMS support using a build tag
_ "gocloud.dev/secrets/awskms"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
type awsSecret struct {

View File

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

View File

@@ -6,7 +6,7 @@ import (
// we import gcpkms here to be able to disable GCP KMS support using a build tag
_ "gocloud.dev/secrets/gcpkms"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
type gcpSecret struct {

View File

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

View File

@@ -9,7 +9,7 @@ import (
"sync"
"time"
"github.com/drakkan/sftpgo/utils"
"github.com/drakkan/sftpgo/v2/utils"
)
// SecretProvider defines the interface for a KMS secrets provider

View File

@@ -6,7 +6,7 @@ import (
// we import hashivault here to be able to disable Vault support using a build tag
_ "gocloud.dev/secrets/hashivault"
"github.com/drakkan/sftpgo/version"
"github.com/drakkan/sftpgo/v2/version"
)
type vaultSecret struct {

View File

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