middleware

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugRequestMiddleware

func DebugRequestMiddleware(handler httputils.APIFunc) httputils.APIFunc

DebugRequestMiddleware dumps the request to logger

Types

type Middleware

type Middleware func(handler httputils.APIFunc) httputils.APIFunc

Middleware is an adapter to allow the use of ordinary functions as Docker API filters. Any function that has the appropriate signature can be registered as a middleware.

func NewAuthorizationMiddleware

func NewAuthorizationMiddleware(plugins []authorization.Plugin) Middleware

NewAuthorizationMiddleware creates a new Authorization middleware.

func NewCORSMiddleware

func NewCORSMiddleware(defaultHeaders string) Middleware

NewCORSMiddleware creates a new CORS middleware.

func NewUserAgentMiddleware

func NewUserAgentMiddleware(versionCheck string) Middleware

NewUserAgentMiddleware creates a new UserAgent middleware.

func NewVersionMiddleware

func NewVersionMiddleware(versionCheck string, defaultVersion, minVersion version.Version) Middleware

NewVersionMiddleware creates a new Version middleware.

Jump to

Keyboard shortcuts

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