mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
add build tags to disable kms providers
This commit is contained in:
13
kms/gcp.go
13
kms/gcp.go
@@ -1,13 +1,22 @@
|
||||
// +build !nogcpkms
|
||||
|
||||
package kms
|
||||
|
||||
const (
|
||||
gcpProviderName = "GCP"
|
||||
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"
|
||||
)
|
||||
|
||||
type gcpSecret struct {
|
||||
baseGCloudSecret
|
||||
}
|
||||
|
||||
func init() {
|
||||
version.AddFeature("+gcpkms")
|
||||
}
|
||||
|
||||
func newGCPSecret(base baseSecret, url, masterKey string) SecretProvider {
|
||||
return &gcpSecret{
|
||||
baseGCloudSecret{
|
||||
|
||||
Reference in New Issue
Block a user