Documentation
¶
Overview ¶
Package route53 provides an in-memory mock implementation of AWS Route 53.
Index ¶
- type Mock
- func (m *Mock) CreateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)
- func (m *Mock) CreateZone(_ context.Context, cfg driver.ZoneConfig) (*driver.ZoneInfo, error)
- func (m *Mock) DeleteRecord(_ context.Context, zoneID, name, recordType string) error
- func (m *Mock) DeleteZone(_ context.Context, id string) error
- func (m *Mock) GetRecord(_ context.Context, zoneID, name, recordType string) (*driver.RecordInfo, error)
- func (m *Mock) GetZone(_ context.Context, id string) (*driver.ZoneInfo, error)
- func (m *Mock) ListRecords(_ context.Context, zoneID string) ([]driver.RecordInfo, error)
- func (m *Mock) ListZones(_ context.Context) ([]driver.ZoneInfo, error)
- func (m *Mock) UpdateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock struct {
// contains filtered or unexported fields
}
Mock is an in-memory mock implementation of the AWS Route 53 DNS service.
func (*Mock) CreateRecord ¶
func (m *Mock) CreateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)
CreateRecord creates a new DNS record in the specified zone.
func (*Mock) CreateZone ¶
CreateZone creates a new DNS hosted zone.
func (*Mock) DeleteRecord ¶
DeleteRecord deletes a DNS record from the specified zone.
func (*Mock) DeleteZone ¶
DeleteZone deletes a DNS hosted zone by ID.
func (*Mock) GetRecord ¶
func (m *Mock) GetRecord(_ context.Context, zoneID, name, recordType string) (*driver.RecordInfo, error)
GetRecord retrieves a DNS record from the specified zone.
func (*Mock) ListRecords ¶
ListRecords returns all DNS records for the specified zone.
func (*Mock) UpdateRecord ¶
func (m *Mock) UpdateRecord(_ context.Context, cfg driver.RecordConfig) (*driver.RecordInfo, error)
UpdateRecord updates an existing DNS record in the specified zone.
Click to show internal directories.
Click to hide internal directories.