Documentation ¶
Index ¶
- Variables
- func CutNewline(i string) string
- func DateNow() string
- func GetOSenv(env string) string
- func IsTerminalWindowSizeThanZero() bool
- func NewLogger(logLevel string, logFileName string)
- func ParseDateToString(unixtime int64) string
- func ParseLabels(labels map[string]string) string
- func ParsePortToString(ports []types.Port) string
- func ParseRepoTag(repoTag string) (string, string)
- func ParseSizeToString(size int64) string
- func SortKeys(keys []string) []string
- func StructToJSON(i interface{}) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoContainer no container error. ErrNoContainer = errors.New("no container") // ErrNoImage no image error. ErrNoImage = errors.New("no image") // ErrNoVolume no volume error. ErrNoVolume = errors.New("no volume") // ErrNoNetwork no network error. ErrNoNetwork = errors.New("no network") // ErrDockerConnect cannot connect to docker engine error. ErrDockerConnect = errors.New("unable to connect to Docker") // ErrSmallTerminalWindowSize cannot run docui because of a small terminal window size ErrSmallTerminalWindowSize = errors.New("unable to run docui because of a small terminal window size") )
View Source
var Logger *logger
Logger logger
Functions ¶
func IsTerminalWindowSizeThanZero ¶
func IsTerminalWindowSizeThanZero() bool
IsTerminalWindowSizeThanZero check terminal window size
func ParseDateToString ¶
ParseDateToString parse date to string.
func ParseLabels ¶
ParseLabels parse image labels.
func ParsePortToString ¶
ParsePortToString parse port to string.
func ParseRepoTag ¶
ParseRepoTag parse image repo and tag.
func ParseSizeToString ¶
ParseSizeToString parse size to string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.