supervisor

package
v28.1.0-rc.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	WaitTimeout(time.Duration) error
	Address() string
}

Daemon represents a running containerd daemon

func Start

func Start(ctx context.Context, rootDir, stateDir string, opts ...DaemonOpt) (Daemon, error)

Start starts a containerd daemon and monitors it

type DaemonOpt

type DaemonOpt func(c *remote) error

DaemonOpt allows to configure parameters of container daemons

func WithCRIDisabled

func WithCRIDisabled() DaemonOpt

WithCRIDisabled disables the CRI plugin.

func WithDetectLocalBinary

func WithDetectLocalBinary() DaemonOpt

WithDetectLocalBinary checks if a containerd binary is present in the same directory as the dockerd binary, and overrides the path of the containerd binary to start if found. If no binary is found, no changes are made.

func WithLogFormat

func WithLogFormat(format log.OutputFormat) DaemonOpt

WithLogFormat defines the containerd log format. This only makes sense if WithStartDaemon() was set to true.

func WithLogLevel

func WithLogLevel(lvl string) DaemonOpt

WithLogLevel defines which log level to start containerd with.

Jump to

Keyboard shortcuts

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