akamai

package
v1.16.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

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(ctx context.Context, domain, fqdn, value string) error

CleanUp removes/updates the TXT record matching the specified parameters.

func (*DNSProvider) Present

func (a *DNSProvider) Present(ctx context.Context, domain, fqdn, value string) error

Present creates/updates a TXT record to fulfill the dns-01 challenge.

type OpenDNSConfig added in v1.8.0

type OpenDNSConfig struct {
	// contains filtered or unexported fields
}

OpenDNSConfig contains akamai's config to create authorization header.

func (OpenDNSConfig) GetRecord added in v1.8.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.8.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.8.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.8.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.8.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL