system

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Df added in v2.4.0

func Df(ctx context.Context, client *containerd.Client, options types.SystemDfOptions) error

Df shows how much disk space containerd uses for the images, containers and volumes of the current namespace, plus the BuildKit build cache.

func DiskUsage added in v2.4.0

func DiskUsage(ctx context.Context, client *containerd.Client, options types.SystemDfOptions) (types.DiskUsage, error)

DiskUsage collects the disk usage of every kind of resource nerdctl manages.

func Info

func Info(ctx context.Context, client *containerd.Client, options types.SystemInfoOptions) error

func Prune

func Prune(ctx context.Context, client *containerd.Client, options types.SystemPruneOptions) error

Prune will remove all unused containers, networks, images (dangling only or both dangling and unreferenced), and optionally, volumes.

Types

type Action added in v2.4.0

type Action string
const (
	START   Action = "start"
	UNKNOWN Action = "unknown"
)

func TopicToAction added in v2.4.0

func TopicToAction(topic string) Action

type EventFilter

type EventFilter func(*EventOut) bool

EventFilter for filtering events

type EventOut

type EventOut struct {
	Timestamp time.Time
	ID        string
	Namespace string
	Topic     string
	Action    Action
	Event     string
	Labels    map[string]string
}

EventOut contains information about an event.

Jump to

Keyboard shortcuts

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