containerd

package
v1.137.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*containerd.Client, error)

NewClient returns a new client to connect to containerd

func VersionGreaterThanEqual22

func VersionGreaterThanEqual22(ctx context.Context, client Client) (bool, error)

VersionGreaterThanEqual22 checks if the running containerd version is greater or equal to 2.2

Types

type Client

type Client interface {
	Version(context.Context) (containerd.Version, error)
}

Client defines the containerd client Interface exported for testing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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