ui/server/src/flowApi
Flow view: the read-only server half of the Browser pane's Files | Flow switch.
Cockpit server, next. Source: ui/server/src/flowApi.mjs.
Functions#
clearFlowCache()#
clearFlowCache():
void
Defined in: ui/server/src/flowApi.mjs:70
Test hook: forget every cached flow.
Returns#
void
featureFlow()#
featureFlow(
root,feature):object
Defined in: ui/server/src/flowApi.mjs:80
Parameters#
root
any
feature
any
Returns#
object
body
body:
any
status
status:
number
flowFilePaths()#
flowFilePaths(
root,feature): {files?:undefined;refusal: {body:any;status:number; }; } | {files:Set<any>;refusal?:undefined; }
Defined in: ui/server/src/flowApi.mjs:94
Every file path the flow of feature draws (the allowlist for opening a row), or a refusal.
Parameters#
root
any
feature
any
Returns#
{ files?: undefined; refusal: { body: any; status: number; }; } | { files: Set<any>; refusal?: undefined; }
projectSignature()#
projectSignature(
root):string
Defined in: ui/server/src/flowApi.mjs:26
Cheap change detector for the source tree: name length + mtime + size of every source-ish file.
Parameters#
root
any
Returns#
string