Documentation
¶
Overview ¶
Package processlist implements the v2 /ps endpoint's process listing for the full cAdvisor binary. It is injected into the lean library manager via manager.ProcessListProvider (the kubelet leaves that nil and lists no processes). The logic — shelling out to `ps` and filtering by the container's cgroup — lives here rather than in the library to keep the library lean.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(containerName string, isRoot bool, cadvisorContainer string, inHostNamespace bool) ([]model.ProcessInfo, error)
List returns the processes running in the named container. It satisfies the signature of manager.ProcessListProvider. containerName is the container's cgroup name ("/" for the root container); isRoot reports whether it is the root container.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.