Documentation ¶
Index ¶
- Constants
- type APICommandResponse
- type APIError
- type APIGetHostsRequest
- type APIGetHostsResult
- type APIHost
- type APIResponse
- type APISetHostsRequest
- type APISetHostsResult
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
Constants ¶
View Source
const APIHostTypeA = "A"
View Source
const APIHostTypeAAAA = "AAAA"
View Source
const APIHostTypeALIAS = "ALIAS"
View Source
const APIHostTypeCAA = "CAA"
View Source
const APIHostTypeCNAME = "CNAME"
View Source
const APIHostTypeFRAME = "FRAME"
View Source
const APIHostTypeMX = "MX"
View Source
const APIHostTypeMXE = "MXE"
View Source
const APIHostTypeNS = "NS"
View Source
const APIHostTypeTXT = "TXT"
View Source
const APIHostTypeURL = "URL"
View Source
const APIHostTypeURL301 = "URL301"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APICommandResponse ¶
type APICommandResponse struct { XMLName xml.Name `xml:"CommandResponse"` Type string `xml:"Type,attr"` GetHostsResult APIGetHostsResult `xml:"DomainDNSGetHostsResult"` SetHostsResult APISetHostsResult `xml:"DomainDNSSetHostsResult"` }
type APIGetHostsRequest ¶
type APIGetHostsResult ¶
type APIHost ¶
type APIResponse ¶
type APISetHostsRequest ¶
type APISetHostsResult ¶
type Provider ¶
Provider implements the libdns interfaces for Namecheap
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the records from the zone. It returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Click to show internal directories.
Click to hide internal directories.