server

package
v0.0.0-...-6e535ca Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0 Imports: 18 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 (
	// GraphDriver is the string returned in the handshake protocol.
	GraphDriver = "GraphDriver"
)
View Source
const (
	// VolumeDriver is the string returned in the handshake protocol.
	VolumeDriver = "VolumeDriver"
)

Variables

This section is empty.

Functions

func StartGraphAPI

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

StartGraphAPI starts a REST server to receive GraphDriver commands

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