containerd

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	LoadContainer(ctx context.Context, id string) (containerd.Container, error)
}

type Runtime

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

Runtime represents a connection to the containerd runtime

func NewContainerdRuntime

func NewContainerdRuntime(socketPath string, timeout time.Duration) (*Runtime, error)

NewContainerdRuntime connects to the containerd runtime over the specified `socketPath`

func (*Runtime) NetNS

func (cd *Runtime) NetNS(containerID string) (string, error)

NetNS returns the netns path of a given container

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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