system

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 EventFilter

type EventFilter func(*EventOut) bool

EventFilter for filtering events

type EventOut

type EventOut struct {
	Timestamp time.Time
	ID        string
	Namespace string
	Topic     string
	Status    Status
	Event     string
}

EventOut contains information about an event.

type Status

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

func TopicToStatus

func TopicToStatus(topic string) Status

Jump to

Keyboard shortcuts

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