Documentation
¶
Index ¶
- Constants
- Variables
- func CleanTableRows(table *tview.Table, exists func(row int) bool)
- func ContainsPlugin(pluginIds []client.PluginID, pluginId client.PluginID) bool
- func Dashboard(client *clientpkg.Client, frequency time.Duration, timezone *time.Location) error
- func FindDeploymentRow(table *tview.Table, deploymentId string) int
- func FindPluginRow(table *tview.Table, pluginId client.PluginID) int
- func FindSiteRow(table *tview.Table, siteId string) int
- func FindTemplateRow(table *tview.Table, templateId string) int
- func GetDeploymentRow(table *tview.Table, row int) string
- func GetListMinSize(list *tview.List) (int, int)
- func GetPluginRow(table *tview.Table, row int) client.PluginID
- func GetSiteRow(table *tview.Table, row int) string
- func GetTemplateRow(table *tview.Table, row int) string
- func NewBoolTableCell(bool_ bool) *tview.TableCell
- func NewHeaderTableCell(text string) *tview.TableCell
- func PackageToYAML(package_ tkoutil.Package) (string, error)
- func SetTableHeader(table *tview.Table, headers ...string)
- func ToSliceAny(package_ tkoutil.Package) []any
- func ToYAML(content any) (string, error)
- type Application
- func (self *Application) AddTablePage(name string, title string, key rune, updateTable UpdateTableFunc)
- func (self *Application) AddTextPage(name string, title string, key rune, updateText UpdateTextFunc)
- func (self *Application) Error(err error)
- func (self *Application) RightClickToESC(box *tview.Box)
- func (self *Application) SetDeploymentRow(table *tview.Table, row int, deploymentInfo *client.DeploymentInfo)
- func (self *Application) SetPluginRow(table *tview.Table, row int, plugin *client.Plugin)
- func (self *Application) SetSiteRow(table *tview.Table, row int, siteInfo *client.SiteInfo)
- func (self *Application) SetTemplateRow(table *tview.Table, row int, templateInfo *client.TemplateInfo)
- func (self *Application) SwitchToPage(page string, removePage string)
- func (self *Application) UpdateAbout(textView *tview.TextView) error
- func (self *Application) UpdateDeployments(table *tview.Table) error
- func (self *Application) UpdatePlugins(table *tview.Table) error
- func (self *Application) UpdateSites(table *tview.Table) error
- func (self *Application) UpdateTemplates(table *tview.Table) error
- type DeploymentDetails
- type Details
- type PluginDetails
- type SiteDetails
- type TemplateDetails
- type Ticker
- type UpdateTableFunc
- type UpdateTextFunc
Constants ¶
View Source
const TimeFormat = "2006/01/02 15:04:05"
Variables ¶
View Source
var YAMLColorPrinter = yamlprinter.Printer{ String: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[blue]", Suffix: "[white]", } }, Number: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[fuchsia]", Suffix: "[white]", } }, Bool: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[teal]", Suffix: "[white]", } }, MapKey: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[green]", Suffix: "[white]", } }, Anchor: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[red]", Suffix: "[white]", } }, Alias: func() *yamlprinter.Property { return &yamlprinter.Property{ Prefix: "[yellow]", Suffix: "[white]", } }, }
Functions ¶
func ContainsPlugin ¶
func NewBoolTableCell ¶
func NewHeaderTableCell ¶
func SetTableHeader ¶
func ToSliceAny ¶
To force the transcriber to transcribe package as multiple YAML documents
Types ¶
type Application ¶
func NewApplication ¶
func (*Application) AddTablePage ¶
func (self *Application) AddTablePage(name string, title string, key rune, updateTable UpdateTableFunc)
func (*Application) AddTextPage ¶
func (self *Application) AddTextPage(name string, title string, key rune, updateText UpdateTextFunc)
func (*Application) Error ¶
func (self *Application) Error(err error)
func (*Application) RightClickToESC ¶
func (self *Application) RightClickToESC(box *tview.Box)
func (*Application) SetDeploymentRow ¶
func (self *Application) SetDeploymentRow(table *tview.Table, row int, deploymentInfo *client.DeploymentInfo)
func (*Application) SetPluginRow ¶
func (*Application) SetSiteRow ¶
func (*Application) SetTemplateRow ¶
func (self *Application) SetTemplateRow(table *tview.Table, row int, templateInfo *client.TemplateInfo)
func (*Application) SwitchToPage ¶
func (self *Application) SwitchToPage(page string, removePage string)
func (*Application) UpdateAbout ¶
func (self *Application) UpdateAbout(textView *tview.TextView) error
(UpdateTableFunc signature)
func (*Application) UpdateDeployments ¶
func (self *Application) UpdateDeployments(table *tview.Table) error
(UpdateTableFunc signature)
func (*Application) UpdatePlugins ¶
func (self *Application) UpdatePlugins(table *tview.Table) error
(UpdateTableFunc signature)
func (*Application) UpdateSites ¶
func (self *Application) UpdateSites(table *tview.Table) error
(UpdateTableFunc signature)
func (*Application) UpdateTemplates ¶
func (self *Application) UpdateTemplates(table *tview.Table) error
(UpdateTableFunc signature)
type DeploymentDetails ¶
type DeploymentDetails struct {
// contains filtered or unexported fields
}
func (*DeploymentDetails) GetText ¶
func (self *DeploymentDetails) GetText() (string, error)
(Details interface)
func (*DeploymentDetails) GetTitle ¶
func (self *DeploymentDetails) GetTitle() string
(Details interface)
type PluginDetails ¶
type PluginDetails struct {
// contains filtered or unexported fields
}
type SiteDetails ¶
type SiteDetails struct {
// contains filtered or unexported fields
}
type TemplateDetails ¶
type TemplateDetails struct {
// contains filtered or unexported fields
}
func (*TemplateDetails) GetText ¶
func (self *TemplateDetails) GetText() (string, error)
(Details interface)
func (*TemplateDetails) GetTitle ¶
func (self *TemplateDetails) GetTitle() string
(Details interface)
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
type UpdateTableFunc ¶
type UpdateTextFunc ¶
Click to show internal directories.
Click to hide internal directories.