containerd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package containerd implements the engine detector for containerd processes.

containerd is differs slightly from the usual in that it can return two watchers, one for containerd's native API and workload, but optionally also another one for the CRI API workload (when CRI is enabled).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct{}

Detector implements the detect.Detector interface. This is automatically type-checked by the previous plugin registration (Generics can be sweet, sometimes *snicker*).

func (*Detector) EngineNames

func (d *Detector) EngineNames() []string

EngineNames returns the process name of the containerd engine process.

func (*Detector) NewWatchers

func (d *Detector) NewWatchers(ctx context.Context, pid model.PIDType, apis []string) []watcher.Watcher

NewWatcher returns a watcher for tracking alive containerd containers.

Jump to

Keyboard shortcuts

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