Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatUptime ¶
FormatUptime formats the container uptime
func ParseProjectName ¶
ParseProjectName extracts the project name from a container name Examples:
- myproject_web_1 -> myproject
- myproject-web-1 -> myproject
- standalone -> standalone (no prefix)
Types ¶
type Tree ¶
func BuildTree ¶
func BuildTree(containers []docker.ContainerInfo) *Tree
BuildTree groups containers by project prefix
func (*Tree) GetNodePath ¶
GetNodePath returns a unique path identifier for a node
func (*Tree) GetSelected ¶
GetSelected returns the currently selected node
func (*Tree) RestoreSelection ¶
RestoreSelection attempts to restore selection to a node with the given path
func (*Tree) ToggleExpanded ¶
func (t *Tree) ToggleExpanded()
ToggleExpanded toggles the expanded state of the selected node
func (*Tree) UpdateFlatView ¶
func (t *Tree) UpdateFlatView()
UpdateFlatView creates a flattened view of visible nodes for navigation
Click to show internal directories.
Click to hide internal directories.