networksview

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 New

func New(width, height int) *Model

func (*Model) ApplySearchQuery

func (m *Model) ApplySearchQuery(query string)

ApplySearchQuery sets the filter query on the primary networks list.

func (*Model) CapturesInput

func (m *Model) CapturesInput() bool

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 (m *Model) FrameContent() string

func (*Model) FrameFooter

func (m *Model) FrameFooter() string

func (*Model) FrameHeader

func (m *Model) FrameHeader() string

func (*Model) FrameTitle

func (m *Model) FrameTitle() string

func (*Model) HasActiveFilter

func (m *Model) HasActiveFilter() bool

HasActiveFilter reports whether a filter query is active.

func (*Model) HasErrors

func (m *Model) HasErrors() bool

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) IsSearching

func (m *Model) IsSearching() bool

IsSearching reports whether the networks view is in a sub-view that should capture keys (usedBy, createDialog).

func (*Model) LoadNetworks

func (m *Model) LoadNetworks() tea.Cmd

func (*Model) Name

func (m *Model) Name() string

func (*Model) OnEnter

func (m *Model) OnEnter() tea.Cmd

func (*Model) OnExit

func (m *Model) OnExit() tea.Cmd

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) SetVisible

func (m *Model) SetVisible(visible bool)

func (*Model) ShortHelpItems

func (m *Model) ShortHelpItems() []helpbar.HelpEntry

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View

func (m *Model) View() string

type NetworkCreatedMsg

type NetworkCreatedMsg struct {
	Name     string
	ID       string
	Warnings []string
	Err      error
}

type NetworkDeletedMsg

type NetworkDeletedMsg struct {
	Err error
}

type NetworksLoadedMsg

type NetworksLoadedMsg struct {
	Networks []networkItem
	Err      error
}

type NetworksPrunedMsg

type NetworksPrunedMsg struct {
	Deleted []string
	Err     error
}

type PollRetryMsg

type PollRetryMsg struct{}

PollRetryMsg signals that polling found no changes; the Update handler should schedule the next tick.

type SortField

type SortField int
const (
	SortByName SortField = iota
	SortByID
	SortByDriver
	SortByScope
	SortByUsed
	SortByCreated
)

type SpinnerTickMsg

type SpinnerTickMsg time.Time

type TickMsg

type TickMsg time.Time

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL