Documentation
¶
Index ¶
- type ProjectsLoadedMsg
- type ProjectsModel
- func (m ProjectsModel) FilterActive() bool
- func (m *ProjectsModel) RefreshTableStyles()
- func (m ProjectsModel) SelectedProject() *docker.ComposeProject
- func (m ProjectsModel) SelectedService() *docker.ComposeService
- func (m *ProjectsModel) SetDaemon(d docker.ContainerDaemon)
- func (m *ProjectsModel) SetProjects(projects []docker.ProjectWithServices)
- func (m *ProjectsModel) SetSize(w, h int)
- func (m ProjectsModel) Update(msg tea.Msg) (ProjectsModel, tea.Cmd)
- func (m ProjectsModel) View() string
- type ServicesLoadedMsg
- type ServicesModel
- func (m ServicesModel) FilterActive() bool
- func (m *ServicesModel) RefreshTableStyles()
- func (m ServicesModel) SelectedNetwork() *docker.ComposeNetwork
- func (m ServicesModel) SelectedService() *docker.ComposeService
- func (m ServicesModel) SelectedVolume() *docker.ComposeVolume
- func (m *ServicesModel) SetServices(services []docker.ComposeService, networks []docker.ComposeNetwork, ...)
- func (m *ServicesModel) SetSize(w, h int)
- func (m ServicesModel) Update(msg tea.Msg) (ServicesModel, tea.Cmd)
- func (m ServicesModel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectsLoadedMsg ¶
type ProjectsLoadedMsg struct {
Projects []docker.ProjectWithServices
}
ProjectsLoadedMsg carries the loaded compose projects with services.
type ProjectsModel ¶
type ProjectsModel struct {
// contains filtered or unexported fields
}
ProjectsModel is the Compose projects list view.
func NewProjectsModel ¶
func NewProjectsModel() ProjectsModel
NewProjectsModel creates a compose projects list model.
func (ProjectsModel) FilterActive ¶
func (m ProjectsModel) FilterActive() bool
FilterActive returns true when the filter input is active.
func (*ProjectsModel) RefreshTableStyles ¶
func (m *ProjectsModel) RefreshTableStyles()
RefreshTableStyles re-applies theme styles to the inner table.
func (ProjectsModel) SelectedProject ¶
func (m ProjectsModel) SelectedProject() *docker.ComposeProject
SelectedProject returns the project under the cursor, or nil. If the cursor is on a service row, returns the parent project.
func (ProjectsModel) SelectedService ¶
func (m ProjectsModel) SelectedService() *docker.ComposeService
SelectedService returns the service under the cursor, or nil if on a project row.
func (*ProjectsModel) SetDaemon ¶
func (m *ProjectsModel) SetDaemon(d docker.ContainerDaemon)
SetDaemon sets the Docker daemon reference.
func (*ProjectsModel) SetProjects ¶
func (m *ProjectsModel) SetProjects(projects []docker.ProjectWithServices)
SetProjects replaces the project list with interleaved project+service rows.
func (*ProjectsModel) SetSize ¶
func (m *ProjectsModel) SetSize(w, h int)
SetSize updates the table dimensions.
func (ProjectsModel) Update ¶
func (m ProjectsModel) Update(msg tea.Msg) (ProjectsModel, tea.Cmd)
Update handles key events.
type ServicesLoadedMsg ¶
type ServicesLoadedMsg struct {
Services []docker.ComposeService
Networks []docker.ComposeNetwork
Volumes []docker.ComposeVolume
Project string
}
ServicesLoadedMsg carries loaded compose resources for a project.
type ServicesModel ¶
type ServicesModel struct {
// contains filtered or unexported fields
}
ServicesModel is the Compose project resources view.
func NewServicesModel ¶
func NewServicesModel() ServicesModel
NewServicesModel creates a compose services list model.
func (ServicesModel) FilterActive ¶
func (m ServicesModel) FilterActive() bool
FilterActive returns true when the filter input is active.
func (*ServicesModel) RefreshTableStyles ¶
func (m *ServicesModel) RefreshTableStyles()
RefreshTableStyles re-applies theme styles to the inner table.
func (ServicesModel) SelectedNetwork ¶
func (m ServicesModel) SelectedNetwork() *docker.ComposeNetwork
SelectedNetwork returns the network under the cursor, or nil.
func (ServicesModel) SelectedService ¶
func (m ServicesModel) SelectedService() *docker.ComposeService
SelectedService returns the service under the cursor, or nil.
func (ServicesModel) SelectedVolume ¶
func (m ServicesModel) SelectedVolume() *docker.ComposeVolume
SelectedVolume returns the volume under the cursor, or nil.
func (*ServicesModel) SetServices ¶
func (m *ServicesModel) SetServices(services []docker.ComposeService, networks []docker.ComposeNetwork, volumes []docker.ComposeVolume, project string)
SetServices replaces the resource list with services, networks, and volumes.
func (*ServicesModel) SetSize ¶
func (m *ServicesModel) SetSize(w, h int)
SetSize updates the table dimensions.
func (ServicesModel) Update ¶
func (m ServicesModel) Update(msg tea.Msg) (ServicesModel, tea.Cmd)
Update handles key events.