Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { // GetValue queries the backend and returns the raw numerical value of the // requested metric (with the given configuration) for the given nodes // at this point in time. GetValue(metric string, configuration map[string]string, nodeSelector map[string]string) (float64, error) }
A Backend is used to interface with a metrics backend.
type RegistryInterface ¶
type RegistryInterface interface { Get(name string) (Backend, error) Delete(name string) Put(name string, backend Backend) }
RegistryInterface is an interface to a Backend registry. See function comments for implementation limitations.
func Registry ¶
func Registry() RegistryInterface
Registry provides an interface to the single Backend registry.
Click to show internal directories.
Click to hide internal directories.