dns

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package dns provides a portable DNS API with cross-cutting concerns.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

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

func NewDNS

func NewDNS(d driver.DNS, opts ...Option) *DNS

func (*DNS) CreateHealthCheck added in v1.4.0

func (d *DNS) CreateHealthCheck(ctx context.Context, config driver.HealthCheckConfig) (*driver.HealthCheckInfo, error)

func (*DNS) CreateRecord

func (d *DNS) CreateRecord(ctx context.Context, config driver.RecordConfig) (*driver.RecordInfo, error)

func (*DNS) CreateZone

func (d *DNS) CreateZone(ctx context.Context, config driver.ZoneConfig) (*driver.ZoneInfo, error)

func (*DNS) DeleteHealthCheck added in v1.4.0

func (d *DNS) DeleteHealthCheck(ctx context.Context, id string) error

func (*DNS) DeleteRecord

func (d *DNS) DeleteRecord(ctx context.Context, zoneID, name, recordType string) error

func (*DNS) DeleteZone

func (d *DNS) DeleteZone(ctx context.Context, id string) error

func (*DNS) GetHealthCheck added in v1.4.0

func (d *DNS) GetHealthCheck(ctx context.Context, id string) (*driver.HealthCheckInfo, error)

func (*DNS) GetRecord

func (d *DNS) GetRecord(ctx context.Context, zoneID, name, recordType string) (*driver.RecordInfo, error)

func (*DNS) GetZone

func (d *DNS) GetZone(ctx context.Context, id string) (*driver.ZoneInfo, error)

func (*DNS) ListHealthChecks added in v1.4.0

func (d *DNS) ListHealthChecks(ctx context.Context) ([]driver.HealthCheckInfo, error)

func (*DNS) ListRecords

func (d *DNS) ListRecords(ctx context.Context, zoneID string) ([]driver.RecordInfo, error)

func (*DNS) ListZones

func (d *DNS) ListZones(ctx context.Context) ([]driver.ZoneInfo, error)

func (*DNS) SetHealthCheckStatus added in v1.4.0

func (d *DNS) SetHealthCheckStatus(ctx context.Context, id, status string) error

func (*DNS) UpdateHealthCheck added in v1.4.0

func (d *DNS) UpdateHealthCheck(ctx context.Context, id string, config driver.HealthCheckConfig) (*driver.HealthCheckInfo, error)

func (*DNS) UpdateRecord

func (d *DNS) UpdateRecord(ctx context.Context, config driver.RecordConfig) (*driver.RecordInfo, error)

type Option

type Option func(*DNS)

func WithErrorInjection

func WithErrorInjection(i *inject.Injector) Option

func WithLatency

func WithLatency(dur time.Duration) Option

func WithMetrics

func WithMetrics(m *metrics.Collector) Option

func WithRateLimiter

func WithRateLimiter(l *ratelimit.Limiter) Option

func WithRecorder

func WithRecorder(r *recorder.Recorder) Option

Directories

Path Synopsis
Package driver defines the interface for DNS service implementations.
Package driver defines the interface for DNS service implementations.

Jump to

Keyboard shortcuts

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