Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowDenyLister ¶
AllowDenyLister interface for AllowDeny lister that can allow or exclude metrics by there names
type BuildCustomResourceStoresFunc ¶ added in v2.4.0
type BuildCustomResourceStoresFunc func(resourceName string, metricFamilies []generator.FamilyGenerator, expectedType interface{}, listWatchFunc func(customResourceClient interface{}, ns string, fieldSelector string) cache.ListerWatcher, useAPIServerCache bool, ) []cache.Store
BuildCustomResourceStoresFunc function signature that is used to return a list of custom resource cache.Store
type BuildStoresFunc ¶ added in v2.1.1
type BuildStoresFunc func(metricFamilies []generator.FamilyGenerator, expectedType interface{}, listWatchFunc func(kubeClient clientset.Interface, ns string, fieldSelector string) cache.ListerWatcher, useAPIServerCache bool, ) []cache.Store
BuildStoresFunc function signature that is used to return a list of cache.Store
type BuilderInterface ¶
type BuilderInterface interface { WithMetrics(r prometheus.Registerer) WithEnabledResources(c []string) error WithNamespaces(n options.NamespaceList, nsFilter string) WithSharding(shard int32, totalShards int) WithContext(ctx context.Context) WithKubeClient(c clientset.Interface) WithVPAClient(c vpaclientset.Interface) WithCustomResourceClients(cs map[string]interface{}) WithUsingAPIServerCache(u bool) WithFamilyGeneratorFilter(l generator.FamilyGeneratorFilter) WithAllowAnnotations(a map[string][]string) WithAllowLabels(l map[string][]string) WithGenerateStoresFunc(f BuildStoresFunc) WithGenerateCustomResourceStoresFunc(f BuildCustomResourceStoresFunc) DefaultGenerateStoresFunc() BuildStoresFunc DefaultGenerateCustomResourceStoresFunc() BuildCustomResourceStoresFunc WithCustomResourceStoreFactories(fs ...customresource.RegistryFactory) Build() []metricsstore.MetricsWriter BuildStores() [][]cache.Store }
BuilderInterface represent all methods that a Builder should implements
Click to show internal directories.
Click to hide internal directories.