mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-07 22:41:41 +08:00
* feat: dns management * refactor(dns): streamline domain management functions and enhance validation * feat(dns): add value suggestions for DNS record input with autocomplete functionality * fix(dns): handle edge case in record listing pagination * fix(dns): update credential property name for consistency and add cleanup on component unmount * feat(dns): implement DDNS management #1194, #1140
20 lines
947 B
Go
20 lines
947 B
Go
package dns
|
|
|
|
import (
|
|
"github.com/uozi-tech/cosy"
|
|
)
|
|
|
|
// DNS domain errors
|
|
var (
|
|
ErrDomainNotFound = cosy.NewError(40401, "DNS domain not found")
|
|
ErrDuplicateDomain = cosy.NewError(50001, "Domain already exists for this credential")
|
|
ErrInvalidDomain = cosy.NewError(50002, "Invalid domain name format")
|
|
ErrCredentialNotFound = cosy.NewError(50003, "DNS credential not found")
|
|
ErrInvalidCredential = cosy.NewError(50004, "Invalid DNS credential configuration")
|
|
ErrDDNSTargetRequired = cosy.NewError(40010, "DDNS requires at least one record")
|
|
ErrInvalidDDNSTargetType = cosy.NewError(40011, "DDNS only supports A and AAAA records")
|
|
ErrDDNSRecordNotFound = cosy.NewError(40402, "DDNS target record not found")
|
|
ErrInvalidDDNSInterval = cosy.NewError(40012, "DDNS interval must be at least 60 seconds")
|
|
ErrDDNSIPUnavailable = cosy.NewError(50005, "DDNS cannot detect a public IP to create records")
|
|
)
|