Documentation ¶
Overview ¶
Package akamai implements a DNS provider for solving the DNS-01 challenge using Akamai Edge DNS. See https://developer.akamai.com/api/cloud_security/edge_dns_zone_management/v2.html
Index ¶
- type DNSProvider
- type OpenDNSConfig
- func (o OpenDNSConfig) GetRecord(zone string, name string, recordType string) (*dns.RecordBody, error)
- func (o OpenDNSConfig) RecordDelete(rec *dns.RecordBody, zone string) error
- func (o OpenDNSConfig) RecordSave(rec *dns.RecordBody, zone string) error
- func (o OpenDNSConfig) RecordUpdate(rec *dns.RecordBody, zone string) error
- type OpenEdgegridDNSService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSProvider ¶
type DNSProvider struct { TTL int // contains filtered or unexported fields }
DNSProvider is an implementation of the acme.ChallengeProvider interface
func NewDNSProvider ¶
func NewDNSProvider(serviceConsumerDomain, clientToken, clientSecret, accessToken string, dns01Nameservers []string) (*DNSProvider, error)
NewDNSProvider returns a DNSProvider instance configured for Akamai.
func (*DNSProvider) CleanUp ¶
func (a *DNSProvider) CleanUp(domain, fqdn, value string) error
CleanUp removes/updates the TXT record matching the specified parameters.
func (*DNSProvider) Present ¶
func (a *DNSProvider) Present(domain, fqdn, value string) error
Present creates/updates a TXT record to fulfill the dns-01 challenge.
type OpenDNSConfig ¶ added in v1.4.0
type OpenDNSConfig struct {
// contains filtered or unexported fields
}
OpenDNSConfig contains akamai's config to create authorization header.
func (OpenDNSConfig) GetRecord ¶ added in v1.4.0
func (o OpenDNSConfig) GetRecord(zone string, name string, recordType string) (*dns.RecordBody, error)
GetRecord gets a single Recordset as RecordBody. Sets Akamai OPEN Edgegrid API global variable.
func (OpenDNSConfig) RecordDelete ¶ added in v1.4.0
func (o OpenDNSConfig) RecordDelete(rec *dns.RecordBody, zone string) error
RecordDelete is a function that deletes the given zone in the given RecordBody.
func (OpenDNSConfig) RecordSave ¶ added in v1.4.0
func (o OpenDNSConfig) RecordSave(rec *dns.RecordBody, zone string) error
RecordSave is a function that saves the given zone in the given RecordBody.
func (OpenDNSConfig) RecordUpdate ¶ added in v1.4.0
func (o OpenDNSConfig) RecordUpdate(rec *dns.RecordBody, zone string) error
RecordUpdate is a function that updates the given zone in the given RecordBody.
type OpenEdgegridDNSService ¶ added in v1.4.0
type OpenEdgegridDNSService interface { GetRecord(zone string, name string, recordType string) (*dns.RecordBody, error) RecordSave(rec *dns.RecordBody, zone string) error RecordUpdate(rec *dns.RecordBody, zone string) error RecordDelete(rec *dns.RecordBody, zone string) error }
OpenEdgegridDNSService enables mocking and required functions