generic

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

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