Encryption: Handle encryption key provider being a background service (#44007)

* Encryption: Handle encryption key provider being a background service

* Sort imports

* Cleanup accidental changes

* Add proper error handling

* Apply review feedback
This commit is contained in:
Tania B
2022-01-28 17:17:40 +02:00
committed by GitHub
parent e844b263c7
commit ca24b95b49
2 changed files with 21 additions and 1 deletions
+5
View File
@@ -53,3 +53,8 @@ func (id ProviderID) Kind() (string, error) {
return parts[0], nil
}
// BackgroundProvider should be implemented for a provider that has a task that needs to be run in the background.
type BackgroundProvider interface {
Run(ctx context.Context) error
}