Documentation ¶
Index ¶
- func ByteCountSI(b uint64) string
- func CreateProgressbar(length int, title string) *progressbar.ProgressBar
- func CreateTable(columns []string) *jsontable.JSONTable
- func HumanDuration(timestamp int64) string
- func RemoveSha(str string) string
- func ShortenID(str string) string
- func SmallSHA(hash string) string
- func StripTagMeta(image string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountSI ¶
ByteCountSI presents a human friendly representation of a byte count. See https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format.
func CreateProgressbar ¶
CreateProgressbar generates a progress bar
func CreateTable ¶
CreateTable prepares a table layout for output.
func HumanDuration ¶
HumanDuration from docker/cli RunningFor() to be accessible outside of the class
func StripTagMeta ¶
StripTagMeta strips front-matter image tag data that we don't need for parsing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.