Documentation ¶
Overview ¶
Package containers provides the container implementatiom.
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 ¶
func (c *Container) GetLogChunker(ctx context.Context, follow bool, tailLines int) (chunker.Chunker, io.Closer, error)
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 ¶
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) // 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 |
containerd
Package containerd provides support for containerd CRI plugin
|
Package containerd provides support for containerd CRI plugin |
Click to show internal directories.
Click to hide internal directories.