Documentation ¶
Index ¶
- type NetworkConnectDialog
- func (d *NetworkConnectDialog) Display()
- func (d *NetworkConnectDialog) Draw(screen tcell.Screen)
- func (d *NetworkConnectDialog) Focus(delegate func(p tview.Primitive))
- func (d *NetworkConnectDialog) GetConnectOptions() networks.NetworkConnect
- func (d *NetworkConnectDialog) HasFocus() bool
- func (d *NetworkConnectDialog) Hide()
- func (d *NetworkConnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *NetworkConnectDialog) IsDisplay() bool
- func (d *NetworkConnectDialog) SetCancelFunc(handler func()) *NetworkConnectDialog
- func (d *NetworkConnectDialog) SetConnectFunc(handler func()) *NetworkConnectDialog
- func (d *NetworkConnectDialog) SetContainers(cntList []entities.ListContainer)
- func (d *NetworkConnectDialog) SetNetworkInfo(id, name string)
- func (d *NetworkConnectDialog) SetRect(x, y, width, height int)
- type NetworkCreateDialog
- func (d *NetworkCreateDialog) Display()
- func (d *NetworkCreateDialog) Draw(screen tcell.Screen)
- func (d *NetworkCreateDialog) Focus(delegate func(p tview.Primitive))
- func (d *NetworkCreateDialog) HasFocus() bool
- func (d *NetworkCreateDialog) Hide()
- func (d *NetworkCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *NetworkCreateDialog) IsDisplay() bool
- func (d *NetworkCreateDialog) NetworkCreateOptions() networks.CreateOptions
- func (d *NetworkCreateDialog) SetCancelFunc(handler func()) *NetworkCreateDialog
- func (d *NetworkCreateDialog) SetCreateFunc(handler func()) *NetworkCreateDialog
- func (d *NetworkCreateDialog) SetRect(x, y, width, height int)
- type NetworkDisconnectDialog
- func (d *NetworkDisconnectDialog) Display()
- func (d *NetworkDisconnectDialog) Draw(screen tcell.Screen)
- func (d *NetworkDisconnectDialog) Focus(delegate func(p tview.Primitive))
- func (d *NetworkDisconnectDialog) GetDisconnectOptions() (string, string)
- func (d *NetworkDisconnectDialog) HasFocus() bool
- func (d *NetworkDisconnectDialog) Hide()
- func (d *NetworkDisconnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
- func (d *NetworkDisconnectDialog) IsDisplay() bool
- func (d *NetworkDisconnectDialog) SetCancelFunc(handler func()) *NetworkDisconnectDialog
- func (d *NetworkDisconnectDialog) SetContainers(cntList []entities.ListContainer)
- func (d *NetworkDisconnectDialog) SetDisconnectFunc(handler func()) *NetworkDisconnectDialog
- func (d *NetworkDisconnectDialog) SetNetworkInfo(id string, name string)
- func (d *NetworkDisconnectDialog) SetRect(x, y, width, height int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkConnectDialog ¶ added in v0.6.0
NetworkConnectDialog implements network connect dialog primitive.
func NewNetworkConnectDialog ¶ added in v0.6.0
func NewNetworkConnectDialog() *NetworkConnectDialog
NewNetworkConnectDialog returns a new network connect dialog primitive.
func (*NetworkConnectDialog) Display ¶ added in v0.6.0
func (d *NetworkConnectDialog) Display()
Display displays this primitive.
func (*NetworkConnectDialog) Draw ¶ added in v0.6.0
func (d *NetworkConnectDialog) Draw(screen tcell.Screen)
Draw draws this primitive into the screen.
func (*NetworkConnectDialog) Focus ¶ added in v0.6.0
func (d *NetworkConnectDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*NetworkConnectDialog) GetConnectOptions ¶ added in v0.6.0
func (d *NetworkConnectDialog) GetConnectOptions() networks.NetworkConnect
GetConnectOptions returns network connect options.
func (*NetworkConnectDialog) HasFocus ¶ added in v0.6.0
func (d *NetworkConnectDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*NetworkConnectDialog) Hide ¶ added in v0.6.0
func (d *NetworkConnectDialog) Hide()
Hide stops displaying this primitive.
func (*NetworkConnectDialog) InputHandler ¶ added in v0.6.0
func (d *NetworkConnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*NetworkConnectDialog) IsDisplay ¶ added in v0.6.0
func (d *NetworkConnectDialog) IsDisplay() bool
IsDisplay returns true if this primitive is shown.
func (*NetworkConnectDialog) SetCancelFunc ¶ added in v0.6.0
func (d *NetworkConnectDialog) SetCancelFunc(handler func()) *NetworkConnectDialog
SetCancelFunc sets form cancel button selected function.
func (*NetworkConnectDialog) SetConnectFunc ¶ added in v0.6.0
func (d *NetworkConnectDialog) SetConnectFunc(handler func()) *NetworkConnectDialog
SetConnectFunc sets form connect button selected function.
func (*NetworkConnectDialog) SetContainers ¶ added in v0.6.0
func (d *NetworkConnectDialog) SetContainers(cntList []entities.ListContainer)
SetContainers sets container drop down list content.
func (*NetworkConnectDialog) SetNetworkInfo ¶ added in v0.6.0
func (d *NetworkConnectDialog) SetNetworkInfo(id, name string)
SetNetworkInfo sets selected network name in connect dialog.
func (*NetworkConnectDialog) SetRect ¶ added in v0.6.0
func (d *NetworkConnectDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.
type NetworkCreateDialog ¶
NetworkCreateDialog implements network create dialog.
func NewNetworkCreateDialog ¶
func NewNetworkCreateDialog() *NetworkCreateDialog
NewNetworkCreateDialog returns new network create dialog primitive NetworkCreateDialog.
func (*NetworkCreateDialog) Display ¶
func (d *NetworkCreateDialog) Display()
Display displays this primitive.
func (*NetworkCreateDialog) Draw ¶
func (d *NetworkCreateDialog) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
func (*NetworkCreateDialog) Focus ¶
func (d *NetworkCreateDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*NetworkCreateDialog) HasFocus ¶
func (d *NetworkCreateDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*NetworkCreateDialog) Hide ¶
func (d *NetworkCreateDialog) Hide()
Hide stops displaying this primitive.
func (*NetworkCreateDialog) InputHandler ¶
func (d *NetworkCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*NetworkCreateDialog) IsDisplay ¶
func (d *NetworkCreateDialog) IsDisplay() bool
IsDisplay returns true if primitive is shown.
func (*NetworkCreateDialog) NetworkCreateOptions ¶
func (d *NetworkCreateDialog) NetworkCreateOptions() networks.CreateOptions
NetworkCreateOptions returns new network options.
func (*NetworkCreateDialog) SetCancelFunc ¶
func (d *NetworkCreateDialog) SetCancelFunc(handler func()) *NetworkCreateDialog
SetCancelFunc sets form cancel button selected function.
func (*NetworkCreateDialog) SetCreateFunc ¶
func (d *NetworkCreateDialog) SetCreateFunc(handler func()) *NetworkCreateDialog
SetCreateFunc sets form create button selected function.
func (*NetworkCreateDialog) SetRect ¶
func (d *NetworkCreateDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.
type NetworkDisconnectDialog ¶ added in v0.6.0
NetworkDisconnectDialog implements network disconnect dialog primitive.
func NewNetworkDisconnectDialog ¶ added in v0.6.0
func NewNetworkDisconnectDialog() *NetworkDisconnectDialog
func (*NetworkDisconnectDialog) Display ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) Display()
Display displays this primitive.
func (*NetworkDisconnectDialog) Draw ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) Draw(screen tcell.Screen)
Draw draws this primitive into the screen.
func (*NetworkDisconnectDialog) Focus ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) Focus(delegate func(p tview.Primitive))
Focus is called when this primitive receives focus.
func (*NetworkDisconnectDialog) GetDisconnectOptions ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) GetDisconnectOptions() (string, string)
GetDisconnectOptions returns network disconnect options.
func (*NetworkDisconnectDialog) HasFocus ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) HasFocus() bool
HasFocus returns whether or not this primitive has focus.
func (*NetworkDisconnectDialog) Hide ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) Hide()
Hide stops displaying this primitive.
func (*NetworkDisconnectDialog) InputHandler ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
InputHandler returns input handler function for this primitive.
func (*NetworkDisconnectDialog) IsDisplay ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) IsDisplay() bool
IsDisplay returns true if this primitive is shown.
func (*NetworkDisconnectDialog) SetCancelFunc ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) SetCancelFunc(handler func()) *NetworkDisconnectDialog
SetCancelFunc sets form cancel button selected function.
func (*NetworkDisconnectDialog) SetContainers ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) SetContainers(cntList []entities.ListContainer)
SetContainers sets container drop down list content.
func (*NetworkDisconnectDialog) SetDisconnectFunc ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) SetDisconnectFunc(handler func()) *NetworkDisconnectDialog
SetDisconnectFunc sets form disconnect button selected function.
func (*NetworkDisconnectDialog) SetNetworkInfo ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) SetNetworkInfo(id string, name string)
SetNetworkInfo sets selected network name in disconnect dialog.
func (*NetworkDisconnectDialog) SetRect ¶ added in v0.6.0
func (d *NetworkDisconnectDialog) SetRect(x, y, width, height int)
SetRect set rects for this primitive.