Documentation ¶
Index ¶
- func ApplicationTableHeader() string
- func NewLayout() *tview.Grid
- type Application
- type ApplicationStatus
- type LogWriter
- type Logger
- type TuiApplicationManager
- func (m *TuiApplicationManager) AddApplicationView(applications []Application) *TuiApplicationManager
- func (m *TuiApplicationManager) AddLogView() *TuiApplicationManager
- func (m *TuiApplicationManager) PopupApplicationActionModal(row, column int)
- func (m *TuiApplicationManager) PopupExitAppmanConfirmModal()
- func (m *TuiApplicationManager) Refresh(interval time.Duration)
- func (m *TuiApplicationManager) Run() error
- func (m *TuiApplicationManager) SetupCleanupFunction()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplicationTableHeader ¶
func ApplicationTableHeader() string
Types ¶
type Application ¶
type Application struct { Name string Port int Pid int Path string StartCommand []string StopCommand []string Env []string Logger *Logger URL string Branch string // contains filtered or unexported fields }
func NewApplication ¶
func NewApplication(conf config.ApplicationConfig, logger *Logger) Application
func (Application) ActionLabels ¶
func (app Application) ActionLabels() []string
func (*Application) DisplayTableCellText ¶
func (app *Application) DisplayTableCellText() string
func (Application) LaunchMessage ¶
func (app Application) LaunchMessage() string
func (*Application) SetStatus ¶
func (app *Application) SetStatus(status ApplicationStatus)
func (*Application) Stop ¶
func (app *Application) Stop() *Application
Stop is sends a signal to the process to stop it.
type ApplicationStatus ¶
type ApplicationStatus int
const ( Starting ApplicationStatus = iota Running Stopped Error )
func (ApplicationStatus) String ¶
func (a ApplicationStatus) String() string
type TuiApplicationManager ¶
type TuiApplicationManager struct { Layout *tview.Grid // Page for application list ApplicationPages *tview.Pages // Page for application log LogPages *tview.Pages // This table displays a list of applications. // One application is displayed per row. ApplicationTable *tview.Table // contains filtered or unexported fields }
func NewTuiApplicationManager ¶
func NewTuiApplicationManager(applicationConfig []config.ApplicationConfig) *TuiApplicationManager
func (*TuiApplicationManager) AddApplicationView ¶
func (m *TuiApplicationManager) AddApplicationView(applications []Application) *TuiApplicationManager
func (*TuiApplicationManager) AddLogView ¶
func (m *TuiApplicationManager) AddLogView() *TuiApplicationManager
func (*TuiApplicationManager) PopupApplicationActionModal ¶
func (m *TuiApplicationManager) PopupApplicationActionModal(row, column int)
PopupApplicationActionModal is displays a modal for operating the application
func (*TuiApplicationManager) PopupExitAppmanConfirmModal ¶ added in v0.0.4
func (m *TuiApplicationManager) PopupExitAppmanConfirmModal()
func (*TuiApplicationManager) Refresh ¶
func (m *TuiApplicationManager) Refresh(interval time.Duration)
func (*TuiApplicationManager) Run ¶
func (m *TuiApplicationManager) Run() error
func (*TuiApplicationManager) SetupCleanupFunction ¶
func (m *TuiApplicationManager) SetupCleanupFunction()
Click to show internal directories.
Click to hide internal directories.