Documentation
¶
Overview ¶
Package nfsn implements a DNS record management client compatible with the libdns interfaces for nearlyfreespeech.net (NFSN)
Index ¶
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// NFSN Member Login.
Login string `json:"login,omitempty"`
// NFSN API Key. API Keys can be generated from the "Profile" tab in the NFSN member interface.
APIKey string `json:"api_key,omitempty"`
// contains filtered or unexported fields
}
Provider facilitates DNS record manipulation with nearlyfreespeech.net
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
See libdns.RecordAppender
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
See libdns.RecordDeleter
func (*Provider) GetRecords ¶
See libdns.RecordGetter
func (*Provider) SetRecords ¶
func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
See libdns.RecordSetter
NFSN does not support atomic zone modification, so after computing the operations to perform each one will be attempted serially. In the case where only some operations succeed, returns both the records that were set (if any) and an error.
Click to show internal directories.
Click to hide internal directories.