MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / create_client

Function create_client

certbot/src/dns01_client/cloudflare.rs:353–361  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351 }
352
353 async fn create_client() -> CloudflareClient {
354 CloudflareClient::new(
355 std::env::var("TEST_DOMAIN").expect("TEST_DOMAIN not set"),
356 std::env::var("CLOUDFLARE_API_TOKEN").expect("CLOUDFLARE_API_TOKEN not set"),
357 std::env::var("CLOUDFLARE_API_URL").ok(),
358 )
359 .await
360 .unwrap()
361 }
362
363 fn random_subdomain() -> String {
364 format!(

Callers 3

can_add_txt_recordFunction · 0.85
can_remove_txt_recordFunction · 0.85
can_add_caa_recordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected