container

package
v1.7.1-alpha.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package container provides helper tools to inspect container information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	ContainerID  string
	PIDNamespace uint32
}

Info that we need to keep from a container: its ContainerID in Kubernetes and the PIDNamespace of its processes. Many containers in the same pod will have different ContainerID but the same PIDNamespace

func InfoForPID

func InfoForPID(pid uint32) (Info, error)

InfoForPID returns the container ID and PID namespace for the given PID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL