managecontianer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerSelected = iota
	ContainerInProcess
	ContainerID
	ContainerName
	ContainerImage
	ContainerStatus
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerModel

type ContainerModel struct {
	SelectedContainers mapset.Set[string]
	InProcess          mapset.Set[string]
	Help               help.Model
	Keys               keyMap
	DockerClient       docker.DockerClient
	Message            message.Message
	Input              textinput.Model
	Table              table.Model
	Spinner            spinner.Model
}

func NewModel

func NewModel(dockerClient docker.DockerClient) ContainerModel

func (*ContainerModel) ClearSelectedContainers

func (m *ContainerModel) ClearSelectedContainers()

func (ContainerModel) DeleteContainers

func (m ContainerModel) DeleteContainers() (ContainerModel, tea.Cmd)

func (ContainerModel) ExecContainer

func (m ContainerModel) ExecContainer() (ContainerModel, tea.Cmd)

func (ContainerModel) Init

func (m ContainerModel) Init() tea.Cmd

func (ContainerModel) SelectAllContainers

func (m ContainerModel) SelectAllContainers() (ContainerModel, tea.Cmd)

func (ContainerModel) SelectContainers

func (m ContainerModel) SelectContainers() (ContainerModel, tea.Cmd)

func (ContainerModel) ShowLogs

func (m ContainerModel) ShowLogs() (ContainerModel, tea.Cmd)

func (ContainerModel) StartContainers

func (m ContainerModel) StartContainers() (ContainerModel, tea.Cmd)

func (ContainerModel) StopContainers

func (m ContainerModel) StopContainers() (ContainerModel, tea.Cmd)

func (ContainerModel) Update

func (m ContainerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ContainerModel) View

func (m ContainerModel) View() string

Jump to

Keyboard shortcuts

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