supervisor

package
v20.10.25+incompatible Latest Latest
Warning

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

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

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 WithDebugAddress

func WithDebugAddress(addr string) DaemonOpt

WithDebugAddress defines at which location the debug GRPC connection should be made

func WithLogLevel

func WithLogLevel(lvl string) DaemonOpt

WithLogLevel defines which log level to starts containerd with. This only makes sense if WithStartDaemon() was set to true.

func WithMetricsAddress

func WithMetricsAddress(addr string) DaemonOpt

WithMetricsAddress defines at which location the debug GRPC connection should be made

func WithOOMScore

func WithOOMScore(score int) DaemonOpt

WithOOMScore defines the oom_score_adj to set for the containerd process.

func WithPlugin

func WithPlugin(name string, conf interface{}) DaemonOpt

WithPlugin allow configuring a containerd plugin configuration values passed needs to be quoted if quotes are needed in the toml format.

func WithRemoteAddr

func WithRemoteAddr(addr string) DaemonOpt

WithRemoteAddr sets the external containerd socket to connect to.

func WithRemoteAddrUser

func WithRemoteAddrUser(uid, gid int) DaemonOpt

WithRemoteAddrUser sets the uid and gid to create the RPC address with

Jump to

Keyboard shortcuts

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