runtime

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Overview

Package runtime defines the execution capabilities of a container runtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execution

type Execution interface {
	Attach(ctx context.Context) error
	Wait(ctx context.Context) (int, error)
	Close(ctx context.Context) error
}

Execution representes a running container execution instance.

type Runtime

type Runtime interface {
	// image lifecycle
	EnsureImage(ctx context.Context, ref domain.ImageRef) error
	RemoveImage(ctx context.Context, ref domain.ImageRef) error
	ListImage(ctx context.Context) ([]domain.ImageInfo, error)

	Create(ctx context.Context, spec domain.ContainerSpec) (domain.ContainerID, error)
	Start(ctx context.Context, id domain.ContainerID) error
	Stop(ctx context.Context, id domain.ContainerID) error
	Remove(ctx context.Context, id domain.ContainerID) error

	Exec(id domain.ContainerID) (Execution, error)
}

Runtime defines the abstract capabilities of a container runtime.

Directories

Path Synopsis
Package docker - docker impl package for runtime
Package docker - docker impl package for runtime

Jump to

Keyboard shortcuts

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