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 NewGRPCClient ¶
func NewGRPCClient(conn grpc.ClientConnInterface) ContainerRuntime
Click to show internal directories.
Click to hide internal directories.