Help us shape the future of Go! Take the 2026 Go Developer Survey

containerdexecutor

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 30 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(executorOpts ExecutorOptions) executor.Executor

New creates a new executor backed by connection to containerd API

Types

type ExecutorOptions added in v0.15.0

type ExecutorOptions struct {
	Client           *ctd.Client
	Root             string
	CgroupParent     string
	NetworkProviders map[pb.NetMode]network.Provider
	DNSConfig        *oci.DNSConfig
	ApparmorProfile  string
	Selinux          bool
	TraceSocket      string
	Rootless         bool
	HyperVIsolation  bool
	Runtime          *RuntimeInfo
	CDIManager       *cdidevices.Manager
}

type OnCreateRuntimer added in v0.11.0

type OnCreateRuntimer interface {
	// OnCreateRuntime is analogous to the createRuntime OCI hook. The
	// function is called after the container is created, before the user
	// process has been executed. The argument is the container PID in the
	// runtime namespace.
	OnCreateRuntime(pid uint32) error
}

OnCreateRuntimer provides an alternative to OCI hooks for applying network configuration to a container. If the network.Provider returns a network.Namespace which also implements this interface, the containerd executor will run the callback at the appropriate point in the container lifecycle.

type RuntimeInfo added in v0.13.0

type RuntimeInfo struct {
	Name    string
	Path    string
	Options any
}

Jump to

Keyboard shortcuts

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