ui

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: GPL-3.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ui shows the machines: as a table on stdout (PrintStatus), or as a TUI (Run) with their services, stacks, containers and logs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintStatus

func PrintStatus(w io.Writer, reports []swarm.Report) (bool, error)

PrintStatus writes the machines table, then what's wrong. It returns false if any machine is unreachable or has a problem, and the error of writing to w, if any.

func PrintStatusJSON added in v1.3.0

func PrintStatusJSON(w io.Writer, reports []swarm.Report) (bool, error)

PrintStatusJSON writes the machines as a JSON array of machineJSON. Like PrintStatus, it returns false if any machine is unreachable or has a problem.

func Run

func Run(ctx context.Context, hosts []inventory.Host, timeout, interval time.Duration, readOnly bool) error

Run browses the machines until the user quits; readOnly, without actions or shells.

Types

This section is empty.

Jump to

Keyboard shortcuts

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