PluginContext
Defined in: plugins/holocron-plugin-turbo/src/index.ts:33
What the plugin’s capability and probe share: the options, the team and a lazily built client.
Properties
Section titled “Properties”client
Section titled “client”client: () =>
object
Defined in: plugins/holocron-plugin-turbo/src/index.ts:41
Builds the client on first call and reuses it; the token is resolved then, not at plugin load.
Returns
Section titled “Returns”object
cache:
object
cache.status
Section titled “cache.status”status: (
team) =>Promise<TurboCacheStatus>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<TurboCacheStatus>
token:
object
token.current
Section titled “token.current”current: () =>
Promise<TurboTokenResponse>
Returns
Section titled “Returns”Promise<TurboTokenResponse>
options
Section titled “options”options:
TurboPluginOptions
Defined in: plugins/holocron-plugin-turbo/src/index.ts:35
The options the plugin was created with.
team: () =>
string|undefined
Defined in: plugins/holocron-plugin-turbo/src/index.ts:37
The configured team, read when called: the option, then HOLOCRON_TURBO_TEAM / TURBO_TEAM; undefined when none.
Returns
Section titled “Returns”string | undefined
token: () =>
string
Defined in: plugins/holocron-plugin-turbo/src/index.ts:39
The resolved token; throws an AuthError when none is set.
Returns
Section titled “Returns”string