Documentation
¶
Overview ¶
Package dns provides a portable DNS API with cross-cutting concerns.
Index ¶
- type DNS
- func (d *DNS) CreateRecord(ctx context.Context, config driver.RecordConfig) (*driver.RecordInfo, error)
- func (d *DNS) CreateZone(ctx context.Context, config driver.ZoneConfig) (*driver.ZoneInfo, error)
- func (d *DNS) DeleteRecord(ctx context.Context, zoneID, name, recordType string) error
- func (d *DNS) DeleteZone(ctx context.Context, id string) error
- func (d *DNS) GetRecord(ctx context.Context, zoneID, name, recordType string) (*driver.RecordInfo, error)
- func (d *DNS) GetZone(ctx context.Context, id string) (*driver.ZoneInfo, error)
- func (d *DNS) ListRecords(ctx context.Context, zoneID string) ([]driver.RecordInfo, error)
- func (d *DNS) ListZones(ctx context.Context) ([]driver.ZoneInfo, error)
- func (d *DNS) UpdateRecord(ctx context.Context, config driver.RecordConfig) (*driver.RecordInfo, error)
- type Option
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 (*DNS) CreateRecord ¶
func (d *DNS) CreateRecord(ctx context.Context, config driver.RecordConfig) (*driver.RecordInfo, error)
func (*DNS) CreateZone ¶
func (*DNS) DeleteRecord ¶
func (*DNS) ListRecords ¶
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 WithLatency ¶
func WithMetrics ¶
func WithRateLimiter ¶
func WithRecorder ¶
Click to show internal directories.
Click to hide internal directories.