server

package
v0.0.0-...-585c797 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2015 License: Apache-2.0 Imports: 13 Imported by: 0

README

package apiserver

Package apiserver defines the REST endpoints for volume drivers.

The endpoints defined by the docker volume plugins API is a subset of the exposed REST endpoints.

Documentation

Index

Constants

View Source
const (
	// VolumeDriver is the string returned in the handshake protocol.
	VolumeDriver = "VolumeDriver"
)

Variables

This section is empty.

Functions

func StartPluginAPI

func StartPluginAPI(name string, pluginBase string) error

StartPluginAPI starts a REST server to receive volume commands from the Linux container engine.

func StartServerAPI

func StartServerAPI(name string, port int, restBase string) error

StartServerAPI starts a REST server to receive driver configuration commands from the CLI/UX.

Types

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is a specification and handler for a REST endpoint.

Jump to

Keyboard shortcuts

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