Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Inspector Inspector Display string // Friendly Name Name string // container name ID string // container sha/id Digest string // Container Digest Image string PodName string Sandbox string Status string // Running state of container RestartCount string LogPath string Metrics *ContainerMetrics Pid uint32 IsPodSandbox bool // real container or just pod sandbox }
Container presents information about a container
func (*Container) GetLogChunker ¶
GetLogChunker returns chunker for container log file
func (*Container) GetLogFile ¶
GetLogFile returns path to log file, k8s-style
func (*Container) GetProcessStderr ¶
GetProcessStderr returns process stderr
type ContainerMetrics ¶ added in v0.2.0
ContainerMetrics represents container cgroup stats
type Inspector ¶
type Inspector interface { // Pods collects information about running pods & containers. Pods() ([]*Pod, error) // Container returns info about a single container. Container(id string) (*Container, error) // Images returns a hash of image digest -> name. Images() (map[string]string, error) // Close frees associated resources. Close() error // Returns path to the container's stderr pipe GetProcessStderr(ID string) (string, error) // Kill sends signal to container's process Kill(ID string, isPodSandbox bool, signal syscall.Signal) error }
Inspector gather information about pods & containers
Directories ¶
Path | Synopsis |
---|---|
Package containerd implements containers.Inspector via containerd API
|
Package containerd implements containers.Inspector via containerd API |
Package cri implements containers.Inspector via CRI
|
Package cri implements containers.Inspector via CRI |
Click to show internal directories.
Click to hide internal directories.