views

package
v0.0.0-...-4e67b65 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeView

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

ComposeView handles the Docker Compose view

func NewComposeView

func NewComposeView(dockerClient *docker.Client) *ComposeView

NewComposeView creates a new compose view

func (*ComposeView) GetPendingAction

func (v *ComposeView) GetPendingAction() (models.Action, string, bool)

GetPendingAction returns any pending action that needs confirmation

func (*ComposeView) HandleKey

func (v *ComposeView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*ComposeView) Init

func (v *ComposeView) Init() tea.Cmd

Init initializes the view

func (*ComposeView) Refresh

func (v *ComposeView) Refresh() tea.Cmd

Refresh refreshes the compose projects list

func (*ComposeView) Render

func (v *ComposeView) Render(width, height int) string

Render renders the compose view

func (*ComposeView) Update

func (v *ComposeView) Update(msg tea.Msg) tea.Cmd

Update handles messages

type ComposeViewMode

type ComposeViewMode int

ComposeViewMode represents different modes in the compose view

const (
	ComposeViewList ComposeViewMode = iota
	ComposeViewServices
	ComposeViewLogs
	ComposeViewFile
	ComposeViewProgress
)

type ContainerStats

type ContainerStats struct {
	CPUPerc  string
	MemUsage string
	MemPerc  string
	NetIO    string
	BlockIO  string
	PIDs     string
}

ContainerStats holds parsed container statistics

type ContainersView

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

ContainersView handles the containers list view

func NewContainersView

func NewContainersView(dockerClient *docker.Client) *ContainersView

NewContainersView creates a new containers view

func (*ContainersView) GetPendingAction

func (v *ContainersView) GetPendingAction() (models.Action, string, bool)

GetPendingAction returns any pending action that needs confirmation

func (*ContainersView) HandleKey

func (v *ContainersView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*ContainersView) Init

func (v *ContainersView) Init() tea.Cmd

Init initializes the view

func (*ContainersView) Refresh

func (v *ContainersView) Refresh() tea.Cmd

Refresh refreshes the containers list

func (*ContainersView) Render

func (v *ContainersView) Render(width, height int) string

Render renders the containers view

func (*ContainersView) Update

func (v *ContainersView) Update(msg tea.Msg) tea.Cmd

Update handles messages

type ImagesView

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

ImagesView handles the images list view

func NewImagesView

func NewImagesView(dockerClient *docker.Client) *ImagesView

NewImagesView creates a new images view

func (*ImagesView) GetPendingAction

func (v *ImagesView) GetPendingAction() (models.Action, string, bool)

GetPendingAction returns any pending action that needs confirmation

func (*ImagesView) HandleKey

func (v *ImagesView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*ImagesView) Init

func (v *ImagesView) Init() tea.Cmd

Init initializes the view

func (*ImagesView) Refresh

func (v *ImagesView) Refresh() tea.Cmd

Refresh refreshes the images list

func (*ImagesView) Render

func (v *ImagesView) Render(width, height int) string

Render renders the images view

func (*ImagesView) Update

func (v *ImagesView) Update(msg tea.Msg) tea.Cmd

Update handles messages

type NetworksView

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

NetworksView handles the networks list view

func NewNetworksView

func NewNetworksView(dockerClient *docker.Client) *NetworksView

NewNetworksView creates a new networks view

func (*NetworksView) HandleKey

func (v *NetworksView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*NetworksView) Init

func (v *NetworksView) Init() tea.Cmd

Init initializes the view

func (*NetworksView) Refresh

func (v *NetworksView) Refresh() tea.Cmd

Refresh refreshes the networks list

func (*NetworksView) Render

func (v *NetworksView) Render(width, height int) string

Render renders the networks view

func (*NetworksView) Update

func (v *NetworksView) Update(msg tea.Msg) tea.Cmd

Update handles messages

type SystemView

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

SystemView handles the system information view

func NewSystemView

func NewSystemView(dockerClient *docker.Client) *SystemView

NewSystemView creates a new system view

func (*SystemView) HandleKey

func (v *SystemView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*SystemView) Init

func (v *SystemView) Init() tea.Cmd

Init initializes the view

func (*SystemView) Refresh

func (v *SystemView) Refresh() tea.Cmd

Refresh refreshes the system information

func (*SystemView) Render

func (v *SystemView) Render(width, height int) string

Render renders the system view

func (*SystemView) Update

func (v *SystemView) Update(msg tea.Msg) tea.Cmd

Update handles messages

type VolumesView

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

VolumesView handles the volumes list view

func NewVolumesView

func NewVolumesView(dockerClient *docker.Client) *VolumesView

NewVolumesView creates a new volumes view

func (*VolumesView) HandleKey

func (v *VolumesView) HandleKey(msg tea.KeyMsg) tea.Cmd

HandleKey handles keyboard input

func (*VolumesView) Init

func (v *VolumesView) Init() tea.Cmd

Init initializes the view

func (*VolumesView) Refresh

func (v *VolumesView) Refresh() tea.Cmd

Refresh refreshes the volumes list

func (*VolumesView) Render

func (v *VolumesView) Render(width, height int) string

Render renders the volumes view

func (*VolumesView) Update

func (v *VolumesView) Update(msg tea.Msg) tea.Cmd

Update handles messages

Jump to

Keyboard shortcuts

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