Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/dev-server/workflows/DevServer

The dev-server card's own state machine: what has been read, whether a click is in flight, and whether the one-time "this is what will run" question is open.

Cockpit client (features), v0.8. Source: ui/client/features/dev-server/workflows/DevServer.ts.

Type Aliases#

DevServerAction#

DevServerAction = { status: DevServerStatus; type: "STATUS"; } | { type: "UNREACHABLE"; } | { busy: boolean; type: "BUSY"; } | { on: boolean; type: "CONFIRMING"; }

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:14


DevServerSession#

DevServerSession = object

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:5

Properties#

busy

busy: boolean

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:8

A Start / Restart / Stop is in flight.

confirming

confirming: boolean

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:10

The first-start question is showing.

error

error: string | null

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:11

status

status: DevServerStatus | null

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:6

Variables#

initialDevServerSession#

const initialDevServerSession: DevServerSession

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:20

Functions#

devServerReducer()#

devServerReducer(state, action): DevServerSession

Defined in: ui/client/features/dev-server/workflows/DevServer.ts:22

Parameters#

state

DevServerSession

action

DevServerAction

Returns#

DevServerSession