Managoat.Sandbox.Session (managoat_sandbox v0.1.0)

Copy Markdown View Source

A normalized record of a detachable session living inside a sandbox.

Deliberately carries no is_active flag: a detached session reports inactive while nobody is connected, and filtering on it would skip exactly the sessions reattach exists to recover. Leaving the field out makes that mistake unrepresentable (see docs/integrations/sprites-contract.md, "Sessions").

Summary

Types

t()

@type t() :: %Managoat.Sandbox.Session{
  command: String.t() | nil,
  created_at: DateTime.t() | nil,
  id: String.t(),
  last_activity_at: DateTime.t() | nil,
  tty: boolean()
}