feat(dns): client for creating ingress records

This commit is contained in:
Pavel Sviderski committed 2025-02-24 20:33:08 +10:00
1 parent ecec42ea60
commit 2d84059d7f
3 files changed
+94

No files matched your search

+18
View File
@@ -1,10 +1,28 @@
package dns
const (
RecordTypeA RecordType = "A"
RecordTypeAAAA RecordType = "AAAA"
)
type RecordType string
type DomainResponse struct {
Name string `json:"name,omitempty"`
Token string `json:"token,omitempty"`
}
type RecordRequest struct {
Name string `json:"name,omitempty"`
Type RecordType `json:"type,omitempty"`
Values []string `json:"values,omitempty"`
}
type RecordResponse struct {
RecordRequest
FQDN string `json:"fqdn,omitempty"`
}
type AuthErrorResponse struct {
Status int `json:"status,omitempty"`
Message string `json:"msg,omitempty"`