containerd

package
v0.18.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace  string
	Client     *containerd.Client
	Log        logr.Logger
	SocketPath string
}

func NewConfig

func NewConfig(log logr.Logger, opts ...Opt) (*Config, error)

func (*Config) Execute

func (c *Config) Execute(ctx context.Context, a spec.Action) error

type Opt

type Opt func(*Config)

func WithClient

func WithClient(client *containerd.Client) Opt

func WithNamespace

func WithNamespace(namespace string) Opt

func WithSocketPath

func WithSocketPath(socketPath string) Opt

Jump to

Keyboard shortcuts

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