compose

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

func (ProjectsModel) View

func (m ProjectsModel) View() string

View renders the projects list.

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.

func (ServicesModel) View

func (m ServicesModel) View() string

View renders the services list.

Jump to

Keyboard shortcuts

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