Replace encryption.Service usages by secrets.Service (#41625)

* Replace encryption.Service by secrets.Service on expr.Service

* Replace encryption.Service by secrets.Service on live pkg

* Rename encryption.Service to encryption.Internal to clarify it must be not used
This commit is contained in:
Joan López de la Franca Beltran
2021-11-12 12:16:39 +01:00
committed by GitHub
parent dcae138379
commit 44837fc592
16 changed files with 66 additions and 53 deletions
@@ -9,7 +9,7 @@ import (
)
// Provision alert notifiers
func Provision(ctx context.Context, configDirectory string, encryptionService encryption.Service) error {
func Provision(ctx context.Context, configDirectory string, encryptionService encryption.Internal) error {
dc := newNotificationProvisioner(encryptionService, log.New("provisioning.notifiers"))
return dc.applyChanges(ctx, configDirectory)
}
@@ -20,7 +20,7 @@ type NotificationProvisioner struct {
cfgProvider *configReader
}
func newNotificationProvisioner(encryptionService encryption.Service, log log.Logger) NotificationProvisioner {
func newNotificationProvisioner(encryptionService encryption.Internal, log log.Logger) NotificationProvisioner {
return NotificationProvisioner{
log: log,
cfgProvider: &configReader{