ui

package
v0.49.104 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 37 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 {
	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 NewApp

func NewApp(contextName string, cfg *config.Config) (*App, error)

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 (a *App) ActivateCmd(initial string)

func (*App) AppendFlash added in v0.42.75

func (a *App) AppendFlash(text string, duration ...time.Duration)

func (*App) AppendFlashError added in v0.42.75

func (a *App) AppendFlashError(text string, duration ...time.Duration)

func (*App) AppendFlashPending added in v0.42.75

func (a *App) AppendFlashPending(text string, duration ...time.Duration)

func (*App) AppendFlashSuccess added in v0.42.75

func (a *App) AppendFlashSuccess(text string, duration ...time.Duration)

func (*App) CloseInspector

func (a *App) CloseInspector()

func (*App) CopyToClipboard

func (a *App) CopyToClipboard(text string) error

func (*App) ExecuteCmd

func (a *App) ExecuteCmd(cmd string)

func (*App) GetActionState added in v0.42.75

func (a *App) GetActionState(viewName string, id string) (string, tcell.Color, bool)

func (*App) GetActiveFilter

func (a *App) GetActiveFilter() string

func (*App) GetActiveScope

func (a *App) GetActiveScope() *common.Scope

func (*App) GetConfig added in v0.42.75

func (a *App) GetConfig() *config.Config

func (*App) GetDocker

func (a *App) GetDocker() *dao.DockerClient

func (*App) GetPages

func (a *App) GetPages() *tview.Pages

func (*App) GetPortForwardManager added in v0.49.95

func (a *App) GetPortForwardManager() *portforward.Manager

func (*App) GetScreen added in v0.42.75

func (a *App) GetScreen() tcell.Screen

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 (a *App) IsFlashLocked() bool

func (*App) IsPaused added in v0.42.75

func (a *App) IsPaused() bool

func (*App) IsReadOnly added in v0.42.75

func (a *App) IsReadOnly() bool

func (*App) OpenInspector

func (a *App) OpenInspector(inspector common.Inspector)

func (*App) PerformAction

func (a *App) PerformAction(action func(id string) error, actionName string, color tcell.Color)

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

func (a *App) ReloadContext(contextName string)

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) Run

func (a *App) Run() error

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 (a *App) SafeSetScope(scope *common.Scope)

func (*App) ScheduleViewHighlight

func (a *App) ScheduleViewHighlight(viewName string, match func(dao.Resource) bool, bg, fg tcell.Color, duration time.Duration)

func (*App) SetActiveFilter

func (a *App) SetActiveFilter(filter string)

func (*App) SetActiveScope

func (a *App) SetActiveScope(scope *common.Scope)

func (*App) SetCmdLineVisible

func (a *App) SetCmdLineVisible(visible bool)

func (*App) SetDefaultContext added in v0.49.80

func (a *App) SetDefaultContext(contextName string)

func (*App) SetFilter

func (a *App) SetFilter(filter string)

func (*App) SetFlashError added in v0.42.75

func (a *App) SetFlashError(text string)

func (*App) SetFlashMessage added in v0.42.75

func (a *App) SetFlashMessage(text string, duration time.Duration)

func (*App) SetFlashPending added in v0.42.75

func (a *App) SetFlashPending(text string)

func (*App) SetFlashSuccess added in v0.42.75

func (a *App) SetFlashSuccess(text string)

func (*App) SetFlashText

func (a *App) SetFlashText(text string)

func (*App) SetFullscreen added in v0.49.94

func (a *App) SetFullscreen(enabled bool)

func (*App) SetPaused added in v0.42.75

func (a *App) SetPaused(paused bool)

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) SwitchTo

func (a *App) SwitchTo(viewName string)

func (*App) SwitchToWithSelection

func (a *App) SwitchToWithSelection(viewName string, reset bool)

func (*App) UpdateShortcuts

func (a *App) UpdateShortcuts()

Jump to

Keyboard shortcuts

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