runtime

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 17 Imported by: 3

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(string) (string, error)
	CreateContainer(*core.Backdrop, bool, bool) (string, error)
	StartContainer(string) error
	DeleteContainer(string) error
	ResizeContainer(string, uint32, uint32) error
	KillContainer(string, os.Signal) error
	StreamContainer(string, *dodo.StreamConfig) (*Result, 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