Documentation
¶
Index ¶
- type ComposeView
- func (v *ComposeView) GetPendingAction() (models.Action, string, bool)
- func (v *ComposeView) HandleKey(msg tea.KeyMsg) tea.Cmd
- func (v *ComposeView) Init() tea.Cmd
- func (v *ComposeView) Refresh() tea.Cmd
- func (v *ComposeView) Render(width, height int) string
- func (v *ComposeView) Update(msg tea.Msg) tea.Cmd
- type ComposeViewMode
- type ContainerStats
- type ContainersView
- func (v *ContainersView) GetPendingAction() (models.Action, string, bool)
- func (v *ContainersView) HandleKey(msg tea.KeyMsg) tea.Cmd
- func (v *ContainersView) Init() tea.Cmd
- func (v *ContainersView) Refresh() tea.Cmd
- func (v *ContainersView) Render(width, height int) string
- func (v *ContainersView) Update(msg tea.Msg) tea.Cmd
- type ImagesView
- func (v *ImagesView) GetPendingAction() (models.Action, string, bool)
- func (v *ImagesView) HandleKey(msg tea.KeyMsg) tea.Cmd
- func (v *ImagesView) Init() tea.Cmd
- func (v *ImagesView) Refresh() tea.Cmd
- func (v *ImagesView) Render(width, height int) string
- func (v *ImagesView) Update(msg tea.Msg) tea.Cmd
- type NetworksView
- type SystemView
- type VolumesView
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) 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
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) 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
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) 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
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) 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
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) 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
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) 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