Documentation
¶
Overview ¶
Package sessionpicker implements generation-fenced session selection.
Index ¶
- type Model
- func (m Model) Apply(request Request, response types.SessionsListResponse) Model
- func (m Model) IsCurrent(request Request) bool
- func (m Model) Rows() []types.SessionRow
- func (m Model) Search(query string) (Model, Request)
- func (m Model) Select(session string) (types.IdentityScope, bool)
- func (m Model) SetCurrent(session string) Model
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is a value-updated one-active-session selector.
func New ¶
func New(identity types.IdentityScope, current string) Model
New constructs a picker for one tenant/user authority.
func (Model) Apply ¶
func (m Model) Apply(request Request, response types.SessionsListResponse) Model
Apply ignores stale or cross-scope responses and merges the current row deterministically.
func (Model) IsCurrent ¶
IsCurrent reports whether an async response may update both picker data and dialog state.
func (Model) Rows ¶
func (m Model) Rows() []types.SessionRow
Rows returns isolated visible session metadata.
func (Model) Select ¶
func (m Model) Select(session string) (types.IdentityScope, bool)
Select returns a complete target triple without mutating active state.
func (Model) SetCurrent ¶
SetCurrent is called only after stream drain, target auth, hydrate, and attach complete.
Click to show internal directories.
Click to hide internal directories.