summaryrefslogtreecommitdiff
path: root/DomainDig/IntegrationService.swift
diff options
context:
space:
mode:
Diffstat (limited to 'DomainDig/IntegrationService.swift')
-rw-r--r--DomainDig/IntegrationService.swift22
1 files changed, 22 insertions, 0 deletions
diff --git a/DomainDig/IntegrationService.swift b/DomainDig/IntegrationService.swift
index 838cfc2..dba8034 100644
--- a/DomainDig/IntegrationService.swift
+++ b/DomainDig/IntegrationService.swift
@@ -177,6 +177,28 @@ final class IntegrationService {
scheduleProcessing(force: true)
}
+ func localSecretReferences() -> [String] {
+ targets.compactMap { target in
+ switch target.configuration {
+ case .webhook(let configuration):
+ configuration.credentialReference
+ case .slack(let configuration):
+ configuration.credentialReference
+ case .email(let configuration):
+ configuration.credentialReference
+ }
+ }
+ }
+
+ func resetAfterLocalWipe() {
+ processingTask?.cancel()
+ processingTask = nil
+ targets = []
+ deliveryRecords = []
+ queue = []
+ statusMessage = nil
+ }
+
private func scheduleProcessing(force: Bool = false) {
if force {
processingTask?.cancel()