ui

package
v0.0.0-...-71a9569 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 NewApp

func NewApp(client *rest.Client, url string) *App

func (*App) ClearService

func (a *App) ClearService(name string)

func (*App) Die

func (a *App) Die(s string)

func (*App) DisableService

func (a *App) DisableService(name string)

func (*App) Draw

func (a *App) Draw()

func (*App) EnableService

func (a *App) EnableService(name string)

func (*App) GetAppName

func (a *App) GetAppName() string

func (*App) GetClient

func (a *App) GetClient() *rest.Client

func (*App) GetItem

func (a *App) GetItem(name string) (*rest.ServiceInfo, error)

func (*App) GetItems

func (a *App) GetItems() ([]*rest.ServiceInfo, error)

Must be called with AppLock held

func (*App) GetLog

func (a *App) GetLog(name string) (*rest.LogInfo, error)

func (*App) HandleEvent

func (a *App) HandleEvent(ev topsl.Event) bool

func (*App) Logf

func (a *App) Logf(fmt string, v ...interface{})

func (*App) Quit

func (a *App) Quit()

func (*App) Resize

func (a *App) Resize()

func (*App) RestartService

func (a *App) RestartService(name string)

func (*App) SetLogger

func (a *App) SetLogger(logger *log.Logger)

func (*App) SetView

func (a *App) SetView(view topsl.View)

func (*App) ShowHelp

func (a *App) ShowHelp()

func (*App) ShowInfo

func (a *App) ShowInfo(name string)

func (*App) ShowLog

func (a *App) ShowLog(name string)

func (*App) ShowMain

func (a *App) ShowMain()

type HelpPanel

type HelpPanel struct {
	// contains filtered or unexported fields
}

func NewHelpPanel

func NewHelpPanel(app *App) *HelpPanel

func (*HelpPanel) Draw

func (h *HelpPanel) Draw()

func (*HelpPanel) HandleEvent

func (h *HelpPanel) HandleEvent(ev topsl.Event) bool

func (*HelpPanel) Resize

func (h *HelpPanel) Resize()

func (*HelpPanel) SetView

func (h *HelpPanel) SetView(view topsl.View)

type InfoPanel

type InfoPanel struct {
	// contains filtered or unexported fields
}

func NewInfoPanel

func NewInfoPanel(app *App) *InfoPanel

func (*InfoPanel) Draw

func (i *InfoPanel) Draw()

func (*InfoPanel) HandleEvent

func (i *InfoPanel) HandleEvent(ev topsl.Event) bool

func (*InfoPanel) Resize

func (i *InfoPanel) Resize()

func (*InfoPanel) SetName

func (i *InfoPanel) SetName(name string)

func (*InfoPanel) SetView

func (i *InfoPanel) SetView(view topsl.View)

type LogPanel

type LogPanel struct {
	// contains filtered or unexported fields
}

func NewLogPanel

func NewLogPanel(app *App) *LogPanel

func (*LogPanel) Draw

func (p *LogPanel) Draw()

func (*LogPanel) HandleEvent

func (p *LogPanel) HandleEvent(ev topsl.Event) bool

func (*LogPanel) Resize

func (p *LogPanel) Resize()

func (*LogPanel) SetName

func (p *LogPanel) SetName(name string)

func (*LogPanel) SetView

func (p *LogPanel) SetView(view topsl.View)

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

func NewMainPanel(app *App, server string) *MainPanel

func (*MainPanel) Draw

func (m *MainPanel) Draw()

func (*MainPanel) HandleEvent

func (m *MainPanel) HandleEvent(ev topsl.Event) bool

func (*MainPanel) Resize

func (m *MainPanel) Resize()

func (*MainPanel) SetView

func (m *MainPanel) SetView(view topsl.View)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL