mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat(dns): client for creating ingress records
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user