1package types 2 3// DNSManager defines the operations a DNS Manager provider should implement 4type DNSManager interface { 5 6 // GetDNSRecords retrieves all the dns records being managed 7 GetDNSRecords() ([]DNSRecord, error) 8 9 // GetDNSRecord retrieves the dns record identified by name 10 GetDNSRecord(name, recordType string) (*DNSRecord, error) 11 12 // RemoveDNSRecord removes a DNS record 13 RemoveDNSRecord(name, recordType string) error 14 15 // AddDNSRecord adds a new DNS record 16 AddDNSRecord(record DNSRecord) error 17 18 // UpdateDNSRecord updates an existing DNS record 19 UpdateDNSRecord(record DNSRecord) error 20} 21