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.
ConnectionStatus
Section titled “ConnectionStatus”The connection state that the admin application displays.
pub type ConnectionStatus { MissingToken Connecting Online Offline DecodeError ServerError(code: String, message: String)}MissingToken
Section titled “MissingToken”The URL does not contain a token.
Connecting
Section titled “Connecting”The WebSocket connection is opening.
Online
Section titled “Online”The WebSocket is open and can send messages.
Offline
Section titled “Offline”The WebSocket is closed or could not send the join message.
DecodeError
Section titled “DecodeError”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.
Message
Section titled “Message”Events that update the admin application state.
pub type Message { Connected(websocket.Socket) WebSocketMessage(String) WebSocketClosed}Connected(websocket.Socket)
Section titled “Connected(websocket.Socket)”The WebSocket opened.
WebSocketMessage(String)
Section titled “WebSocketMessage(String)”The WebSocket received a text message.
WebSocketClosed
Section titled “WebSocketClosed”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)}Functions
Section titled “Functions”Start the admin application and mount it on the #app element.
pub fn main() -> Nil