Documentation ¶ Index ¶ type Config type UI func New(cfg Config) (*UI, error) func (ui *UI) Close() error func (ui *UI) Run(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Host string DockerHost string Username string IdentityFile string AskPassword bool } type UI ¶ type UI struct { // contains filtered or unexported fields } func New ¶ func New(cfg Config) (*UI, error) New initializes the UI components and returns a UI instance. It does not start the TUI application; the caller must call Run() to do so. Note that the caller is responsible for calling Close() on the UI to clean up resources after Run() returns. func (*UI) Close ¶ func (ui *UI) Close() error func (*UI) Run ¶ func (ui *UI) Run(ctx context.Context) error Run starts the TUI application and blocks until it exits. Source Files ¶ View all Source files ui.go Click to show internal directories. Click to hide internal directories.