Documentation ¶
Index ¶
- func ConvertURLValuesToV1beta1MetricListOptions(in *url.Values, out *cmv1beta1.MetricListOptions, s conversion.Scope) error
- func ConvertURLValuesToV1beta2MetricListOptions(in *url.Values, out *cmv1beta2.MetricListOptions, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- type CMHandlers
- type EMHandlers
- type MetricsAPIGroupVersion
- type MetricsAPIInstaller
- type MetricsNaming
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertURLValuesToV1beta1MetricListOptions ¶
func ConvertURLValuesToV1beta1MetricListOptions(in *url.Values, out *cmv1beta1.MetricListOptions, s conversion.Scope) error
func ConvertURLValuesToV1beta2MetricListOptions ¶
func ConvertURLValuesToV1beta2MetricListOptions(in *url.Values, out *cmv1beta2.MetricListOptions, s conversion.Scope) error
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme.
Types ¶
type CMHandlers ¶
type CMHandlers struct{}
type EMHandlers ¶
type EMHandlers struct{}
type MetricsAPIGroupVersion ¶
type MetricsAPIGroupVersion struct { DynamicStorage rest.Storage *endpoints.APIGroupVersion ResourceLister discovery.APIResourceLister Handlers apiHandlers }
MetricsAPIGroupVersion 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 (*MetricsAPIGroupVersion) InstallREST ¶
func (g *MetricsAPIGroupVersion) InstallREST(container *restful.Container) error
InstallDynamicREST 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 MetricsAPIInstaller ¶
type MetricsAPIInstaller struct {
// contains filtered or unexported fields
}
MetricsAPIInstaller 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 (*MetricsAPIInstaller) Install ¶
func (a *MetricsAPIInstaller) Install(ws *restful.WebService) (errors []error)
Install installs handlers for External Metrics API resources.
func (*MetricsAPIInstaller) NewWebService ¶
func (a *MetricsAPIInstaller) NewWebService() *restful.WebService
NewWebService creates a new restful webservice with the api installer's prefix and version.
type MetricsNaming ¶
type MetricsNaming struct {
handlers.ContextBasedNaming
}
MetricsNaming is similar to handlers.ContextBasedNaming, except that it handles polymorphism over subresources.