formatter

package
v0.0.0-...-004cd70 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteCountSI

func ByteCountSI(b uint64) string

ByteCountSI presents a human friendly representation of a byte count. See https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format.

func CreateProgressbar

func CreateProgressbar(length int, title string) *progressbar.ProgressBar

CreateProgressbar generates a progress bar

func CreateTable

func CreateTable(columns []string) *jsontable.JSONTable

CreateTable prepares a table layout for output.

func HumanDuration

func HumanDuration(timestamp int64) string

HumanDuration from docker/cli RunningFor() to be accessible outside of the class

func RemoveSha

func RemoveSha(str string) string

RemoveSha remove image sha from a string that are added in some docker outputs

func ShortenID

func ShortenID(str string) string

func SmallSHA

func SmallSHA(hash string) string

func StripTagMeta

func StripTagMeta(image string) string

StripTagMeta strips front-matter image tag data that we don't need for parsing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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