ui/client/features/processes/services/ProcessActionsApi
Cockpit client (features), v0.9. Source: ui/client/features/processes/services/ProcessActionsApi.ts.
Type Aliases#
ControlResult#
ControlResult = {
detail:ProcessDetail;ok:true; } | {error:string;ok:false; }
Defined in: ui/client/features/processes/services/ProcessActionsApi.ts:4
Functions#
fetchDiff()#
fetchDiff(
id,path):Promise<{diff:string|null;reason?:string; }>
Defined in: ui/client/features/processes/services/ProcessActionsApi.ts:18
The unified diff of one artifact from the bot's branch; diff is null (with a reason) when there is none to show.
Parameters#
id
string
path
string
Returns#
Promise<{ diff: string | null; reason?: string; }>
sendControl()#
sendControl(
id,verb):Promise<ControlResult>
Defined in: ui/client/features/processes/services/ProcessActionsApi.ts:7
POST a control. The server decides whether it is legal and says why not; the answer is shown, not second-guessed.
Parameters#
id
string
verb
Returns#
Promise<ControlResult>