2021-03-07 13:19:22 -05:00
|
|
|
package vultr
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/StackExchange/dnscontrol/v3/models"
|
2022-08-11 17:24:47 -04:00
|
|
|
"github.com/StackExchange/dnscontrol/v3/pkg/rejectif"
|
2021-03-07 13:19:22 -05:00
|
|
|
)
|
|
|
|
|
2022-08-11 17:24:47 -04:00
|
|
|
// AuditRecords returns a list of errors corresponding to the records
|
|
|
|
// that aren't supported by this provider. If all records are
|
|
|
|
// supported, an empty list is returned.
|
|
|
|
func AuditRecords(records []*models.RecordConfig) []error {
|
|
|
|
a := rejectif.Auditor{}
|
2021-03-07 13:19:22 -05:00
|
|
|
|
2022-08-11 17:24:47 -04:00
|
|
|
a.Add("TXT", rejectif.TxtHasDoubleQuotes) // Last verified 2021-03-02
|
|
|
|
// Needs investigation. Could be a dnscontrol issue or
|
2021-03-07 13:19:22 -05:00
|
|
|
// the provider doesn't support double quotes.
|
|
|
|
|
2022-08-11 17:24:47 -04:00
|
|
|
a.Add("TXT", rejectif.TxtHasMultipleSegments)
|
2021-08-17 15:58:10 -04:00
|
|
|
|
2022-08-11 17:24:47 -04:00
|
|
|
return a.Audit(records)
|
2021-03-07 13:19:22 -05:00
|
|
|
}
|