podman/libpod
Valentin Rothberg ba1871dac0 podman-top: use containers/psgo
Use github.com/containers/psgo instead of execing `ps (1)`.  The psgo
library enables a much more flexible interface with respect to which
data to be printed (e.g., capabilities, seccomp mode, PID, PCPU, etc.)
while the output can be parsed reliably.  The library does not use
ps (1) but parses /proc and /dev instead.  To list the processes of a
given container, psgo will join the mount namespace of the given
container and extract all data from there.

Notice that this commit breaks compatibility with docker-top.

Signed-off-by: Valentin Rothberg <vrothberg@suse.com>

Closes: #1113
Approved by: rhatdan
2018-07-19 20:47:52 +00:00
..
common Change un/pwd handling to match Buildah's 2018-02-06 09:29:23 -05:00
driver Migrate Create|Commit to ginkgo 2018-02-02 22:44:40 +00:00
image fix pull image that includes a sha 2018-07-13 13:37:49 +00:00
layers Initial checkin from CRI-O repo 2017-11-01 11:24:59 -04:00
testdata Add hooks support to podman 2018-04-05 14:13:49 +00:00
boltdb_state.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
boltdb_state_internal.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
boltdb_state_linux.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
boltdb_state_unsupported.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
common_test.go Abort a test on nil containers, so that future tests don't panic 2018-07-19 16:12:49 +00:00
container.go Record whether the container has exited 2018-07-13 14:28:41 -04:00
container_api.go Allow Init() on stopped containers 2018-07-09 20:33:09 +00:00
container_attach.go libpod: fix race with attach/start 2018-06-20 09:36:04 +02:00
container_commit.go podman: accept option --rootfs to use exploded images 2018-06-15 14:53:18 +00:00
container_graph.go Remove a loop in container graph 2018-03-29 02:18:45 +00:00
container_graph_test.go Fix tests 2018-03-29 02:18:45 +00:00
container_inspect.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
container_internal.go Vendor in latest code for storage,image, buildah 2018-07-19 18:43:32 +00:00
container_internal_linux.go Support multiple networks 2018-07-12 21:45:47 +00:00
container_internal_test.go Fix TestPostDeleteHooks on macOS 2018-07-19 16:12:49 +00:00
container_internal_unsupported.go Remove now-unneeded cleanupCgroup() for unsupported OS 2018-07-06 15:29:38 +00:00
container_linux.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
container_top_linux.go podman-top: use containers/psgo 2018-07-19 20:47:52 +00:00
container_top_unsupported.go podman-top: use containers/psgo 2018-07-19 20:47:52 +00:00
container_unsupported.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
diff.go Stage 4 Image cleanup 2018-03-23 15:35:37 +00:00
errors.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
in_memory_state.go Add pod state 2018-05-17 23:10:12 +00:00
info.go Spell check strings and comments 2018-05-25 08:45:15 +00:00
networking_linux.go Support multiple networks 2018-07-12 21:45:47 +00:00
networking_unsupported.go libpod/networking_unsupported: Remove JoinNetworkNameSpace 2018-07-06 00:48:39 +00:00
oci.go oci: keep exposed ports busy and leak the fd into conmon 2018-07-19 13:21:50 +00:00
oci_linux.go Remove per-container CGroup parents 2018-07-06 15:29:38 +00:00
oci_unsupported.go more changes to compile darwin 2018-07-05 16:05:12 +00:00
options.go Support multiple networks 2018-07-12 21:45:47 +00:00
pod.go Added created time to pod state 2018-07-12 22:13:52 +00:00
runtime.go Merge pull request #1075 from giuseppe/rootless-no-symlinks-into-storage-path 2018-07-13 14:15:54 -04:00
runtime_ctr.go Returning joining namespace error should not be fatal 2018-06-29 14:32:57 +00:00
runtime_img.go podman rmi should only untag image if parent of another 2018-07-12 18:56:33 +00:00
runtime_img_test.go regression: tls verify should be set on registries.conf if insecure 2018-04-18 14:07:59 +00:00
runtime_pod.go Added full podman pod ps, with tests and man page 2018-07-13 09:17:33 -04:00
runtime_pod_linux.go Podman pod create/rm commands with man page and tests. 2018-07-13 09:05:03 -04:00
runtime_pod_unsupported.go libpod/runtime_pod: Make removePod per-platform 2018-07-06 00:48:39 +00:00
state.go Spell check strings and comments 2018-05-25 08:45:15 +00:00
state_test.go Add pod state 2018-05-17 23:10:12 +00:00
stats.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
stats_config.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
stats_unsupported.go changes to allow for darwin compilation 2018-06-29 20:44:09 +00:00
storage.go Vendor in latest code for storage,image, buildah 2018-07-19 18:43:32 +00:00
util.go Stage 4 Image cleanup 2018-03-23 15:35:37 +00:00
util_test.go Stage3 Image Library 2018-03-14 20:21:31 +00:00
version.go varlink images 2018-04-26 19:14:44 +00:00