containerd

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerRuntimeEndpoint = "unix:///run/containerd/containerd.sock"
View Source
const (
	ContainerdDaemonName = "containerd"
)

Variables

This section is empty.

Functions

func Install

func Install(ctx context.Context, tracker *tracker.Tracker, source Source, containerdSource SourceName) error

func NewContainerdDaemon

func NewContainerdDaemon(daemonManager daemon.DaemonManager, cfg *api.NodeConfig, awsConfig *aws.Config, logger *zap.Logger) daemon.Daemon

func Uninstall

func Uninstall(ctx context.Context, source Source) error

func Upgrade added in v1.0.4

func Upgrade(ctx context.Context, source Source) error

func ValidateContainerdSource

func ValidateContainerdSource(source SourceName) error

func ValidateSystemdUnitFile

func ValidateSystemdUnitFile() error

Types

type Source

type Source interface {
	GetContainerd(version string) artifact.Package
}

Source represents a source that serves a containerd binary.

type SourceName

type SourceName string
const (
	ContainerdSourceNone   SourceName = "none"
	ContainerdSourceDistro SourceName = "distro"
	ContainerdSourceDocker SourceName = "docker"
	// pin containerd to major version 1.x
	ContainerdVersion = "1.*"
)

func GetContainerdSource

func GetContainerdSource(containerdSource string) SourceName

Jump to

Keyboard shortcuts

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