Documentation
¶
Index ¶
- func Float64MapToArray(floatMap map[float64]float64) [][]float64
- func NewTopPanel() *guiTopPanel
- func WrapButton(button *tview.Button) *tview.Grid
- type CompartmentDetailPanel
- type CompartmentPanel
- type GUIPanel
- type GuiController
- func (controller *GuiController) AddPage(name string, item tview.Primitive, resize bool)
- func (controller *GuiController) BindDefaultDoneFunc(onTab, onBackTab, onEsc tview.Primitive) func(key tcell.Key)
- func (controller *GuiController) GetBackFocusFunc() func()
- func (controller *GuiController) GetGUIPages() *tview.Pages
- func (controller *GuiController) GetGUITopPanel() *guiTopPanel
- func (controller *GuiController) GetSetFocusFunc(primitive tview.Primitive) func()
- func (controller *GuiController) LogError(message string, modal bool)
- func (controller *GuiController) RefreshGUI()
- func (controller *GuiController) RemoveLoading()
- func (controller *GuiController) RemovePage(removePage string, showPage string) error
- func (controller *GuiController) SetFocus(primitive tview.Primitive)
- func (controller *GuiController) SetLoading()
- type InstanceActionPanel
- type InstanceDetailPanel
- type InstanceMonitoringPanel
- type InstancesPanel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64MapToArray ¶
func NewTopPanel ¶
func NewTopPanel() *guiTopPanel
Types ¶
type CompartmentDetailPanel ¶
type CompartmentDetailPanel struct {
// contains filtered or unexported fields
}
func NewCompartmentDetailPanel ¶
func NewCompartmentDetailPanel(compartment *identity.Compartment) *CompartmentDetailPanel
func (*CompartmentDetailPanel) GetGUI ¶
func (panel *CompartmentDetailPanel) GetGUI() tview.Primitive
type CompartmentPanel ¶
type CompartmentPanel struct {
// contains filtered or unexported fields
}
func NewCompartmentPanel ¶
func NewCompartmentPanel(TenancyId string, CompartmentId string, OciController *oci.OCIController, GuiController *GuiController) *CompartmentPanel
func (*CompartmentPanel) GetInfo ¶
func (panel *CompartmentPanel) GetInfo() string
func (*CompartmentPanel) GetPanelName ¶
func (panel *CompartmentPanel) GetPanelName() string
func (*CompartmentPanel) Remove ¶
func (panel *CompartmentPanel) Remove(pages *tview.Pages)
func (*CompartmentPanel) Show ¶
func (panel *CompartmentPanel) Show(pages *tview.Pages)
type GUIPanel ¶
type GUIPanel interface { Show(pages *tview.Pages) Remove(pages *tview.Pages) GetPanelName() string GetInfo() string }
Interface defining gui panel. Designed for lists of entities.
- method Show(pages *tview.Pages) adds page with name defined by GetPanelName();
- method GetPanelName() string returns unique name of the panel;
- method Remove(pages *tview.Pages) removes panel from pages.
func NewCompartmentAsGUIPanel ¶
func NewCompartmentAsGUIPanel(TenancyId string, CompartmentId string, OciController *oci.OCIController, GuiController *GuiController) *GUIPanel
func NewInstancesAsGUIPanel ¶
func NewInstancesAsGUIPanel(TenancyId string, CompartmentId string, OciController *oci.OCIController, GuiController *GuiController) *GUIPanel
type GuiController ¶
type GuiController struct {
// contains filtered or unexported fields
}
func NewGuiController ¶
func NewGuiController(app *tview.Application) *GuiController
func (*GuiController) AddPage ¶
func (controller *GuiController) AddPage(name string, item tview.Primitive, resize bool)
func (*GuiController) BindDefaultDoneFunc ¶
func (controller *GuiController) BindDefaultDoneFunc(onTab, onBackTab, onEsc tview.Primitive) func(key tcell.Key)
func (*GuiController) GetBackFocusFunc ¶
func (controller *GuiController) GetBackFocusFunc() func()
func (*GuiController) GetGUIPages ¶
func (controller *GuiController) GetGUIPages() *tview.Pages
func (*GuiController) GetGUITopPanel ¶
func (controller *GuiController) GetGUITopPanel() *guiTopPanel
func (*GuiController) GetSetFocusFunc ¶
func (controller *GuiController) GetSetFocusFunc(primitive tview.Primitive) func()
func (*GuiController) LogError ¶
func (controller *GuiController) LogError(message string, modal bool)
func (*GuiController) RefreshGUI ¶
func (controller *GuiController) RefreshGUI()
func (*GuiController) RemoveLoading ¶
func (controller *GuiController) RemoveLoading()
func (*GuiController) RemovePage ¶
func (controller *GuiController) RemovePage(removePage string, showPage string) error
func (*GuiController) SetFocus ¶
func (controller *GuiController) SetFocus(primitive tview.Primitive)
func (*GuiController) SetLoading ¶
func (controller *GuiController) SetLoading()
type InstanceActionPanel ¶
type InstanceActionPanel struct {
// contains filtered or unexported fields
}
func NewInstanceActionPanel ¶
func NewInstanceActionPanel(instance *core.Instance) *InstanceActionPanel
func (*InstanceActionPanel) GetGUI ¶
func (panel *InstanceActionPanel) GetGUI() tview.Primitive
func (*InstanceActionPanel) GetInstanceOCID ¶
func (panel *InstanceActionPanel) GetInstanceOCID() string
func (*InstanceActionPanel) GetPanelName ¶
func (panel *InstanceActionPanel) GetPanelName() string
func (*InstanceActionPanel) GetSelectedAction ¶
func (panel *InstanceActionPanel) GetSelectedAction() core.InstanceActionActionEnum
type InstanceDetailPanel ¶
type InstanceDetailPanel struct {
// contains filtered or unexported fields
}
func NewInstanceDetailPanel ¶
func NewInstanceDetailPanel(instance *core.Instance) *InstanceDetailPanel
func (*InstanceDetailPanel) GetGUI ¶
func (panel *InstanceDetailPanel) GetGUI() tview.Primitive
type InstanceMonitoringPanel ¶
type InstanceMonitoringPanel struct {
// contains filtered or unexported fields
}
func NewInstanceMonitoringPanel ¶
func NewInstanceMonitoringPanel(GuiController *GuiController, OciController *oci.OCIController, Instance *core.Instance, CompartmentId string) *InstanceMonitoringPanel
func (*InstanceMonitoringPanel) GetGUI ¶
func (panel *InstanceMonitoringPanel) GetGUI() tview.Primitive
func (*InstanceMonitoringPanel) GetPanelName ¶
func (panel *InstanceMonitoringPanel) GetPanelName() string
func (*InstanceMonitoringPanel) LoadData ¶
func (panel *InstanceMonitoringPanel) LoadData()
type InstancesPanel ¶
type InstancesPanel struct {
// contains filtered or unexported fields
}
func NewInstancesPanel ¶
func NewInstancesPanel(TenancyId string, CompartmentId string, OciController *oci.OCIController, GuiController *GuiController) *InstancesPanel
func (*InstancesPanel) GetInfo ¶
func (panel *InstancesPanel) GetInfo() string
func (*InstancesPanel) GetPanelName ¶
func (panel *InstancesPanel) GetPanelName() string
func (*InstancesPanel) RefreshOciIntance ¶
func (panel *InstancesPanel) RefreshOciIntance(OcidId string)
func (*InstancesPanel) Remove ¶
func (panel *InstancesPanel) Remove(pages *tview.Pages)
func (*InstancesPanel) Show ¶
func (panel *InstancesPanel) Show(pages *tview.Pages)
Click to show internal directories.
Click to hide internal directories.