containerd

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Overview

Package containerd provides a container Watcher for containerd engines.

Usage

import "github.com/thediveo/whalewatcher/watcher/containerd"
watcher := containerd.NewWatcher("")

The watcher constructor accepts options, with currently the only option being specifying a container engine's PID. The PID information then can be used downstream in tools like lxkns to translate container PIDs between different PID namespaces.

Index

Constants

Type ID of the container engine handled by this watcher.

Variables

This section is empty.

Functions

func New added in v0.4.0

func New(containerdsock string, buggeroff backoff.BackOff, opts ...engineclient.NewOption) (watcher.Watcher, error)

New returns a Watcher for keeping track of the currently alive containers, optionally with the (nerdctl) composer projects they're associated with.

When the containerdsock parameter is left empty then containerd's default "/run/containerd/containerd.sock" applies.

If the backoff is nil then the backoff defaults to backoff.StopBackOff, that is, any failed operation will never be retried.

Finally, containerd engine client-specific options can be passed in.

Types

This section is empty.

Jump to

Keyboard shortcuts

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