Documentation ¶
Overview ¶
Package ui - contains UI iteraction code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v1.1.0
func New( ctx context.Context, storage storage.HostStorage, appState *state.ApplicationState, log iLogger, ) mainModel
New - creates a parent module for other component and preserves state which can be propagated to other subcomponents.
func Start ¶ added in v1.1.0
func Start(ctx context.Context, storage storage.HostStorage, appState *state.ApplicationState, logger iLogger)
Start - starts UI subsystem of the application. *state.ApplicationState should be substituted with interface type which would have getters and setters for appropriate fields, without doing it it's hard to use mock objects in unit tests of the child components. Search for 'MockAppState'.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
component
|
|
hostedit
Package hostedit contains UI components for editing host model attributes.
|
Package hostedit contains UI components for editing host model attributes. |
hostlist
Package hostlist implements the host list view.
|
Package hostlist implements the host list view. |
input
Package input implements generic UI input component.
|
Package input implements generic UI input component. |
Package message contains shared messages which are used to communicate between bubbletea components
|
Package message contains shared messages which are used to communicate between bubbletea components |
Click to show internal directories.
Click to hide internal directories.