Skip to main content
Module

x/pup/mod.ts>PluginApi

Universal process manager built in Deno
Go to Latest
class PluginApi
import { PluginApi } from "https://deno.land/x/pup@1.0.0-rc.8/mod.ts";

Exposes selected features of pup to Plugins

Constructors

new
PluginApi(pup: Pup)

Properties

private
_pup: Pup
events: EventEmitter
paths: PluginPaths

Methods

allProcessStates(): PluginProcessData[]
applicationState(): PluginApplicationState
block(id: string, reason: string)
getLogs(
processId?: string,
startTimeStamp?: number,
endTimeStamp?: number,
nRows?: number,
): Promise<LogEventData[]>
log(
severity:
| "log"
| "error"
| "info"
| "warn"
,
plugin: string,
message: string,
)
restart(id: string, reason: string)
start(id: string, reason: string)
stop(id: string, reason: string)
terminate(forceQuitMs: number)
unblock(id: string, reason: string)