Documentation
¶
Overview ¶
Package route53 provides an in-memory mock implementation of AWS Route 53.
Index ¶
- type Mock
- func (m *Mock) CreateHealthCheck(_ context.Context, cfg driver.HealthCheckConfig) (*driver.HealthCheckInfo, error)
- 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) DeleteHealthCheck(_ context.Context, id string) error
- func (m *Mock) DeleteRecord(_ context.Context, zoneID, name, recordType string) error
- func (m *Mock) DeleteZone(_ context.Context, id string) error
- func (m *Mock) GetHealthCheck(_ context.Context, id string) (*driver.HealthCheckInfo, 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) ListHealthChecks(_ context.Context) ([]driver.HealthCheckInfo, error)
- func (m *Mock) ListRecords(_ context.Context, zoneID string) ([]driver.RecordInfo, error)
- func (m *Mock) ListZones(_ context.Context) ([]driver.ZoneInfo, error)
- func (m *Mock) SetHealthCheckStatus(_ context.Context, id, status string) error
- func (m *Mock) UpdateHealthCheck(_ context.Context, id string, cfg driver.HealthCheckConfig) (*driver.HealthCheckInfo, 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) CreateHealthCheck ¶ added in v1.4.0
func (m *Mock) CreateHealthCheck(_ context.Context, cfg driver.HealthCheckConfig) (*driver.HealthCheckInfo, error)
CreateHealthCheck creates a new Route 53 health check.
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) DeleteHealthCheck ¶ added in v1.4.0
DeleteHealthCheck deletes a Route 53 health check by ID.
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) GetHealthCheck ¶ added in v1.4.0
GetHealthCheck retrieves a Route 53 health check 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) ListHealthChecks ¶ added in v1.4.0
ListHealthChecks returns all Route 53 health checks.
func (*Mock) ListRecords ¶
ListRecords returns all DNS records for the specified zone.
func (*Mock) SetHealthCheckStatus ¶ added in v1.4.0
SetHealthCheckStatus sets the status of a Route 53 health check.
func (*Mock) UpdateHealthCheck ¶ added in v1.4.0
func (m *Mock) UpdateHealthCheck(_ context.Context, id string, cfg driver.HealthCheckConfig) (*driver.HealthCheckInfo, error)
UpdateHealthCheck updates an existing Route 53 health check.
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.