Documentation ¶
Index ¶
- type SafeDNS
- type SafeDNSProvider
- func (p *SafeDNSProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error
- func (p *SafeDNSProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error)
- func (p *SafeDNSProvider) ZoneRecords(ctx context.Context) ([]ZoneRecord, error)
- func (p *SafeDNSProvider) Zones(ctx context.Context) ([]safedns.Zone, error)
- type ZoneRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SafeDNS ¶
type SafeDNS interface { CreateZoneRecord(zoneName string, req safedns.CreateRecordRequest) (int, error) DeleteZoneRecord(zoneName string, recordID int) error GetZone(zoneName string) (safedns.Zone, error) GetZoneRecord(zoneName string, recordID int) (safedns.Record, error) GetZoneRecords(zoneName string, parameters ansConnection.APIRequestParameters) ([]safedns.Record, error) GetZones(parameters ansConnection.APIRequestParameters) ([]safedns.Zone, error) PatchZoneRecord(zoneName string, recordID int, patch safedns.PatchRecordRequest) (int, error) UpdateZoneRecord(zoneName string, record safedns.Record) (int, error) }
SafeDNS is an interface that is a subset of the SafeDNS service API that are actually used. Signatures must match exactly.
type SafeDNSProvider ¶
type SafeDNSProvider struct { provider.BaseProvider Client SafeDNS DryRun bool APIRequestParams ansConnection.APIRequestParameters // contains filtered or unexported fields }
SafeDNSProvider implements the DNS provider spec for UKFast SafeDNS.
func NewSafeDNSProvider ¶
func NewSafeDNSProvider(domainFilter endpoint.DomainFilter, dryRun bool) (*SafeDNSProvider, error)
func (*SafeDNSProvider) ApplyChanges ¶
ApplyChanges applies a given set of changes in a given zone.
func (*SafeDNSProvider) Records ¶
Records returns a list of Endpoint resources created from all records in supported zones.
func (*SafeDNSProvider) ZoneRecords ¶
func (p *SafeDNSProvider) ZoneRecords(ctx context.Context) ([]ZoneRecord, error)
type ZoneRecord ¶
type ZoneRecord struct { ID int Name string Type safedns.RecordType TTL safedns.RecordTTL Zone string Content string }
ZoneRecord is a datatype to simplify management of a record in a zone.
Click to show internal directories.
Click to hide internal directories.