Documentation ¶
Index ¶
- type InstallationView
- func (iv *InstallationView) HandleInput(event *tcell.EventKey) *tcell.EventKey
- func (iv *InstallationView) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, ...) (err error)
- func (iv *InstallationView) Name() string
- func (iv *InstallationView) NeedsToPrompt() bool
- func (iv *InstallationView) OnShow()
- func (iv *InstallationView) Primitive() tview.Primitive
- func (iv *InstallationView) Reset() (err error)
- func (iv *InstallationView) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstallationView ¶
type InstallationView struct {
// contains filtered or unexported fields
}
InstallationView contains the package list UI
func New ¶
func New(sysConfig *configuration.SystemConfig, templateConfig configuration.Config) *InstallationView
New creates and returns a new InstallationView.
func (*InstallationView) HandleInput ¶
func (iv *InstallationView) HandleInput(event *tcell.EventKey) *tcell.EventKey
HandleInput handles custom input.
func (*InstallationView) Initialize ¶
func (iv *InstallationView) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, cfg *configuration.Config, app *tview.Application, nextPage, previousPage, quit, refreshTitle func()) (err error)
Initialize initializes the view.
func (*InstallationView) Name ¶
func (iv *InstallationView) Name() string
Name returns the friendly name of the view.
func (*InstallationView) NeedsToPrompt ¶
func (iv *InstallationView) NeedsToPrompt() bool
NeedsToPrompt returns true if this view should be shown to the user so a system configuration can be selected.
func (*InstallationView) OnShow ¶
func (iv *InstallationView) OnShow()
OnShow gets called when the view is shown to the user
func (*InstallationView) Primitive ¶
func (iv *InstallationView) Primitive() tview.Primitive
Primitive returns the primary primitive to be rendered for the view.
func (*InstallationView) Reset ¶
func (iv *InstallationView) Reset() (err error)
Reset resets the page, undoing any user input.
func (*InstallationView) Title ¶
func (iv *InstallationView) Title() string
Title returns the title of the view.
Click to show internal directories.
Click to hide internal directories.