gui

package
v0.0.0-...-145884f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64MapToArray

func Float64MapToArray(floatMap map[float64]float64) [][]float64

func NewTopPanel

func NewTopPanel() *guiTopPanel

func WrapButton

func WrapButton(button *tview.Button) *tview.Grid

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳