Documentation
¶
Index ¶
- Constants
- func GetNetworksHelpContent() []helpview.HelpCategory
- type Model
- func (m *Model) ApplySearchQuery(query string)
- func (m *Model) CapturesInput() bool
- func (m *Model) ClearSearchQuery()
- func (m *Model) FrameContent() string
- func (m *Model) FrameFooter() string
- func (m *Model) FrameHeader() string
- func (m *Model) FrameTitle() string
- func (m *Model) HasActiveFilter() bool
- func (m *Model) HasErrors() bool
- func (m *Model) Init() tea.Cmd
- func (m *Model) IsSearching() bool
- func (m *Model) LoadNetworks() tea.Cmd
- func (m *Model) Name() string
- func (m *Model) OnEnter() tea.Cmd
- func (m *Model) OnExit() tea.Cmd
- func (m *Model) SetSize(width, height int)
- func (m *Model) SetVisible(visible bool)
- func (m *Model) ShortHelpItems() []helpbar.HelpEntry
- func (m *Model) Update(msg tea.Msg) tea.Cmd
- func (m *Model) View() string
- type NetworkCreatedMsg
- type NetworkDeletedMsg
- type NetworksLoadedMsg
- type NetworksPrunedMsg
- type PollRetryMsg
- type SortField
- type SpinnerTickMsg
- type TickMsg
- type UsedByLoadedMsg
- type ViewStackMsg
Constants ¶
View Source
const PollInterval = 5 * time.Second
View Source
const ViewName = "networks"
Variables ¶
This section is empty.
Functions ¶
func GetNetworksHelpContent ¶
func GetNetworksHelpContent() []helpview.HelpCategory
GetNetworksHelpContent returns categorized help for the networks view.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) ApplySearchQuery ¶
ApplySearchQuery sets the filter query on the primary networks list.
func (*Model) CapturesInput ¶
CapturesInput reports whether the view is currently capturing all keyboard input.
func (*Model) ClearSearchQuery ¶
func (m *Model) ClearSearchQuery()
ClearSearchQuery clears the filter on the primary networks list.
func (*Model) FrameContent ¶
func (*Model) FrameFooter ¶
func (*Model) FrameHeader ¶
func (*Model) FrameTitle ¶
func (*Model) HasActiveFilter ¶
HasActiveFilter reports whether a filter query is active.
func (*Model) IsSearching ¶
IsSearching reports whether the networks view is in a sub-view that should capture keys (usedBy, createDialog).
func (*Model) LoadNetworks ¶
func (*Model) SetVisible ¶
func (*Model) ShortHelpItems ¶
type NetworkCreatedMsg ¶
type NetworkDeletedMsg ¶
type NetworkDeletedMsg struct {
Err error
}
type NetworksLoadedMsg ¶
type NetworksLoadedMsg struct {
Networks []networkItem
Err error
}
type NetworksPrunedMsg ¶
type PollRetryMsg ¶
type PollRetryMsg struct{}
PollRetryMsg signals that polling found no changes; the Update handler should schedule the next tick.
type SpinnerTickMsg ¶
type UsedByLoadedMsg ¶
type UsedByLoadedMsg struct {
Services []usedByItem
Err error
}
type ViewStackMsg ¶
type ViewStackMsg struct {
StackName string
}
ViewStackMsg is sent when user wants to go to the stacks/services view
Click to show internal directories.
Click to hide internal directories.