views

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectRequestMsg

type ConnectRequestMsg struct {
	ContainerName string
}

ConnectRequestMsg signals that the user wants to connect to a container

type HomeModel

type HomeModel struct {
	// contains filtered or unexported fields
}

HomeModel is the main container list view

func NewHomeModel

func NewHomeModel(containers []container.Info, daemonRunning bool) *HomeModel

NewHomeModel creates a new home view

func (*HomeModel) GetContainers

func (h *HomeModel) GetContainers() []container.Info

GetContainers returns the current container list for caching

func (*HomeModel) GetCursor

func (h *HomeModel) GetCursor() int

GetCursor returns the current cursor position for caching

func (*HomeModel) Init

func (h *HomeModel) Init() tea.Cmd

Init initializes the home view

func (*HomeModel) RefreshContainers

func (h *HomeModel) RefreshContainers(containers []container.Info, daemonRunning bool)

RefreshContainers updates the container list

func (*HomeModel) SetAnimationState

func (h *HomeModel) SetAnimationState(state int)

SetAnimationState updates the animation state for pulsing indicators

func (*HomeModel) SetCursor

func (h *HomeModel) SetCursor(pos int)

SetCursor sets the cursor position (used when restoring from cache)

func (*HomeModel) SetSize

func (h *HomeModel) SetSize(width, height int)

SetSize updates the view dimensions

func (*HomeModel) Update

func (h *HomeModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles input and state changes

func (*HomeModel) View

func (h *HomeModel) View() string

View renders the home view

type ShowActionsMenuMsg

type ShowActionsMenuMsg struct {
	Container container.Info
}

ShowActionsMenuMsg signals to show the actions menu for a container

Jump to

Keyboard shortcuts

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