Documentation
¶
Index ¶
- Variables
- type DNSServer
- type Record
- func (r *Record) DecodeAPIResponse(ctx context.Context, data io.Reader) error
- func (r *Record) EndpointURL(ctx context.Context) (*url.URL, error)
- func (r *Record) FilterAPIRequest(ctx context.Context, req *http.Request) (*http.Request, error)
- func (o *Record) GetIdentifier(ctx context.Context) (string, error)
- func (r *Record) HasPagination(ctx context.Context) (bool, error)
- type Revision
- type Zone
- func (z *Zone) EndpointURL(ctx context.Context) (*url.URL, error)
- func (z *Zone) FilterAPIRequest(ctx context.Context, req *http.Request) (*http.Request, error)
- func (z *Zone) FilterAPIRequestBody(ctx context.Context) (interface{}, error)
- func (z *Zone) FilterAPIResponse(ctx context.Context, res *http.Response) (*http.Response, error)
- func (o *Zone) GetIdentifier(ctx context.Context) (string, error)
- func (z *Zone) HasPagination(ctx context.Context) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrModifyRevisionNotFound is returned for Create and Update requests when the zones CurrentRevision is not // found in the set of Revisions. This is probably an Engine problem and not your code. ErrModifyRevisionNotFound = errors.New("revision not found") // ErrModifyRecordNotFound is returned for Create and Update requests when the modified Record is not found in // the zones current Revision. This is probably an Engine problem and not your code, but might be a problem in // these API bindings. ErrModifyRecordNotFound = errors.New("record not found") // ErrEmptyRecordNameNotSupported is returned for Create requests when the record has no name set. // Instead "@" must be used to target the domain root. ErrEmptyRecordNameNotSupported = errors.New("empty record name not supported - use \"@\" instead") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { Identifier string `json:"identifier,omitempty" anxcloud:"identifier"` ZoneName string `json:"-"` Immutable bool `json:"immutable,omitempty"` // Name of the DNS record. // Use "@" to select the domain root. Creation of records with an empty Name field is not supported. Name string `json:"name"` RData string `json:"rdata"` Region string `json:"region"` TTL int `json:"ttl"` Type string `json:"type"` }
func (*Record) DecodeAPIResponse ¶
func (*Record) FilterAPIRequest ¶ added in v0.4.6
FilterAPIRequest checks whether a name was set on create operations and returns ErrEmptyRecordNameNotSupported if not.
func (*Record) GetIdentifier ¶ added in v0.4.5
GetIdentifier returns the primary identifier of a Record object
type Zone ¶
type Zone struct { // Zone name Name string `json:"name,omitempty" anxcloud:"identifier"` // Required - Is master flag // Flag designating if CloudDNS operates as master or slave. IsMaster bool `json:"master"` // Required - DNSSEC mode // DNSSEC mode (master-only) ["managed" or "unvalidated"]. DNSSecMode string `json:"dnssec_mode"` // Required - Admin email address // Admin email address used in SOA record. AdminEmail string `json:"admin_email"` // Required - Refresh value // Refresh value used in SOA record. Refresh int `json:"refresh"` // Required - Retry value //Retry value used in SOA record. Retry int `json:"retry"` // Required - Expire value // Expire value used in SOA record. Expire int `json:"expire"` // Required - Time to live // Default TTL for NS records. TTL int `json:"ttl"` // Master Name Server MasterNS string `json:"master_ns,omitempty"` // IP addresses allowed to initiate domain transfer (DNS NOTIFY). NotifyAllowedIPs []string `json:"notify_allowed_ips,omitempty"` // Configured DNS servers (empty means default servers). DNSServers []DNSServer `json:"dns_servers,omitempty"` Customer string `json:"customer"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` PublishedAt time.Time `json:"published_at"` IsEditable bool `json:"is_editable"` ValidationLevel int `json:"validation_level"` DeploymentLevel int `json:"deployment_level"` Revisions []Revision `json:"revisions"` CurrentRevision string `json:"current_revision,omitempty"` }
func (*Zone) FilterAPIRequest ¶
func (*Zone) FilterAPIRequestBody ¶
func (*Zone) FilterAPIResponse ¶
func (*Zone) GetIdentifier ¶ added in v0.4.5
GetIdentifier returns the primary identifier of a Zone object
Click to show internal directories.
Click to hide internal directories.