Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶
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.
Click to show internal directories.
Click to hide internal directories.