CloudflareApi class

Minimal client of the Cloudflare API used by katana apply.

The token is only sent in the Authorization header and is never included in exceptions or logs.

katana applyで使用するCloudflare APIの最小限のクライアント。

トークンはAuthorizationヘッダーでのみ送信され、例外やログには含まれません。

Constructors

CloudflareApi({required String token, Uri? baseUrl, HttpClient? client})
Minimal client of the Cloudflare API used by katana apply.

Properties

baseUrl → Uri
API endpoint. Tests may use an in-process endpoint.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPagesDomain(String accountId, String project, String domain) → Future<CloudflarePagesDomain>
Attaches the custom domain domain to the Pages project project.
close() → void
Closes the underlying HTTP client.
createProxiedCname(String zoneId, {required String name, required String content}) → Future<void>
Creates a proxied CNAME record from name to content in zoneId.
getPagesProjectSubdomain(String accountId, String project) → Future<String?>
Returns the *.pages.dev subdomain of the Pages project project.
getZone(String zoneId) → Future<CloudflareZone>
Returns the zone zoneId.
listDnsRecords(String zoneId, String name) → Future<List<CloudflareDnsRecord>>
Lists the DNS records named name in the zone zoneId.
listPagesDomains(String accountId, String project) → Future<List<CloudflarePagesDomain>>
Lists the custom domains of the Pages project project.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited