MCPcopy Create free account
hub / github.com/PIKACHUIM/CFWorkerACME / dnsUID

Function dnsUID

src/agent.ts:38–50  ·  view source on GitHub ↗
(env: Bindings, domain_name: string, domain_type: string = "TXT")

Source from the content-addressed store, hash-verified

36}
37
38export async function dnsUID(env: Bindings, domain_name: string, domain_type: string = "TXT") {
39 let domain_list: Record<string, any> = await dnsAll(env);
40 let domain_uuid = "";
41 for (const domain_item of domain_list['result']) {
42 // console.log(domain_item['name'], domain_name);
43 if (domain_item['name'] === domain_name
44 && domain_item.type == domain_type) {
45 domain_uuid = domain_item['id'];
46 break;
47 }
48 }
49 return domain_uuid;
50}
51
52export async function dnsAll(env: Bindings) {
53 const [zones, email, token] = await Promise.all([

Callers 1

dnsDelFunction · 0.85

Calls 1

dnsAllFunction · 0.85

Tested by

no test coverage detected