cri

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: 3 Imported by: 4

Documentation

Overview

Package cri provides a container Watcher for CRI pod event API-supporting engines.

Usage

import "github.com/thediveo/whalewatcher/watcher/cri"
watcher := cri.NewWatcher("/path/to/CRI-API-endpoint.sock")

Please note that there is no default/standard path for CRI API endpoints; instead, the exact path depends on the specific container engine and/or the particular deployment.

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

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

New returns a Watcher for keeping track of the currently alive containers (including sandbox containers).

Please note that there is no default value for the CRI API socket path, so it must not be the empty string.

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