sftpgo/kms/vault_disabled.go

19 lines
320 B
Go
Raw Normal View History

//go:build novaultkms
// +build novaultkms
package kms
import (
"errors"
"github.com/drakkan/sftpgo/version"
)
func init() {
version.AddFeature("-vaultkms")
}
func newVaultSecret(base baseSecret, url, masterKey string) SecretProvider {
return newDisabledSecret(errors.New("Vault KMS disabled at build time"))
}