Documentation
¶
Overview ¶
Package acme implements a CoreDNS plugin that handles ACME DNS-01 challenges. It provides a REST API for updating TXT records needed for ACME DNS-01 validation.
Index ¶
Constants ¶
const TXT_LENGTH = 43
Variables ¶
var ( ErrRecordNotFound = errors.New("record not found") ErrReadOnlyDatabase = errors.New("database is in read-only mode") )
Functions ¶
This section is empty.
Types ¶
type ACME ¶
type ACME struct {
Next plugin.Handler
Fall fall.F
APIConfig APIConfig
// Basic Auth (optional)
BasicAuth struct {
User string
Pass string
}
// contains filtered or unexported fields
}
ACME is a CoreDNS plugin that implements the ACME DNS challenge protocol
type APIConfig ¶
type APIConfig struct {
// APIAddr is the address of the API server
APIAddr string
}
APIConfig holds API server configuration
type DB ¶
type DB interface {
GetRecords(fqdn string) ([]string, error)
PresentRecord(fqdn string, value string) error
CleanupRecord(fqdn string, value string) error
Close() error
}
DB interface for storing ACME TXT records
type MemDB ¶
type MemDB struct {
// contains filtered or unexported fields
}
func (*MemDB) CleanupRecord ¶ added in v1.13.1
func (*MemDB) PresentRecord ¶
PresentRecord overwrites any existing value for fqdn