Documentation
¶
Index ¶
- type App
- func (a *App) ClearService(name string)
- func (a *App) Die(s string)
- func (a *App) DisableService(name string)
- func (a *App) Draw()
- func (a *App) EnableService(name string)
- func (a *App) GetAppName() string
- func (a *App) GetClient() *rest.Client
- func (a *App) GetItem(name string) (*rest.ServiceInfo, error)
- func (a *App) GetItems() ([]*rest.ServiceInfo, error)
- func (a *App) GetLog(name string) (*rest.LogInfo, error)
- func (a *App) HandleEvent(ev topsl.Event) bool
- func (a *App) Logf(fmt string, v ...interface{})
- func (a *App) Quit()
- func (a *App) Resize()
- func (a *App) RestartService(name string)
- func (a *App) SetLogger(logger *log.Logger)
- func (a *App) SetView(view topsl.View)
- func (a *App) ShowHelp()
- func (a *App) ShowInfo(name string)
- func (a *App) ShowLog(name string)
- func (a *App) ShowMain()
- type HelpPanel
- type InfoPanel
- type LogPanel
- type MainPanel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) ClearService ¶
func (*App) DisableService ¶
func (*App) EnableService ¶
func (*App) GetAppName ¶
func (*App) GetItems ¶
func (a *App) GetItems() ([]*rest.ServiceInfo, error)
Must be called with AppLock held
func (*App) RestartService ¶
type HelpPanel ¶
type HelpPanel struct {
// contains filtered or unexported fields
}
func NewHelpPanel ¶
type InfoPanel ¶
type InfoPanel struct {
// contains filtered or unexported fields
}
func NewInfoPanel ¶
type LogPanel ¶
type LogPanel struct {
// contains filtered or unexported fields
}
func NewLogPanel ¶
type MainPanel ¶
type MainPanel struct {
// contains filtered or unexported fields
}
MainPanel implements a topsl.Widget as a topsl.Panel, but provides the data model and handling for the content area, using data loaded from a Govisor REST API service.
func NewMainPanel ¶
Click to show internal directories.
Click to hide internal directories.