#10: implement Cloudflare DNS automation engine (13 records & system aliases)
This commit is contained in:
1 parent
b08bce71bb
commit
10836ea98f
14 files changed
+1043
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package port
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lambdamail/protocols/internal/domain/entity"
|
||||
)
|
||||
|
||||
// DnsProvider defines operations for managing remote DNS zone records (e.g. Cloudflare).
|
||||
type DnsProvider interface {
|
||||
GetZoneID(ctx context.Context, domainName string) (string, error)
|
||||
ListRecords(ctx context.Context, zoneID string) ([]entity.DnsRecord, error)
|
||||
CreateRecord(ctx context.Context, zoneID string, record entity.DnsRecord) error
|
||||
UpdateRecord(ctx context.Context, zoneID string, record entity.DnsRecord) error
|
||||
DeleteRecord(ctx context.Context, zoneID string, recordID string) error
|
||||
}
|
||||
Reference in new issue
Block a user