runtime

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Index

Constants

View Source
const Type pluginType = "runtime"

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(impl ContainerRuntime) api.RuntimePluginServer

Types

type ContainerRuntime

type ContainerRuntime interface {
	dodo.Plugin

	ResolveImage(string) (string, error)
	CreateContainer(*api.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)

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