ui

package
v0.0.0-...-3f6d1d8 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIGURE_NETWORK_LABEL string = "Configure Networking"
	RELEASE_IMAGE_LABEL     string = "Release Image"
	CONFIGURE_BUTTON        string = "<Configure network>"
	QUIT_BUTTON             string = "<Quit>"
	PAGE_CHECKSCREEN        string = "checkScreen"
)
View Source
const (
	YES_BUTTON         string = "<Yes>"
	NO_BUTTON          string = "<No>"
	PAGE_TIMEOUTSCREEN string = "timeout"
)
View Source
const (
	PAGE_SPLASHSCREEN string = "splashscreen"
)

Variables

This section is empty.

Functions

func ModalNetStateJSONPage

func ModalNetStateJSONPage(ns *net.NetState, pages *tview.Pages) (*tview.Modal, error)

Types

type Controller

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

Controller

func NewController

func NewController(ui *UI) *Controller

func (*Controller) GetChan

func (c *Controller) GetChan() chan checks.CheckResult

func (*Controller) Init

func (c *Controller) Init(numChecks int)

type UI

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

func NewUI

func NewUI(app *tview.Application, config checks.Config) *UI

func (*UI) GetApp

func (u *UI) GetApp() *tview.Application

func (*UI) GetPages

func (u *UI) GetPages() *tview.Pages

func (*UI) HideAdditionalChecks

func (u *UI) HideAdditionalChecks()

func (*UI) HideSplashScreen

func (u *UI) HideSplashScreen()

func (*UI) IsDirty

func (u *UI) IsDirty() bool

func (*UI) IsNMTuiActive

func (u *UI) IsNMTuiActive() bool

func (*UI) IsSplashScreenActive

func (u *UI) IsSplashScreenActive() bool

func (*UI) IsTimeoutDialogActive

func (u *UI) IsTimeoutDialogActive() bool

func (*UI) ModalTreeView

func (u *UI) ModalTreeView(netState net.NetState) (tview.Primitive, error)

func (*UI) SetDNSCheck

func (u *UI) SetDNSCheck(cr checks.CheckResult)

func (*UI) SetHttpGetCheck

func (u *UI) SetHttpGetCheck(cr checks.CheckResult)

func (*UI) SetPingCheck

func (u *UI) SetPingCheck(cr checks.CheckResult)

func (*UI) SetPullCheck

func (u *UI) SetPullCheck(cr checks.CheckResult)

func (*UI) ShowAdditionalChecks

func (u *UI) ShowAdditionalChecks()

func (*UI) ShowNMTUI

func (u *UI) ShowNMTUI() error

func (*UI) ShowSplashScreen

func (u *UI) ShowSplashScreen()

func (*UI) ShowTimeoutDialog

func (u *UI) ShowTimeoutDialog()

func (*UI) TreeView

func (u *UI) TreeView(netState net.NetState) (*tview.TreeView, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳