Documentation ¶
Index ¶
- type ManualPartitionWidget
- func (mp *ManualPartitionWidget) HandleInput(event *tcell.EventKey) *tcell.EventKey
- func (mp *ManualPartitionWidget) Initialize(backButtonText string, sysConfig *configuration.SystemConfig, ...) (err error)
- func (mp *ManualPartitionWidget) Name() string
- func (mp *ManualPartitionWidget) Primitive() tview.Primitive
- func (mp *ManualPartitionWidget) Reset() (err error)
- func (mp *ManualPartitionWidget) SetSystemDeviceIndex(index int)
- func (mp *ManualPartitionWidget) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManualPartitionWidget ¶
type ManualPartitionWidget struct {
// contains filtered or unexported fields
}
ManualPartitionWidget contains the disk selection UI
func New ¶
func New(systemDevices []diskutils.SystemBlockDevice, bootType string) *ManualPartitionWidget
New creates and returns a new ManualPartitionWidget.
func (*ManualPartitionWidget) HandleInput ¶
func (mp *ManualPartitionWidget) HandleInput(event *tcell.EventKey) *tcell.EventKey
HandleInput handles custom input.
func (*ManualPartitionWidget) Initialize ¶
func (mp *ManualPartitionWidget) 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 (*ManualPartitionWidget) Name ¶
func (mp *ManualPartitionWidget) Name() string
Name returns the friendly name of the view.
func (*ManualPartitionWidget) Primitive ¶
func (mp *ManualPartitionWidget) Primitive() tview.Primitive
Primitive returns the primary primitive to be rendered for the view.
func (*ManualPartitionWidget) Reset ¶
func (mp *ManualPartitionWidget) Reset() (err error)
Reset resets the page, undoing any user input.
func (*ManualPartitionWidget) SetSystemDeviceIndex ¶
func (mp *ManualPartitionWidget) SetSystemDeviceIndex(index int)
SetSystemDeviceIndex updates the system device used
func (*ManualPartitionWidget) Title ¶
func (mp *ManualPartitionWidget) Title() string
Title returns the title of the view.
Click to show internal directories.
Click to hide internal directories.