Skip to content

createPlugin

createPlugin(options?): object

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

Creates the Cloudflare plugin: dns always, plus deployment, workers and tunnels when an account id is set, and the connection and token probes.

CloudflarePluginOptions = {}

object

capabilities: object

optional deployment?: () => Deployment

Deployment

dns: () => Dns

Dns

optional tunnels?: () => Tunnels

Tunnels

optional workers?: () => Workers

Workers

mintToken: (input) => Promise<MintTokenResult>

MintTokenInput

Promise<MintTokenResult>

name: string = "@theholocron/holocron-plugin-cloudflare"

probes: object

connection: Probe

token: Probe

readTokenId: () => Promise<string | undefined>

Promise<string | undefined>

revokeToken: (input) => Promise<RevokeTokenResult>

RevokeTokenInput

Promise<RevokeTokenResult>

whoami: ProviderAction