Documentation ¶
Index ¶
- type AutoPartitionWidget
- func (ap *AutoPartitionWidget) HandleInput(event *tcell.EventKey) *tcell.EventKey
- func (ap *AutoPartitionWidget) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, ...) (err error)
- func (ap *AutoPartitionWidget) Name() string
- func (ap *AutoPartitionWidget) Primitive() tview.Primitive
- func (ap *AutoPartitionWidget) Reset() (err error)
- func (ap *AutoPartitionWidget) SelectedSystemDevice() int
- func (ap *AutoPartitionWidget) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoPartitionWidget ¶
type AutoPartitionWidget struct {
// contains filtered or unexported fields
}
AutoPartitionWidget contains the disk selection UI
func New ¶
func New(systemDevices []diskutils.SystemBlockDevice, bootType string) *AutoPartitionWidget
New creates and returns a new AutoPartitionWidget.
func (*AutoPartitionWidget) HandleInput ¶
func (ap *AutoPartitionWidget) HandleInput(event *tcell.EventKey) *tcell.EventKey
HandleInput handles custom input.
func (*AutoPartitionWidget) Initialize ¶
func (ap *AutoPartitionWidget) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, cfg *configuration.Config, app *tview.Application, switchMode, nextPage, previousPage, quit, refreshTitle func()) (err error)
Initialize initializes the view.
func (*AutoPartitionWidget) Name ¶
func (ap *AutoPartitionWidget) Name() string
Name returns the friendly name of the view.
func (*AutoPartitionWidget) Primitive ¶
func (ap *AutoPartitionWidget) Primitive() tview.Primitive
Primitive returns the primary primitive to be rendered for the view.
func (*AutoPartitionWidget) Reset ¶
func (ap *AutoPartitionWidget) Reset() (err error)
Reset resets the page, undoing any user input.
func (*AutoPartitionWidget) SelectedSystemDevice ¶
func (ap *AutoPartitionWidget) SelectedSystemDevice() int
SelectedSystemDevice returns the index of the currently selected system device.
func (*AutoPartitionWidget) Title ¶
func (ap *AutoPartitionWidget) Title() string
Title returns the title of the view.
Click to show internal directories.
Click to hide internal directories.