Initial commit (code only without large binaries)
This commit is contained in:
6
EdgeAPI/internal/dnsclients/huaweidns/response_base.go
Normal file
6
EdgeAPI/internal/dnsclients/huaweidns/response_base.go
Normal file
@@ -0,0 +1,6 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type BaseResponse struct {
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type CustomLinesResponse struct {
|
||||
Lines []struct {
|
||||
LineId string `json:"line_id"`
|
||||
Name string `json:"name"`
|
||||
} `json:"lines"`
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type RecordSetsResponse struct {
|
||||
RecordSets []struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Ttl int `json:"ttl"`
|
||||
Line string `json:"line"`
|
||||
Records []string `json:"records"`
|
||||
} `json:"recordsets"`
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type ZoneRecordSetsResponse struct {
|
||||
RecordSets []struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Ttl int `json:"ttl"`
|
||||
Records []string `json:"records"`
|
||||
Line string `json:"line"`
|
||||
} `json:"recordsets"`
|
||||
Metadata struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
} `json:"metadata"`
|
||||
}
|
||||
17
EdgeAPI/internal/dnsclients/huaweidns/response_zones.go
Normal file
17
EdgeAPI/internal/dnsclients/huaweidns/response_zones.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type ZonesResponse struct {
|
||||
Links struct{} `json:"links"`
|
||||
Zones []struct {
|
||||
Id string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
ZoneType string `json:"zone_type"`
|
||||
Status string `json:"status"`
|
||||
RecordNum int `json:"record_num"`
|
||||
} `json:"zones"`
|
||||
Metadata struct {
|
||||
TotalCount int `json:"total_count"`
|
||||
} `json:"metadata"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type ZonesCreateRecordSetResponse struct {
|
||||
Id string `json:"id"`
|
||||
Line string `json:"line"`
|
||||
Records []string `json:"records"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type ZonesDeleteRecordSetResponse struct {
|
||||
Id string `json:"id"`
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package huaweidns
|
||||
|
||||
type ZonesUpdateRecordSetResponse struct {
|
||||
Id string `json:"id"`
|
||||
Line string `json:"line"`
|
||||
Records []string `json:"records"`
|
||||
}
|
||||
Reference in New Issue
Block a user