runtime

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

View Source
const Type pluginType = "runtime"

Variables

View Source
var ErrUnexpectedMapType = errors.New("unexpected map type for stdio streaming server")

Functions

func NewGRPCServer

func NewGRPCServer(impl ContainerRuntime) runtime.PluginServer

Types

type ContainerRuntime

type ContainerRuntime interface {
	dodo.Plugin

	ResolveImage(spec string) (string, error)
	CreateContainer(backdrop *core.Backdrop, tty, stdio bool) (string, error)
	StartContainer(id string) error
	DeleteContainer(id string) error
	ResizeContainer(id string, height, width uint32) error
	KillContainer(id string, signal os.Signal) error
	StreamContainer(id string, streamConfig *dodo.StreamConfig) (*Result, error)
	CreateVolume(name string) error
	DeleteVolume(name string) error
	WriteFile(name, path string, contents []byte) error
}

func GetByName

func GetByName(m plugin.Manager, name string) (ContainerRuntime, error)

func NewGRPCClient

func NewGRPCClient(conn grpc.ClientConnInterface) ContainerRuntime

type Result

type Result struct {
	ExitCode int
}

Jump to

Keyboard shortcuts

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