Documentation
¶
Index ¶
Constants ¶
View Source
const EmptyPlaceholder = "placeholder"
EmptyPlaceholder will be used instead of empty ACME TXT because we cannot really set ""
Variables ¶
View Source
var ErrSoaNotFound = errors.New("SOA not found")
ErrSoaNotFound emited if zone file does not have SOA record, which is mandatory
Functions ¶
func StripOrigin ¶
Types ¶
type Controller ¶
type Controller interface {
// UpdateDDNSAddress changes DDNS A/AAAA records
UpdateDDNSAddress(ctx context.Context, domain string, addrs []netip.Addr) error
// UpdateACMEChallenge changes ACME TXT record for DNS-01 challenge
UpdateACMEChallenge(ctx context.Context, domain string, newToken, oldToken string) error
}
Controller implements zone file modification methods
func New ¶
func New(zonefiles ...string) (Controller, error)
type DomainCtrl ¶
type DomainCtrl struct {
// contains filtered or unexported fields
}
func (*DomainCtrl) UpdateACMEChallenge ¶
func (*DomainCtrl) UpdateDDNSAddress ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) UpdateACMEChallenge ¶
Click to show internal directories.
Click to hide internal directories.