installer

package
v0.0.0-...-cd71283 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventsAPIGroupVersion

type EventsAPIGroupVersion struct {
	DynamicStorage rest.Storage

	*endpoints.APIGroupVersion
}

EventsAPIGroupVersion is similar to "k8s.io/apiserver/pkg/endpoints".APIGroupVersion, except that it installs the metrics REST handlers, which use wildcard resources and subresources.

This basically only serves the limitted use case required by the metrics API server -- the only verb accepted is GET (and perhaps WATCH in the future).

func (*EventsAPIGroupVersion) InstallREST

func (g *EventsAPIGroupVersion) InstallREST(container *restful.Container) error

InstallREST registers the dynamic REST handlers into a restful Container. It is expected that the provided path root prefix will serve all operations. Root MUST NOT end in a slash. It should mirror InstallREST in the plain APIGroupVersion.

type EventsAPIInstaller

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

EventsAPIInstaller is a specialized API installer for the metrics API. It is intended to be fully compliant with the Kubernetes API server conventions, but serves wildcard resource/subresource routes instead of hard-coded resources and subresources.

func (*EventsAPIInstaller) Install

func (a *EventsAPIInstaller) Install(ws *restful.WebService) (errors []error)

Install installs handlers for API resources.

func (*EventsAPIInstaller) NewWebService

func (a *EventsAPIInstaller) NewWebService() *restful.WebService

NewWebService creates a new restful webservice with the api installer's prefix and version.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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