Skip to content
Strata is pre-1.0. APIs, protocol, and storage format may change.

strata_admin

strata_admin — read-only Lustre admin SPA for the Strata server.

The connection state that the admin application displays.

pub type ConnectionStatus {
MissingToken
Connecting
Online
Offline
DecodeError
ServerError(code: String, message: String)
}

The URL does not contain a token.

The WebSocket connection is opening.

The WebSocket is open and can send messages.

The WebSocket is closed or could not send the join message.

The server sent a frame that the admin app could not decode.

ServerError(code: String, message: String)

Section titled “ServerError(code: String, message: String)”

The server reported an error.

Events that update the admin application state.

pub type Message {
Connected(websocket.Socket)
WebSocketMessage(String)
WebSocketClosed
}

The WebSocket opened.

The WebSocket received a text message.

The WebSocket closed or reported an error.

State for the admin application.

pub type Model {
Model(socket: option.Option(websocket.Socket), status: ConnectionStatus, documents: List(status.AdminDocument), last_updated_ms: Int)
}

Start the admin application and mount it on the #app element.

pub fn main() -> Nil