// The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domain.
Domainstring`json:"domain"`
// If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave).
// A description for this Domain. This is for display purposes only.
Descriptionstring`json:"description"`
// Start of Authority email address. This is required for master Domains.
SOAEmailstring`json:"soa_email"`
// The interval, in seconds, at which a failed refresh should be retried.
// Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RetrySecint`json:"retry_sec"`
// The IP addresses representing the master DNS for this Domain.
MasterIPs[]string`json:"master_ips"`
// The list of IPs that may perform a zone transfer for this Domain. This is potentially dangerous, and should be set to an empty list unless you intend to use it.
AXfrIPs[]string`json:"axfr_ips"`
// An array of tags applied to this object. Tags are for organizational purposes only.
Tags[]string`json:"tags"`
// The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
ExpireSecint`json:"expire_sec"`
// The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RefreshSecint`json:"refresh_sec"`
// "Time to Live" - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
TTLSecint`json:"ttl_sec"`
}
// DomainCreateOptions fields are those accepted by CreateDomain
typeDomainCreateOptionsstruct{
// The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domain.
Domainstring`json:"domain"`
// If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave).
// Enum:"master" "slave"
TypeDomainType`json:"type"`
// Deprecated: The group this Domain belongs to. This is for display purposes only.
Groupstring`json:"group,omitempty"`
// Used to control whether this Domain is currently being rendered.
// A description for this Domain. This is for display purposes only.
Descriptionstring`json:"description,omitempty"`
// Start of Authority email address. This is required for master Domains.
SOAEmailstring`json:"soa_email,omitempty"`
// The interval, in seconds, at which a failed refresh should be retried.
// Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RetrySecint`json:"retry_sec,omitempty"`
// The IP addresses representing the master DNS for this Domain.
MasterIPs[]string`json:"master_ips,omitempty"`
// The list of IPs that may perform a zone transfer for this Domain. This is potentially dangerous, and should be set to an empty list unless you intend to use it.
AXfrIPs[]string`json:"axfr_ips,omitempty"`
// An array of tags applied to this object. Tags are for organizational purposes only.
Tags[]string`json:"tags"`
// The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
ExpireSecint`json:"expire_sec,omitempty"`
// The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RefreshSecint`json:"refresh_sec,omitempty"`
// "Time to Live" - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
TTLSecint`json:"ttl_sec,omitempty"`
}
// DomainUpdateOptions converts a Domain to DomainUpdateOptions for use in UpdateDomain
typeDomainUpdateOptionsstruct{
// The domain this Domain represents. These must be unique in our system; you cannot have two Domains representing the same domain.
Domainstring`json:"domain,omitempty"`
// If this Domain represents the authoritative source of information for the domain it describes, or if it is a read-only copy of a master (also called a slave).
// Enum:"master" "slave"
TypeDomainType`json:"type,omitempty"`
// Deprecated: The group this Domain belongs to. This is for display purposes only.
Groupstring`json:"group,omitempty"`
// Used to control whether this Domain is currently being rendered.
// A description for this Domain. This is for display purposes only.
Descriptionstring`json:"description,omitempty"`
// Start of Authority email address. This is required for master Domains.
SOAEmailstring`json:"soa_email,omitempty"`
// The interval, in seconds, at which a failed refresh should be retried.
// Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RetrySecint`json:"retry_sec,omitempty"`
// The IP addresses representing the master DNS for this Domain.
MasterIPs[]string`json:"master_ips,omitempty"`
// The list of IPs that may perform a zone transfer for this Domain. This is potentially dangerous, and should be set to an empty list unless you intend to use it.
AXfrIPs[]string`json:"axfr_ips,omitempty"`
// An array of tags applied to this object. Tags are for organizational purposes only.
Tags[]string`json:"tags"`
// The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
ExpireSecint`json:"expire_sec,omitempty"`
// The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
RefreshSecint`json:"refresh_sec,omitempty"`
// "Time to Live" - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
TTLSecint`json:"ttl_sec,omitempty"`
}
// DomainType constants start with DomainType and include Linode API Domain Type values
typeDomainTypestring
// DomainType constants reflect the DNS zone type of a Domain
const(
DomainTypeMasterDomainType="master"
DomainTypeSlaveDomainType="slave"
)
// DomainStatus constants start with DomainStatus and include Linode API Domain Status values
typeDomainStatusstring
// DomainStatus constants reflect the current status of a Domain
const(
DomainStatusDisabledDomainStatus="disabled"
DomainStatusActiveDomainStatus="active"
DomainStatusEditModeDomainStatus="edit_mode"
DomainStatusHasErrorsDomainStatus="has_errors"
)
// GetUpdateOptions converts a Domain to DomainUpdateOptions for use in UpdateDomain