Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Scheme contains the types needed by the resource metrics API. Scheme = runtime.NewScheme() // Codecs is a codec factory for serving the resource metrics API. Codecs = serializer.NewCodecFactory(Scheme) )
Functions ¶
func BuildStorage ¶
func BuildStorage(providers *ProviderConfig, informers coreinf.Interface) genericapiserver.APIGroupInfo
BuildStorage constructs APIGroupInfo the metrics.k8s.io API group using the given providers.
func InstallStorage ¶
func InstallStorage(providers *ProviderConfig, informers coreinf.Interface, server *genericapiserver.GenericAPIServer) error
InstallStorage builds the storage for the metrics.k8s.io API, and then installs it into the given API server.
Types ¶
type ProviderConfig ¶
type ProviderConfig struct { Node provider.NodeMetricsProvider Pod provider.PodMetricsProvider }
ProviderConfig holds the providers for node and pod metrics for serving the resource metrics API.
Click to show internal directories.
Click to hide internal directories.