types

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowDenyLister

type AllowDenyLister interface {
	IsIncluded(string) bool
	IsExcluded(string) bool
}

AllowDenyLister interface for AllowDeny lister that can allow or exclude metrics by there names

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)
	WithFamilyGeneratorFilter(l generator.FamilyGeneratorFilter)
	WithAllowLabels(l map[string][]string)
	WithGenerateStoresFunc(f BuildStoresFunc, useAPIServerCache bool)
	DefaultGenerateStoresFunc() BuildStoresFunc
	Build() []metricsstore.MetricsWriter
	BuildStores() [][]cache.Store
}

BuilderInterface represent all methods that a Builder should implements

Jump to

Keyboard shortcuts

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