Discover Packages
github.com/vutuong/kubernetes
pkg
genericapiserver
routes
package
Version:
v1.5.8
Opens a new window with list of versions in this module.
Published: Sep 30, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Directories Overview Index Constants Variables Functions Types type DefaultMetrics type Index type MetricsWithReset type OpenAPI type Profiling type Swagger type SwaggerUI type Version (m) Install(c) (i) Install(c) (m) Install(c) (oa) Install(c) (d) Install(c) (s) Install(c) (l) Install(c) (v) Install(c)
Documentation
¶
Package routes holds a collection of optional genericapiserver http handlers.
type DefaultMetrics struct {}
DefaultMetrics installs the default prometheus metrics handler
func (m DefaultMetrics) Install(c *mux.APIContainer)
Install adds the DefaultMetrics handler
Index provides a webservice for the http root / listing all known paths.
func (i Index) Install(c *mux.APIContainer)
Install adds the Index webservice to the given mux.
type MetricsWithReset struct {}
MetricsWithReset install the prometheus metrics handler extended with support for the DELETE method
which resets the metrics.
func (m MetricsWithReset) Install(c *mux.APIContainer)
Install adds the MetricsWithReset handler
type OpenAPI struct {
Config *common.Config
}
OpenAPI installs spec endpoints for each web service.
func (oa OpenAPI) Install(c *mux.APIContainer)
Install adds the SwaggerUI webservice to the given mux.
Profiling adds handlers for pprof under /debug/pprof.
func (d Profiling) Install(c *mux.APIContainer)
Install adds the Profiling webservice to the given mux.
type Swagger struct {
ExternalAddress string
}
Swagger installs the /swaggerapi/ endpoint to allow schema discovery
and traversal. It is optional to allow consumers of the Kubernetes GenericAPIServer to
register their own web services into the Kubernetes mux prior to initialization
of swagger, so that other resource types show up in the documentation.
func (s Swagger) Install(c *mux.APIContainer)
Install adds the SwaggerUI webservice to the given mux.
SwaggerUI exposes files in third_party/swagger-ui/ under /swagger-ui.
func (l SwaggerUI) Install(c *mux.APIContainer)
Install adds the SwaggerUI webservice to the given mux.
type Version struct {
Version *version.Info
}
Version provides a webservice with version information.
func (v Version) Install(c *mux.APIContainer)
Install registers the APIServer's `/version` handler.
Source Files
¶
Directories
¶
data
Click to show internal directories.
Click to hide internal directories.