cri

package
v0.3.325 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cri resolves trace claims through a private, deadline-bound local CRI connection, independently of node-agent's host namespace enrichment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inventory

type Inventory struct {
	// contains filtered or unexported fields
}

func New

func New(endpoint, handler string) (*Inventory, error)

New connects only to a local Unix socket. No TCP endpoint or runsc control root is accessed. The operator must configure handler to select runsc.

func (*Inventory) Check

func (i *Inventory) Check(ctx context.Context) error

func (*Inventory) Close

func (i *Inventory) Close() error

func (*Inventory) Resolve

func (i *Inventory) Resolve(ctx context.Context, id string) (gvisor.Identity, error)

Resolve verifies a start claim: the container must be CREATED or RUNNING in a READY sandbox.

func (*Inventory) ResolveTerminal added in v0.3.325

func (i *Inventory) ResolveTerminal(ctx context.Context, id string) (gvisor.Identity, error)

ResolveTerminal verifies a stop. The Sentry reports a termination a few milliseconds before CRI does, so the container may be RUNNING or already EXITED, and its sandbox may be NOTREADY when the whole Pod is stopping. Every other check is the same as for a start.

Jump to

Keyboard shortcuts

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