Documentation
¶
Index ¶
- func CalculateCPUPercent(stats container.StatsResponse) float64
- func CalculateMemoryPercent(stats container.StatsResponse) float64
- func CreatedAgo(ts int64) string
- func FormatDuration(d time.Duration) string
- func FormatMounts(mounts []container.MountPoint) string
- func FormatPorts(ports []container.Port) string
- func FormatSize(bytes int64) string
- func GetCfgDir() string
- func ReturnError(loc, title string, err error) tea.Cmd
- func ReturnMsg(loc, title, msg string) tea.Cmd
- func ShortID(id string) string
- func Shorten(s string, max int) string
- func ToAnySlice[T any](in []T) []any
- func WrapAndLimit(s string, maxLen, maxLines int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateCPUPercent ¶
func CalculateCPUPercent(stats container.StatsResponse) float64
func CalculateMemoryPercent ¶
func CalculateMemoryPercent(stats container.StatsResponse) float64
func CreatedAgo ¶
func FormatDuration ¶
func FormatMounts ¶
func FormatMounts(mounts []container.MountPoint) string
func FormatPorts ¶
func FormatSize ¶
func ToAnySlice ¶
func WrapAndLimit ¶
Wraps the text to the given length and also limits no. of lines, adds a "..." line if exceeding.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.