runtime

package
v0.0.0-...-4893f5c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDockerRootDirectory is the default directory where runtime drivers will be created.
	DefaultDockerRootDirectory = "/var/lib/docker/runtime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsResponse

type ArgsResponse struct {
	Args []string `json:"args,omitempty"`
}

ArgsResponse is the Args response

type Handler

type Handler struct {
	sdk.Handler
	// contains filtered or unexported fields
}

Handler forwards requests and responses between the docker daemon and the plugin.

func NewHandler

func NewHandler(plugin Plugin) *Handler

NewHandler initializes the request handler with a plugin implementation.

type PathResponse

type PathResponse struct {
	Path string `json:"path,omitempty"`
}

PathResponse is the Path response

type Plugin

type Plugin interface {
	Path() PathResponse
	Args() ArgsResponse
}

Plugin represent the interface a driver must fulfill.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳