Documentation
¶
Index ¶
- Variables
- func CutNewline(i string) string
- func DateNow() string
- func GetEnv(env string) string
- func IsTermWindowSizeBiggerThanZero() bool
- 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 docker container error. ErrNoContainer = errors.New("no docker 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`") // ErrSmallTermWindowSize cannot run doko because of a small terminal window size ErrSmallTermWindowSize = errors.New("because of a small terminal window size cannot run `doko`") )
Functions ¶
func IsTermWindowSizeBiggerThanZero ¶
func IsTermWindowSizeBiggerThanZero() bool
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.
func StructToJSON ¶
func StructToJSON(i interface{}) string
StructToJSON -> convert any struct to json.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.