mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-14 19:37:43 +08:00
b0fd111ea2
Co-authored-by: Rashad Jamara <rjamara@hexonet.net>
33 lines
762 B
Go
33 lines
762 B
Go
package hexonet
|
|
|
|
import (
|
|
"github.com/StackExchange/dnscontrol/v3/models"
|
|
"github.com/StackExchange/dnscontrol/v3/pkg/recordaudit"
|
|
)
|
|
|
|
// AuditRecords returns an error if any records are not
|
|
// supportable by this provider.
|
|
func AuditRecords(records []*models.RecordConfig) error {
|
|
|
|
// if err := recordaudit.TxtNoLongStrings(records); err != nil {
|
|
// return err
|
|
// }
|
|
// Not needed as of 2021-03-26
|
|
|
|
if err := recordaudit.TxtNoMultipleStrings(records); err != nil {
|
|
return err
|
|
}
|
|
// Still needed as of 2021-03-07
|
|
|
|
if err := recordaudit.TxtNotEmpty(records); err != nil {
|
|
return err
|
|
}
|
|
// Still needed as of 2021-03-01
|
|
|
|
if err := recordaudit.TxtNoTrailingSpace(records); err != nil {
|
|
return err
|
|
}
|
|
// Still needed as of 2021-03-01
|
|
|
|
return nil
|
|
}
|