client

package
v0.0.0-...-aa10f78 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

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

NewClient returns a new containerd client that communicates over the unix socket at the given path.

Interesting note: there is no remote client for containerd. The debate is around security.

func WithNamespace

func WithNamespace(ctx context.Context, namespace string) context.Context

WithNamespace returns a new context with the given namespace. Context is used by containerd to pass around optional information.

The namespace is used to isolate resources.

You can use "well-known" namespaces like "docker" or "k8s.io" expose containers to other tools.

Types

This section is empty.

Jump to

Keyboard shortcuts

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