mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Added generated files
This commit is contained in:
committed by
Tom Limoncelli
parent
e57eaccac9
commit
762aaf0ce1
@@ -813,6 +813,13 @@
|
|||||||
<td class="success">
|
<td class="success">
|
||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th class="row-header" style="text-decoration: underline;" data-toggle="tooltip" data-container="body" data-placement="top" title="Provider supports Azure DNS limited ALIAS">AZURE_ALIAS</th>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="success">
|
<td class="success">
|
||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
@@ -833,16 +840,23 @@
|
|||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="row-header" style="text-decoration: underline;" data-toggle="tooltip" data-container="body" data-placement="top" title="Provider supports Azure DNS limited ALIAS">AZURE_ALIAS</th>
|
<th class="row-header" style="text-decoration: underline;" data-toggle="tooltip" data-container="body" data-placement="top" title="Provider supports adding DS records">DS</th>
|
||||||
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="success">
|
<td class="success">
|
||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
</td>
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td class="success">
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
|
</td>
|
||||||
<td><i class="fa fa-minus dim"></i></td>
|
<td><i class="fa fa-minus dim"></i></td>
|
||||||
<td class="success">
|
<td class="success">
|
||||||
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
<i class="fa fa-check text-success" aria-hidden="true"></i>
|
||||||
|
|||||||
57
vendor/github.com/prasmussen/gandi-api/domain/structs.go
generated
vendored
Normal file
57
vendor/github.com/prasmussen/gandi-api/domain/structs.go
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type DomainInfoBase struct {
|
||||||
|
AuthInfo string
|
||||||
|
DateCreated time.Time
|
||||||
|
DateRegistryCreation time.Time
|
||||||
|
DateRegistryEnd time.Time
|
||||||
|
DateUpdated time.Time
|
||||||
|
Fqdn string
|
||||||
|
Id int64
|
||||||
|
Status []string
|
||||||
|
Tld string
|
||||||
|
}
|
||||||
|
|
||||||
|
type DomainInfoExtra struct {
|
||||||
|
DateDelete time.Time
|
||||||
|
DateHoldBegin time.Time
|
||||||
|
DateHoldEnd time.Time
|
||||||
|
DatePendingDeleteEnd time.Time
|
||||||
|
DateRenewBegin time.Time
|
||||||
|
DateRestoreEnd time.Time
|
||||||
|
Nameservers []string
|
||||||
|
Services []string
|
||||||
|
ZoneId int64
|
||||||
|
Autorenew *AutorenewInfo
|
||||||
|
Contacts *ContactInfo
|
||||||
|
}
|
||||||
|
|
||||||
|
type DomainInfo struct {
|
||||||
|
*DomainInfoBase
|
||||||
|
*DomainInfoExtra
|
||||||
|
}
|
||||||
|
|
||||||
|
type AutorenewInfo struct {
|
||||||
|
Active bool
|
||||||
|
Contact string
|
||||||
|
Id int64
|
||||||
|
ProductId int64
|
||||||
|
ProductTypeId int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type ContactInfo struct {
|
||||||
|
Admin *ContactDetails
|
||||||
|
Bill *ContactDetails
|
||||||
|
Owner *ContactDetails
|
||||||
|
Reseller *ContactDetails
|
||||||
|
Tech *ContactDetails
|
||||||
|
}
|
||||||
|
|
||||||
|
type ContactDetails struct {
|
||||||
|
Handle string
|
||||||
|
Id int64
|
||||||
|
}
|
||||||
69
vendor/github.com/prasmussen/gandi-api/domain/util.go
generated
vendored
Normal file
69
vendor/github.com/prasmussen/gandi-api/domain/util.go
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/prasmussen/gandi-api/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
func ToDomainInfoBase(res map[string]interface{}) *DomainInfoBase {
|
||||||
|
return &DomainInfoBase{
|
||||||
|
AuthInfo: util.ToString(res["authinfo"]),
|
||||||
|
DateCreated: util.ToTime(res["date_created"]),
|
||||||
|
DateRegistryCreation: util.ToTime(res["date_registry_creation"]),
|
||||||
|
DateRegistryEnd: util.ToTime(res["date_registry_end"]),
|
||||||
|
DateUpdated: util.ToTime(res["date_updated"]),
|
||||||
|
Fqdn: util.ToString(res["fqdn"]),
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
Status: util.ToStringSlice(util.ToInterfaceSlice(res["status"])),
|
||||||
|
Tld: util.ToString(res["tld"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func ToDomainInfoExtra(res map[string]interface{}) *DomainInfoExtra {
|
||||||
|
return &DomainInfoExtra{
|
||||||
|
DateDelete: util.ToTime(res["date_delete"]),
|
||||||
|
DateHoldBegin: util.ToTime(res["date_hold_begin"]),
|
||||||
|
DateHoldEnd: util.ToTime(res["date_hold_end"]),
|
||||||
|
DatePendingDeleteEnd: util.ToTime(res["date_pending_delete_end"]),
|
||||||
|
DateRenewBegin: util.ToTime(res["date_renew_begin"]),
|
||||||
|
DateRestoreEnd: util.ToTime(res["date_restore_end"]),
|
||||||
|
Nameservers: util.ToStringSlice(util.ToInterfaceSlice(res["nameservers"])),
|
||||||
|
Services: util.ToStringSlice(util.ToInterfaceSlice(res["services"])),
|
||||||
|
ZoneId: util.ToInt64(res["zone_id"]),
|
||||||
|
Autorenew: toAutorenewInfo(util.ToXmlrpcStruct(res["autorenew"])),
|
||||||
|
Contacts: toContactInfo(util.ToXmlrpcStruct(res["contacts"])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func ToDomainInfo(res map[string]interface{}) *DomainInfo {
|
||||||
|
return &DomainInfo{
|
||||||
|
ToDomainInfoBase(res),
|
||||||
|
ToDomainInfoExtra(res),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func toAutorenewInfo(res map[string]interface{}) *AutorenewInfo {
|
||||||
|
return &AutorenewInfo{
|
||||||
|
Active: util.ToBool(res["active"]),
|
||||||
|
Contact: util.ToString(res["contact"]),
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
ProductId: util.ToInt64(res["product_id"]),
|
||||||
|
ProductTypeId: util.ToInt64(res["product_type_id"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func toContactInfo(res map[string]interface{}) *ContactInfo {
|
||||||
|
return &ContactInfo{
|
||||||
|
Admin: toContactDetails(util.ToXmlrpcStruct(res["admin"])),
|
||||||
|
Bill: toContactDetails(util.ToXmlrpcStruct(res["bill"])),
|
||||||
|
Owner: toContactDetails(util.ToXmlrpcStruct(res["owner"])),
|
||||||
|
Reseller: toContactDetails(util.ToXmlrpcStruct(res["reseller"])),
|
||||||
|
Tech: toContactDetails(util.ToXmlrpcStruct(res["tech"])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func toContactDetails(res map[string]interface{}) *ContactDetails {
|
||||||
|
return &ContactDetails{
|
||||||
|
Handle: util.ToString(res["handle"]),
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
24
vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go
generated
vendored
Normal file
24
vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
package zone
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type ZoneInfoBase struct {
|
||||||
|
DateUpdated time.Time
|
||||||
|
Id int64
|
||||||
|
Name string
|
||||||
|
Public bool
|
||||||
|
Version int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type ZoneInfoExtra struct {
|
||||||
|
Domains int64
|
||||||
|
Owner string
|
||||||
|
Versions []int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type ZoneInfo struct {
|
||||||
|
*ZoneInfoBase
|
||||||
|
*ZoneInfoExtra
|
||||||
|
}
|
||||||
30
vendor/github.com/prasmussen/gandi-api/domain/zone/util.go
generated
vendored
Normal file
30
vendor/github.com/prasmussen/gandi-api/domain/zone/util.go
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
package zone
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/prasmussen/gandi-api/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
func ToZoneInfoBase(res map[string]interface{}) *ZoneInfoBase {
|
||||||
|
return &ZoneInfoBase{
|
||||||
|
DateUpdated: util.ToTime(res["date_updated"]),
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
Name: util.ToString(res["name"]),
|
||||||
|
Public: util.ToBool(res["public"]),
|
||||||
|
Version: util.ToInt64(res["version"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func ToZoneInfoExtra(res map[string]interface{}) *ZoneInfoExtra {
|
||||||
|
return &ZoneInfoExtra{
|
||||||
|
Domains: util.ToInt64(res["domains"]),
|
||||||
|
Owner: util.ToString(res["owner"]),
|
||||||
|
Versions: util.ToIntSlice(util.ToInterfaceSlice(res["versions"])),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func ToZoneInfo(res map[string]interface{}) *ZoneInfo {
|
||||||
|
return &ZoneInfo{
|
||||||
|
ToZoneInfoBase(res),
|
||||||
|
ToZoneInfoExtra(res),
|
||||||
|
}
|
||||||
|
}
|
||||||
10
vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go
generated
vendored
Normal file
10
vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
package version
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type VersionInfo struct {
|
||||||
|
Id int64
|
||||||
|
DateCreated time.Time
|
||||||
|
}
|
||||||
12
vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go
generated
vendored
Normal file
12
vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
package version
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/prasmussen/gandi-api/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
func ToVersionInfo(res map[string]interface{}) *VersionInfo {
|
||||||
|
return &VersionInfo{
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
DateCreated: util.ToTime(res["date_created"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
29
vendor/github.com/prasmussen/gandi-api/operation/structs.go
generated
vendored
Normal file
29
vendor/github.com/prasmussen/gandi-api/operation/structs.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
package operation
|
||||||
|
|
||||||
|
import (
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type OperationInfo struct {
|
||||||
|
DateCreated time.Time
|
||||||
|
DateStart time.Time
|
||||||
|
DateUpdated time.Time
|
||||||
|
Eta string
|
||||||
|
Id int64
|
||||||
|
LastError string
|
||||||
|
SessionId int64
|
||||||
|
Source string
|
||||||
|
Step string
|
||||||
|
Type string
|
||||||
|
Params map[string]interface{}
|
||||||
|
OperationDetails *OperationDetails
|
||||||
|
}
|
||||||
|
|
||||||
|
type OperationDetails struct {
|
||||||
|
Id string
|
||||||
|
Label string
|
||||||
|
ProductAction string
|
||||||
|
ProductName string
|
||||||
|
ProductType string
|
||||||
|
Quantity int64
|
||||||
|
}
|
||||||
33
vendor/github.com/prasmussen/gandi-api/operation/util.go
generated
vendored
Normal file
33
vendor/github.com/prasmussen/gandi-api/operation/util.go
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
package operation
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/prasmussen/gandi-api/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
func ToOperationInfo(res map[string]interface{}) *OperationInfo {
|
||||||
|
return &OperationInfo{
|
||||||
|
DateCreated: util.ToTime(res["date_created"]),
|
||||||
|
DateStart: util.ToTime(res["date_start"]),
|
||||||
|
DateUpdated: util.ToTime(res["date_updated"]),
|
||||||
|
Eta: util.ToString(res["eta"]),
|
||||||
|
Id: util.ToInt64(res["id"]),
|
||||||
|
LastError: util.ToString(res["last_error"]),
|
||||||
|
SessionId: util.ToInt64(res["session_id"]),
|
||||||
|
Source: util.ToString(res["source"]),
|
||||||
|
Step: util.ToString(res["step"]),
|
||||||
|
Type: util.ToString(res["type"]),
|
||||||
|
OperationDetails: ToOperationDetails(util.ToXmlrpcStruct(res["infos"])),
|
||||||
|
Params: util.ToXmlrpcStruct(res["params"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func ToOperationDetails(res map[string]interface{}) *OperationDetails {
|
||||||
|
return &OperationDetails{
|
||||||
|
Id: util.ToString(res["id"]),
|
||||||
|
Label: util.ToString(res["label"]),
|
||||||
|
ProductAction: util.ToString(res["product_action"]),
|
||||||
|
ProductName: util.ToString(res["product_name"]),
|
||||||
|
ProductType: util.ToString(res["product_type"]),
|
||||||
|
Quantity: util.ToInt64(res["quantity"]),
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user