Documentation
¶
Overview ¶
Implements the libdns interfaces for name.com https://www.name.com/api-docs
Index ¶
- Constants
- func NewNameDotComClient(ctx context.Context, token, user, server string) (*nameDotCom, error)
- 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 HTTP_TIMEOUT = 30
default timeout for the http request handler (seconds)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
Token string `json:"api_token,omitempty"`
User string `json:"user,omitempty"`
Server string `json:"server,omitempty"` // e.g. https://api.name.com or https://api.dev.name.com
// contains filtered or unexported fields
}
Provider implements the libdns interface for namedotcom
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.