systeminfoview

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Height = 6
View Source
const ViewName = "systeminfo"
View Source
const Width = 40

Variables

This section is empty.

Functions

This section is empty.

Types

type LatestVersionMsg

type LatestVersionMsg struct {
	LatestVersion string
}

LatestVersionMsg reports that the version API returned a newer release than the running build. The app layer reads LatestVersion to raise the startup update notice, so the field is exported.

type Model

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

func New

func New(deps docker.Deps, version, edition string) *Model

Create a new instance

func (*Model) CheckLatestVersion

func (m *Model) CheckLatestVersion() tea.Cmd

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Latest

func (m *Model) Latest() string

Latest returns the newest release reported by the version check, or "" if none has been observed yet. The app reads it to populate the on-demand update notice (the proactive notice is driven by LatestVersionMsg directly).

func (*Model) LoadSlowStatus

func (m *Model) LoadSlowStatus() tea.Cmd

func (*Model) LoadStatus

func (m *Model) LoadStatus() tea.Cmd

func (*Model) SetContent

func (m *Model) SetContent(msg Msg)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View

func (m *Model) View() string

type Msg

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

type NoVersionUpdateMsg

type NoVersionUpdateMsg struct{}

type SlowStatusMsg

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

type SpinnerTickMsg

type SpinnerTickMsg time.Time

type SystemInfoMsg

type SystemInfoMsg interface {
	// contains filtered or unexported methods
}

SystemInfoMsg is implemented by all messages owned by the systeminfo component. The app-level router uses this to forward messages without listing each type.

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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