Documentation
¶
Index ¶
- type App
- func (a *App) ActionPause()
- func (a *App) ActionResume()
- func (a *App) ActivateCmd(initial string)
- func (a *App) AppendFlash(text string, duration ...time.Duration)
- func (a *App) AppendFlashError(text string, duration ...time.Duration)
- func (a *App) AppendFlashPending(text string, duration ...time.Duration)
- func (a *App) AppendFlashSuccess(text string, duration ...time.Duration)
- func (a *App) CloseInspector()
- func (a *App) CopyToClipboard(text string) error
- func (a *App) ExecuteCmd(cmd string)
- func (a *App) GetActionState(viewName string, id string) (string, tcell.Color, bool)
- func (a *App) GetActiveFilter() string
- func (a *App) GetActiveScope() *common.Scope
- func (a *App) GetConfig() *config.Config
- func (a *App) GetDocker() *dao.DockerClient
- func (a *App) GetPages() *tview.Pages
- func (a *App) GetPortForwardManager() *portforward.Manager
- func (a *App) GetScreen() tcell.Screen
- func (a *App) GetTviewApp() *tview.Application
- func (a *App) InspectCurrentSelection()
- func (a *App) IsFlashLocked() bool
- func (a *App) IsPaused() bool
- func (a *App) IsReadOnly() bool
- func (a *App) OpenInspector(inspector common.Inspector)
- func (a *App) PerformAction(action func(id string) error, actionName string, color tcell.Color)
- func (a *App) PerformCopy()
- func (a *App) PerformCopyView()
- func (a *App) RefreshCurrentView()
- func (a *App) ReloadContext(contextName string)
- func (a *App) RestoreFocus()
- func (a *App) Run() error
- func (a *App) RunInBackground(task func())
- func (a *App) SafeQueueUpdateDraw(f func())
- func (a *App) SafeSetScope(scope *common.Scope)
- func (a *App) ScheduleViewHighlight(viewName string, match func(dao.Resource) bool, bg, fg tcell.Color, ...)
- func (a *App) SetActiveFilter(filter string)
- func (a *App) SetActiveScope(scope *common.Scope)
- func (a *App) SetCmdLineVisible(visible bool)
- func (a *App) SetDefaultContext(contextName string)
- func (a *App) SetFilter(filter string)
- func (a *App) SetFlashError(text string)
- func (a *App) SetFlashMessage(text string, duration time.Duration)
- func (a *App) SetFlashPending(text string)
- func (a *App) SetFlashSuccess(text string)
- func (a *App) SetFlashText(text string)
- func (a *App) SetFullscreen(enabled bool)
- func (a *App) SetPaused(paused bool)
- func (a *App) ShowContextPicker()
- func (a *App) StartAutoRefresh()
- func (a *App) StopAutoRefresh()
- func (a *App) SwitchTo(viewName string)
- func (a *App) SwitchToWithSelection(viewName string, reset bool)
- func (a *App) UpdateShortcuts()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
TviewApp *tview.Application
Screen tcell.Screen
Docker *dao.DockerClient
Cfg *config.Config
PortForwards *portforward.Manager
// Components
Layout *tview.Flex
Header *header.HeaderComponent
Pages *tview.Pages
CmdLine *command.CommandComponent
Flash *footer.FlashComponent
Help tview.Primitive
// Views
Views map[string]*view.ResourceView
// State
ActiveFilter string
ActiveScope *common.Scope
ActiveInspector common.Inspector
PreviousView string
CurrentView string // Track current view name before inspector
LatestVersion string
// contains filtered or unexported fields
}
func (*App) ActionPause ¶ added in v0.42.75
func (a *App) ActionPause()
func (*App) ActionResume ¶ added in v0.42.75
func (a *App) ActionResume()
func (*App) ActivateCmd ¶
func (*App) AppendFlash ¶ added in v0.42.75
func (*App) AppendFlashError ¶ added in v0.42.75
func (*App) AppendFlashPending ¶ added in v0.42.75
func (*App) AppendFlashSuccess ¶ added in v0.42.75
func (*App) CloseInspector ¶
func (a *App) CloseInspector()
func (*App) CopyToClipboard ¶
func (*App) ExecuteCmd ¶
func (*App) GetActionState ¶ added in v0.42.75
func (*App) GetActiveFilter ¶
func (*App) GetActiveScope ¶
func (*App) GetDocker ¶
func (a *App) GetDocker() *dao.DockerClient
func (*App) GetPortForwardManager ¶ added in v0.49.95
func (a *App) GetPortForwardManager() *portforward.Manager
func (*App) GetTviewApp ¶
func (a *App) GetTviewApp() *tview.Application
func (*App) InspectCurrentSelection ¶
func (a *App) InspectCurrentSelection()
func (*App) IsFlashLocked ¶ added in v0.42.75
func (*App) IsReadOnly ¶ added in v0.42.75
func (*App) OpenInspector ¶
func (*App) PerformAction ¶
func (*App) PerformCopy ¶
func (a *App) PerformCopy()
func (*App) PerformCopyView ¶ added in v0.42.75
func (a *App) PerformCopyView()
func (*App) RefreshCurrentView ¶
func (a *App) RefreshCurrentView()
func (*App) ReloadContext ¶ added in v0.49.97
ReloadContext rebuilds the Docker client for contextName, even when it is already the active context. Used after editing a context (endpoint or credentials change) so changes apply without restarting d4s.
func (*App) RestoreFocus ¶
func (a *App) RestoreFocus()
func (*App) RunInBackground ¶ added in v0.42.75
func (a *App) RunInBackground(task func())
func (*App) SafeQueueUpdateDraw ¶ added in v0.42.75
func (a *App) SafeQueueUpdateDraw(f func())
func (*App) SafeSetScope ¶ added in v0.42.75
func (*App) ScheduleViewHighlight ¶
func (*App) SetActiveFilter ¶
func (*App) SetActiveScope ¶
func (*App) SetCmdLineVisible ¶
func (*App) SetDefaultContext ¶ added in v0.49.80
func (*App) SetFlashError ¶ added in v0.42.75
func (*App) SetFlashMessage ¶ added in v0.42.75
func (*App) SetFlashPending ¶ added in v0.42.75
func (*App) SetFlashSuccess ¶ added in v0.42.75
func (*App) SetFlashText ¶
func (*App) SetFullscreen ¶ added in v0.49.94
func (*App) ShowContextPicker ¶ added in v0.49.80
func (a *App) ShowContextPicker()
func (*App) StartAutoRefresh ¶ added in v0.42.75
func (a *App) StartAutoRefresh()
func (*App) StopAutoRefresh ¶ added in v0.42.75
func (a *App) StopAutoRefresh()
func (*App) SwitchToWithSelection ¶
func (*App) UpdateShortcuts ¶
func (a *App) UpdateShortcuts()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.