Documentation
¶
Index ¶
- Constants
- type DetailView
- type ExecuteInstanceActionMsg
- type ShowInstanceDetailMsg
- type TableView
- func (v *TableView) GetSelectedInstance() map[string]interface{}
- func (v *TableView) HandleKey(msg tea.KeyMsg) tea.Cmd
- func (v *TableView) HelpText() string
- func (v *TableView) Render(width, height int) string
- func (v *TableView) Title() string
- func (v *TableView) UpdateData(data []map[string]interface{}, imageMap, floatingIPMap map[string]string)
Constants ¶
View Source
const ( ActionStart = iota ActionStop ActionSoftReboot ActionReboot ActionSSH ActionDelete )
Action indices for the detail view
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DetailView ¶
DetailView displays instance details with actions.
func NewDetailView ¶
func NewDetailView(ctx *views.Context, instance map[string]interface{}, imageName, floatingIP string) *DetailView
NewDetailView creates a new instance detail view.
func (*DetailView) HelpText ¶
func (v *DetailView) HelpText() string
func (*DetailView) Render ¶
func (v *DetailView) Render(width, height int) string
func (*DetailView) Title ¶
func (v *DetailView) Title() string
type ExecuteInstanceActionMsg ¶
ExecuteInstanceActionMsg signals to execute an action on an instance.
type ShowInstanceDetailMsg ¶
type ShowInstanceDetailMsg struct {
Instance map[string]interface{}
}
ShowInstanceDetailMsg signals to show instance detail.
type TableView ¶
TableView displays a list of instances in a table.
func NewTableView ¶
func NewTableView(ctx *views.Context, data []map[string]interface{}, imageMap, floatingIPMap map[string]string) *TableView
NewTableView creates a new instance table view.
func (*TableView) GetSelectedInstance ¶
GetSelectedInstance returns the currently selected instance.
Click to show internal directories.
Click to hide internal directories.