Documentation
¶
Index ¶
- Constants
- Variables
- func CloseConnections() error
- func IsContainerRuntimeSupported(runtime string) bool
- func SplitContainerRuntimeID(input ContainerName) (ContainerName, ContainerID, error)
- func UserDevToKernelDev(userdev uint64) uint32
- type ContainerData
- type ContainerID
- type ContainerName
- type Containerd
- type Dev
- type Ino
- type Pid
- type Runtime
Constants ¶
View Source
const ( // The mountpoint inside the operator's container of the node's // procfs ProcMountpoint = "/host/proc" // If the node is a container (for example, this happens with // clusters created with Kind), the actual host's procfs is assumed // to be mounted here RealHostProcMountpoint = "/host/real/proc" )
View Source
const ( MINORBITS = 20 MINORMASK = (1 << MINORBITS) - 1 )
Variables ¶
Functions ¶
func CloseConnections ¶
func CloseConnections() error
func SplitContainerRuntimeID ¶
func SplitContainerRuntimeID(input ContainerName) (ContainerName, ContainerID, error)
func UserDevToKernelDev ¶
Types ¶
type ContainerData ¶
type ContainerData struct { Ino Ino DevID Dev ID string Name ContainerName // If true, ContainerData should be requested again later ShouldRequeue bool // False if an inode was not found, used for improved error messages IsFound bool }
func GetContainerData ¶
func GetContainerData(ctx context.Context, containerStatus corev1.ContainerStatus, kiveTrap kivev2alpha1.KiveTrap) (ContainerData, error)
type ContainerID ¶
type ContainerID = string
type ContainerName ¶
type ContainerName = string
type Containerd ¶
type Containerd struct { Client *containerd.Client // contains filtered or unexported fields }
func (*Containerd) Disconnect ¶
func (self *Containerd) Disconnect() error
func (*Containerd) GetContainerData ¶
func (self *Containerd) GetContainerData(ctx context.Context, id string, kiveTrap kivev2alpha1.KiveTrap) (ContainerData, error)
func (*Containerd) IsConnected ¶
func (self *Containerd) IsConnected() bool
type Runtime ¶
type Runtime interface { IsConnected() bool Connect(ctx context.Context) error Disconnect() error GetContainerData(ctx context.Context, id ContainerID, kiveTrap kivev2alpha1.KiveTrap) (ContainerData, error) }
Click to show internal directories.
Click to hide internal directories.