Liking cljdoc? Tell your friends :D

clj-docker-client.utils


bytes-in-mbclj

source

config-ofclj

(config-of image)
(config-of image cmd)
(config-of image cmd env-vars)
(config-of image cmd env-vars port-bindings working-dir user)
source

ContainerStats->Mapclj

(ContainerStats->Map stats name)

Will turn the stats into just cpu and memory stats, in a similar output 'docker stats' gives

Will turn the stats into just cpu and memory stats, in a similar output 'docker stats' gives
sourceraw docstring

cpu-percentageclj

(cpu-percentage old-map new-map name)

Will deliver the percentage cpu time used compared to cpu available. Takes the difference with the previous call, might sometimes give 0 when called repeatedly. Will always return nil on the first call.

Will deliver the percentage cpu time used compared to cpu available.
Takes the difference with the previous call, might sometimes give 0 when called repeatedly.
Will always return nil on the first call.
sourceraw docstring

filter-hostclj

(filter-host s)
source

format-env-varsclj

(format-env-vars env-vars)
source

format-idclj

(format-id id)

Return docker SHA256 ids in the standard length

Return docker SHA256 ids in the standard length
sourceraw docstring

id-lengthclj

source

mem-mibclj

(mem-mib mem-stats)

Returns the memory taken by the container in MiB

Returns the memory taken by the container in MiB
sourceraw docstring

mem-pctclj

(mem-pct mem-stats)

Returns the memory taken as percentage of the total available memory

Returns the memory taken as percentage of the total available memory
sourceraw docstring

old-cpu-mapclj

source

port-binding-default-publicclj

(port-binding-default-public bind)
source

port-configs-fromclj

(port-configs-from port-mapping)
source

sh-tokenize!clj

(sh-tokenize! command)

Tokenizes a shell command given as a string into the command and its args. Either returns a list of tokens or throws an IllegalStateException.

Sample input: sh -c 'while sleep 1; do echo "${RANDOM}"; done' Output: [sh, -c, while sleep 1; do echo "${RANDOM}"; done]

Tokenizes a shell command given as a string into the command and its args.
Either returns a list of tokens or throws an IllegalStateException.

Sample input: sh -c 'while sleep 1; do echo \"${RANDOM}\"; done'
Output: [sh, -c, while sleep 1; do echo "${RANDOM}"; done]
sourceraw docstring

spotify-obj->Mapclj

(spotify-obj->Map obj)
source

taken-mem-bytesclj

(taken-mem-bytes mem-stats)

Returns the memory taken by the container, excluding the cache as that could be freed when needed

Returns the memory taken by the container, excluding the cache as that could be freed when needed
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close