Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuditRecords ¶
func AuditRecords(records []*models.RecordConfig) []error
AuditRecords returns a list of errors corresponding to the records that aren't supported by this provider. If all records are supported, an empty list is returned.
func New ¶
func New(settings map[string]string, _ json.RawMessage) (providers.DNSServiceProvider, error)
New creates a new API handle.
Types ¶
type JSONResponseDataZone ¶
type JSONResponseDataZone struct { // The data for the response. The type of the objects are depending on the request and are also specified in the responseObject value of the response. Data []*Zone `json:"data"` }
JSONResponseDataZone represents the response to the DataZone call.
type MainAddressRecord ¶
type MainAddressRecord struct { // TTL of the record (Optionally if not set then Default SOA TTL is used) TTL int64 `json:"ttl,omitempty"` // The value of the record. Value string `json:"address,omitempty"` }
MainAddressRecord represents an address record in API calls.
type ResourceRecord ¶
type ResourceRecord struct { // The name of the record. // Required: true Name string `json:"name"` // Preference of the record, need for some record types e.g. MX // Maximum: 65535 Pref int32 `json:"pref,omitempty"` // The bind notation of the record. Only used by the zone stream task! Raw string `json:"raw,omitempty"` // TTL of the record (Optionally if not set then Default SOA TTL is used) TTL int64 `json:"ttl,omitempty"` // The type of the record, e.g. A // Permitted values: A, AAAA, CAA, CNAME, HINFO, MX, NAPTR, NS, PTR, SRV, TXT, ALIAS Type string `json:"type,omitempty"` // The value of the record. Value string `json:"value,omitempty"` }
ResourceRecord represents DNS records in API calls.
type Zone ¶
type Zone struct { Origin string `json:"origin"` Soa *bind.SoaDefaults `json:"soa,omitempty"` // List of name servers NameServers []*models.Nameserver `json:"nameServers,omitempty"` // The resource records. // Max Items: 10000 // Min Items: 0 ResourceRecords []*ResourceRecord `json:"resourceRecords,omitempty"` // Might be set if we fetch a zone for the first time, should be migrated to ResourceRecords MainRecord *MainAddressRecord `json:"main,omitempty"` IncludeWwwForMain bool `json:"wwwInclude"` // Primary NameServer, needs to be passed to the system to fetch further zone info SystemNameServer string `json:"virtualNameServer,omitempty"` }
Zone represents the Zone in API calls.
type ZoneListFilter ¶
type ZoneListFilter struct { Key string `json:"key"` Value string `json:"value"` Operator string `json:"operator"` Link string `json:"link,omitempty"` Filter []*ZoneListFilter `json:"filters,omitempty"` }
ZoneListFilter describes a JSON list filter.
type ZoneListRequest ¶
type ZoneListRequest struct {
Filter []*ZoneListFilter `json:"filters"`
}
ZoneListRequest describes a JSON zone list request.
Click to show internal directories.
Click to hide internal directories.