mirror of
https://github.com/go-acme/lego
synced 2026-03-14 14:35:48 +01:00
gigahostno: remove unused Zone fields (#2913)
This commit is contained in:
parent
9be8cd43ae
commit
87b172f103
3 changed files with 23 additions and 63 deletions
|
|
@ -38,55 +38,25 @@ func TestClient_GetZones(t *testing.T) {
|
|||
|
||||
expected := []Zone{
|
||||
{
|
||||
ID: "123",
|
||||
Name: "example.com",
|
||||
NameDisplay: "example.com",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
Protected: "1",
|
||||
IsRegistered: "1",
|
||||
Updated: false,
|
||||
CustomerID: "16030",
|
||||
DomainRegistrar: "norid",
|
||||
DomainStatus: "active",
|
||||
DomainExpiryDate: "2026-11-23 15:17:38",
|
||||
DomainAutoRenew: "1",
|
||||
ExternalDNS: "0",
|
||||
RecordCount: 4,
|
||||
ID: "123",
|
||||
Name: "example.com",
|
||||
NameDisplay: "example.com",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
},
|
||||
{
|
||||
ID: "226",
|
||||
Name: "example.org",
|
||||
NameDisplay: "example.org",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
Protected: "1",
|
||||
IsRegistered: "1",
|
||||
Updated: false,
|
||||
CustomerID: "16030",
|
||||
DomainRegistrar: "norid",
|
||||
DomainStatus: "active",
|
||||
DomainExpiryDate: "2026-11-23 14:15:01",
|
||||
DomainAutoRenew: "1",
|
||||
ExternalDNS: "0",
|
||||
RecordCount: 5,
|
||||
ID: "226",
|
||||
Name: "example.org",
|
||||
NameDisplay: "example.org",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
},
|
||||
{
|
||||
ID: "229",
|
||||
Name: "example.xn--zckzah",
|
||||
NameDisplay: "example.テスト",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
Protected: "1",
|
||||
IsRegistered: "1",
|
||||
Updated: false,
|
||||
CustomerID: "16030",
|
||||
DomainRegistrar: "norid",
|
||||
DomainStatus: "active",
|
||||
DomainExpiryDate: "2026-12-01 12:40:48",
|
||||
DomainAutoRenew: "1",
|
||||
ExternalDNS: "0",
|
||||
RecordCount: 4,
|
||||
ID: "229",
|
||||
Name: "example.xn--zckzah",
|
||||
NameDisplay: "example.テスト",
|
||||
Type: "NATIVE",
|
||||
Active: "1",
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
"domain_dnssec_data": null,
|
||||
"domain_protected_email": null,
|
||||
"zone_created": "2025-11-23 16:17:29",
|
||||
"zone_updated": false,
|
||||
"zone_updated": 1700000000,
|
||||
"external_dns": "0",
|
||||
"record_count": 4,
|
||||
"zone_name_display": "example.com"
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
"domain_dnssec_data": null,
|
||||
"domain_protected_email": null,
|
||||
"zone_created": "2025-11-23 15:13:27",
|
||||
"zone_updated": false,
|
||||
"zone_updated": 1700000000,
|
||||
"external_dns": "0",
|
||||
"record_count": 5,
|
||||
"zone_name_display": "example.org"
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
"domain_dnssec_data": null,
|
||||
"domain_protected_email": null,
|
||||
"zone_created": "2025-11-23 16:37:15",
|
||||
"zone_updated": false,
|
||||
"zone_updated": 1700000000,
|
||||
"external_dns": "0",
|
||||
"record_count": 4,
|
||||
"zone_name_display": "example.\u30C6\u30B9\u30C8"
|
||||
|
|
|
|||
|
|
@ -26,21 +26,11 @@ type APIResponse[T any] struct {
|
|||
}
|
||||
|
||||
type Zone struct {
|
||||
ID string `json:"zone_id,omitempty"`
|
||||
Name string `json:"zone_name,omitempty"`
|
||||
NameDisplay string `json:"zone_name_display,omitempty"`
|
||||
Type string `json:"zone_type,omitempty"`
|
||||
Active string `json:"zone_active,omitempty"`
|
||||
Protected string `json:"zone_protected,omitempty"`
|
||||
IsRegistered string `json:"zone_is_registered,omitempty"`
|
||||
Updated bool `json:"zone_updated,omitempty"`
|
||||
CustomerID string `json:"cust_id,omitempty"`
|
||||
DomainRegistrar string `json:"domain_registrar,omitempty"`
|
||||
DomainStatus string `json:"domain_status,omitempty"`
|
||||
DomainExpiryDate string `json:"domain_expiry_date,omitempty"`
|
||||
DomainAutoRenew string `json:"domain_auto_renew,omitempty"`
|
||||
ExternalDNS string `json:"external_dns,omitempty"`
|
||||
RecordCount int `json:"record_count,omitempty"`
|
||||
ID string `json:"zone_id,omitempty"`
|
||||
Name string `json:"zone_name,omitempty"`
|
||||
NameDisplay string `json:"zone_name_display,omitempty"`
|
||||
Type string `json:"zone_type,omitempty"`
|
||||
Active string `json:"zone_active,omitempty"`
|
||||
}
|
||||
|
||||
type Record struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue