CloudflareDns
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:16
The Cloudflare implementation of the dns capability; finds a domain’s zone by walking from the domain up to its apex.
Implements
Section titled “Implements”Dns
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CloudflareDns(
client,accountId?):CloudflareDns
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:25
Parameters
Section titled “Parameters”client
Section titled “client”() => object
accountId?
Section titled “accountId?”string
Returns
Section titled “Returns”CloudflareDns
Properties
Section titled “Properties”
readonlykey:"dns"
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:18
The capability this class provides, always "dns".
Implementation of
Section titled “Implementation of”Dns.key
providerName
Section titled “providerName”
readonlyproviderName:"cloudflare"="cloudflare"
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:20
The provider name, "cloudflare".
Implementation of
Section titled “Implementation of”Dns.providerName
Methods
Section titled “Methods”deleteRecord()
Section titled “deleteRecord()”deleteRecord(
domain,id):Promise<void>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:90
Deletes the DNS record with this id from the zone that holds the domain.
Parameters
Section titled “Parameters”domain
Section titled “domain”string
string
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”Dns.deleteRecord
ensureRelaySource()
Section titled “ensureRelaySource()”ensureRelaySource(
input):Promise<EnsureRelaySourceResult>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:31
Makes the Cloudflare notification webhook and the policies that send to it for a relay source; needs the account id.
Parameters
Section titled “Parameters”EnsureRelaySourceInput
Returns
Section titled “Returns”Promise<EnsureRelaySourceResult>
Implementation of
Section titled “Implementation of”Dns.ensureRelaySource
inspectRelaySource()
Section titled “inspectRelaySource()”inspectRelaySource(
input):Promise<RelaySourceState>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:36
Reads the relay source’s notification webhook and its policies back, changing nothing.
Parameters
Section titled “Parameters”InspectRelaySourceInput
Returns
Section titled “Returns”Promise<RelaySourceState>
Implementation of
Section titled “Implementation of”Dns.inspectRelaySource
listRecords()
Section titled “listRecords()”listRecords(
domain):Promise<DnsRecord[]>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:52
Lists the DNS records in the zone that holds the domain.
Parameters
Section titled “Parameters”domain
Section titled “domain”string
Returns
Section titled “Returns”Promise<DnsRecord[]>
Implementation of
Section titled “Implementation of”Dns.listRecords
upsertRecord()
Section titled “upsertRecord()”upsertRecord(
domain,record):Promise<DnsRecord>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:59
Updates the first record of the same type and name, or creates the record when there is none; returns the stored record.
Parameters
Section titled “Parameters”domain
Section titled “domain”string
record
Section titled “record”DnsRecord
Returns
Section titled “Returns”Promise<DnsRecord>
Implementation of
Section titled “Implementation of”Dns.upsertRecord
whoami()
Section titled “whoami()”whoami():
Promise<{ok:boolean;zones:number; }>
Defined in: plugins/holocron-plugin-cloudflare/src/capabilities/dns.ts:96
holocron doctor has no specific domain to check — lists every zone the token can see instead.
Returns
Section titled “Returns”Promise<{ ok: boolean; zones: number; }>
Implementation of
Section titled “Implementation of”Dns.whoami