supervisor

package
v24.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

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 WithLogLevel

func WithLogLevel(lvl string) DaemonOpt

WithLogLevel defines which log level to start containerd with.

func WithOOMScore deprecated

func WithOOMScore(score int) DaemonOpt

WithOOMScore defines the oom_score_adj to set for the containerd process.

Deprecated: setting the oom-score-adjust from the daemon itself is deprecated, and should be handled by the process-manager starting the daemon instead.

Jump to

Keyboard shortcuts

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