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:
committed by
GitHub
parent
dcae138379
commit
44837fc592
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user