Documentation
¶
Overview ¶
Package wedos implements a DNS record management client compatible with the libdns interfaces for WEDOS DNS.
Index ¶
- Constants
- 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 ( ARecord = "A" AAAARecord = "AAAA" AliasRecord = "ALIAS" CNAMERecord = "CNAME" MXRecord = "MX" TXTRecord = "TXT" SRVRecord = "SRV" NSRecord = "NS" SORARRecord = "SOA" DNAMERecord = "DNAME" NAPROOTRecord = "NAPTR" CAARecord = "CAA" HTTPSRecord = "HTTPS" SSHFPRecord = "SSHFP" TLSARecord = "TLSA" )
View Source
const ( GetRecords = "dns-rows-list" AppendRecords = "dns-row-add" DeleteRecords = "dns-row-delete" UpdateRecords = "dns-row-update" )
View Source
const ( BaseURL = "https://api.wedos.com/wapi/json" PragueTimezone = "Europe/Prague" TimezoneOffset = 1 * 60 * 60 )
View Source
const (
OK = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
Provider implements libdns for Wedos using the WAPI hour‑based SHA‑1 token.
func NewProvider ¶
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 specified 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.