Documentation
¶
Index ¶
- func CreateCustomResourceClients(apiserver string, kubeconfig string, ...) (map[string]interface{}, error)
- func CreateDiscoveryClient(apiserver string, kubeconfig string) (*discovery.DiscoveryClient, error)
- func CreateKubeClient(apiserver string, kubeconfig string) (clientset.Interface, error)
- func GVRFromType(resourceName string, expectedType interface{}) *schema.GroupVersionResource
- func GatherAndCount(g prometheus.Gatherer) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCustomResourceClients ¶
func CreateCustomResourceClients(apiserver string, kubeconfig string, factories ...customresource.RegistryFactory) (map[string]interface{}, error)
CreateCustomResourceClients creates a custom resource clientset.
func CreateDiscoveryClient ¶
func CreateDiscoveryClient(apiserver string, kubeconfig string) (*discovery.DiscoveryClient, error)
CreateDiscoveryClient creates a Kubernetes discovery client.
func CreateKubeClient ¶
CreateKubeClient creates a Kubernetes clientset and a custom resource clientset.
func GVRFromType ¶
func GVRFromType(resourceName string, expectedType interface{}) *schema.GroupVersionResource
GVRFromType returns the GroupVersionResource for a given type.
func GatherAndCount ¶ added in v2.13.0
func GatherAndCount(g prometheus.Gatherer) (int, error)
GatherAndCount gathers all metrics from the provided Gatherer and counts them. It returns the number of metric children in all gathered metric families together.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.