header

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Height = 4

Height is the number of lines the header occupies, including borders.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the header with the Docker Engine API and Info boxes. It holds no client and performs no I/O.

func New

func New(host, version string) Model

func (Model) ClearContainer

func (m Model) ClearContainer() Model

ClearContainer shows the container counts in the Info box again.

func (Model) SetContainer

func (m Model) SetContainer(s container.Short) Model

SetContainer shows s in the Info box instead of the container counts.

func (Model) SetEngine

func (m Model) SetEngine(e engine.Info) Model

SetEngine shows the host's name, versions and system in the Docker Engine API box.

func (Model) SetShorts

func (m Model) SetShorts(shorts []container.Short) Model

SetShorts updates the container counts shown in the Info box.

func (Model) SetWidth

func (m Model) SetWidth(w int) Model

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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