generic

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 10 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) genericapiserver.APIGroupInfo

BuildStorage constructs APIGroupInfo the metrics.k8s.io API group using the given providers.

func InstallStorage

func InstallStorage(providers *ProviderConfig, 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 {
	Provider provider.PackageManifestProvider
}

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