Skip to content

PluginContext

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:36

The shared state the Cloudflare plugin’s capabilities and probes are built from.

client: () => object

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:40

Memoized client — the token is resolved on first use, not at plugin load.

object

alerting: object

policies: object

create: (accountId, input) => Promise<{ id: string; }>

string

CfNotificationPolicyInput

Promise<{ id: string; }>

list: (accountId) => Promise<CfNotificationPolicy[]>

string

Promise<CfNotificationPolicy[]>

update: (accountId, policyId, input) => Promise<{ id: string; }>

string

string

CfNotificationPolicyInput

Promise<{ id: string; }>

webhooks: object

create: (accountId, input) => Promise<{ id: string; }>

string

CfWebhookDestinationInput

Promise<{ id: string; }>

list: (accountId) => Promise<CfWebhookDestination[]>

string

Promise<CfWebhookDestination[]>

dns: object

create: (zoneId, record) => Promise<CfDnsRecord>

string

CfDnsRecordInput

Promise<CfDnsRecord>

delete: (zoneId, recordId) => Promise<{ id: string; }>

string

string

Promise<{ id: string; }>

list: (zoneId, query?) => Promise<CfDnsRecord[]>

string

string

string

Promise<CfDnsRecord[]>

update: (zoneId, recordId, record) => Promise<CfDnsRecord>

string

string

Partial<CfDnsRecordInput>

Promise<CfDnsRecord>

pages: object

addDomain: (accountId, projectName, hostname) => Promise<CfPagesDomain>

string

string

string

Promise<CfPagesDomain>

createDeployment: (accountId, projectName, branch) => Promise<CfPagesDeployment>

string

string

string

Promise<CfPagesDeployment>

createProject: (accountId, input) => Promise<CfPagesProject>

string

CfPagesProjectInput

Promise<CfPagesProject>

deleteDeployment: (accountId, projectName, deploymentId) => Promise<void>

string

string

string

Promise<void>

getDeployment: (accountId, projectName, deploymentId) => Promise<CfPagesDeployment>

string

string

string

Promise<CfPagesDeployment>

getProject: (accountId, name) => Promise<CfPagesProject>

string

string

Promise<CfPagesProject>

listDeployments: (accountId, projectName) => Promise<CfPagesDeployment[]>

string

string

Promise<CfPagesDeployment[]>

listDomains: (accountId, projectName) => Promise<CfPagesDomain[]>

string

string

Promise<CfPagesDomain[]>

listProjects: (accountId) => Promise<CfPagesProject[]>

string

Promise<CfPagesProject[]>

updateProject: (accountId, name, patch) => Promise<CfPagesProject>

string

string

Partial<Pick<CfPagesProject, "deployment_configs" | "production_branch">>

Promise<CfPagesProject>

tokens: object

create: (input) => Promise<CfCreatedToken>

CfCreateTokenInput

Promise<CfCreatedToken>

delete: (id) => Promise<CfDeletedToken>

string

Promise<CfDeletedToken>

permissionGroups: () => Promise<CfPermissionGroup[]>

Promise<CfPermissionGroup[]>

verify: () => Promise<CfTokenVerification>

Promise<CfTokenVerification>

tunnels: object

create: (accountId, input) => Promise<CfTunnel>

string

string

Promise<CfTunnel>

delete: (accountId, tunnelId) => Promise<void>

string

string

Promise<void>

getConfig: (accountId, tunnelId) => Promise<{ config: CfTunnelConfig; }>

string

string

Promise<{ config: CfTunnelConfig; }>

list: (accountId) => Promise<CfTunnel[]>

string

Promise<CfTunnel[]>

putConfig: (accountId, tunnelId, config) => Promise<void>

string

string

CfTunnelConfig

Promise<void>

token: (accountId, tunnelId) => Promise<string>

string

string

Promise<string>

workers: object

createRoute: (zoneId, pattern, script) => Promise<CfWorkerRoute>

string

string

string

Promise<CfWorkerRoute>

deleteSecret: (accountId, scriptName, name) => Promise<void>

string

string

string

Promise<void>

listDeployments: (accountId, scriptName) => Promise<CfWorkerDeployment[]>

string

string

Promise<CfWorkerDeployment[]>

listRoutes: (zoneId) => Promise<CfWorkerRoute[]>

string

Promise<CfWorkerRoute[]>

listScripts: (accountId) => Promise<CfWorkerScript[]>

string

Promise<CfWorkerScript[]>

listSecrets: (accountId, scriptName) => Promise<CfWorkerSecret[]>

string

string

Promise<CfWorkerSecret[]>

putScript: (accountId, scriptName, script, options?) => Promise<void>

string

string

string

boolean

Promise<void>

putSecret: (accountId, scriptName, name, value) => Promise<CfWorkerSecret>

string

string

string

string

Promise<CfWorkerSecret>

updateRoute: (zoneId, routeId, pattern, script) => Promise<CfWorkerRoute>

string

string

string

string

Promise<CfWorkerRoute>

zones: object

list: (query?) => Promise<CfZone[]>

string

number

Promise<CfZone[]>


options: CloudflarePluginOptions

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:38

The options the plugin was created with, with accountId falling back to CLOUDFLARE_ACCOUNT_ID in the environment, then in the credentials providers’ variables.


token: () => string

Defined in: plugins/holocron-plugin-cloudflare/src/index.ts:42

Memoized token resolver — shared by the client and the Workers capability.

string