Documentation
¶
Index ¶
- type PowerDNSClient
- func (c *PowerDNSClient) DeleteARecords(ctx context.Context, zone, name string) error
- func (c *PowerDNSClient) DeleteTXTRecord(ctx context.Context, zone, name string) error
- func (c *PowerDNSClient) Healthy(ctx context.Context) error
- func (c *PowerDNSClient) SetARecords(ctx context.Context, zone, name string, ips []string, ttl int) error
- func (c *PowerDNSClient) SetRelayRecords(ctx context.Context, zone, name string, ipv4, ipv6 []string, ttl int) error
- func (c *PowerDNSClient) SetTXTRecord(ctx context.Context, zone, name, value string, ttl int) error
- type RRSet
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PowerDNSClient ¶
type PowerDNSClient struct {
// contains filtered or unexported fields
}
func NewPowerDNSClient ¶
func NewPowerDNSClient(cfg config.PowerDNSConfig, logger *slog.Logger) *PowerDNSClient
func (*PowerDNSClient) DeleteARecords ¶
func (c *PowerDNSClient) DeleteARecords(ctx context.Context, zone, name string) error
DeleteARecords removes all A records for a name.
func (*PowerDNSClient) DeleteTXTRecord ¶
func (c *PowerDNSClient) DeleteTXTRecord(ctx context.Context, zone, name string) error
DeleteTXTRecord removes a TXT record.
func (*PowerDNSClient) Healthy ¶
func (c *PowerDNSClient) Healthy(ctx context.Context) error
Healthy checks if the PowerDNS API is reachable.
func (*PowerDNSClient) SetARecords ¶
func (c *PowerDNSClient) SetARecords(ctx context.Context, zone, name string, ips []string, ttl int) error
SetARecords replaces all A records for a name with the given IPs.
func (*PowerDNSClient) SetRelayRecords ¶
func (c *PowerDNSClient) SetRelayRecords(ctx context.Context, zone, name string, ipv4, ipv6 []string, ttl int) error
SetRelayRecords atomically replaces A and AAAA records for the relay hostname. Empty slices cause the corresponding record type to be deleted.
func (*PowerDNSClient) SetTXTRecord ¶
SetTXTRecord creates or replaces a TXT record.
Click to show internal directories.
Click to hide internal directories.