infobar

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoBarViewHeight = 5
)

InfoBarViewHeight info bar height.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoBar

type InfoBar struct {
	*tview.Box
	// contains filtered or unexported fields
}

InfoBar implements the info bar primitive.

func NewInfoBar

func NewInfoBar() *InfoBar

NewInfoBar returns info bar view.

func (*InfoBar) Draw

func (info *InfoBar) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*InfoBar) UpdateBasicInfo

func (info *InfoBar) UpdateBasicInfo(hostname string, kernel string, ostype string)

UpdateBasicInfo updates hostname, kernel and os type values.

func (*InfoBar) UpdateConnStatus

func (info *InfoBar) UpdateConnStatus(status registry.ConnStatus)

UpdateConnStatus updates connection status value.

func (*InfoBar) UpdatePodmanInfo

func (info *InfoBar) UpdatePodmanInfo(apiVers string, ociRuntime string, conmonVers string, buildahVers string)

UpdatePodmanInfo updates api, conmon and buildah version values.

func (*InfoBar) UpdateSystemUsageInfo

func (info *InfoBar) UpdateSystemUsageInfo(memUsage float64, swapUsage float64)

UpdateSystemUsageInfo updates memory and swap values.

Jump to

Keyboard shortcuts

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