(dnsName, keyAuth string)
| 569 | } |
| 570 | |
| 571 | func (s *DNSManager) deleteDNSPresentMemory(dnsName, keyAuth string) { |
| 572 | s.recordsMu.Lock() |
| 573 | defer s.recordsMu.Unlock() |
| 574 | |
| 575 | for i, mem := range s.records[dnsName] { |
| 576 | if mem.zoneRec.record.RR().Data == keyAuth { |
| 577 | s.records[dnsName] = append(s.records[dnsName][:i], s.records[dnsName][i+1:]...) |
| 578 | return |
| 579 | } |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | // DNSProvider defines the set of operations required for |
| 584 | // ACME challenges or other sorts of domain verification. |