types

package
v2.0.0-beta.0...-3bc1883 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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 BuildStoreFunc

type BuildStoreFunc func(metricFamilies []generator.FamilyGenerator,
	expectedType interface{},
	listWatchFunc func(kubeClient clientset.Interface, ns string) cache.ListerWatcher,
) cache.Store

BuildStoreFunc function signature that is use to returns a cache.Store

type BuilderInterface

type BuilderInterface interface {
	WithMetrics(r prometheus.Registerer)
	WithEnabledResources(c []string) error
	WithNamespaces(n options.NamespaceList)
	WithSharding(shard int32, totalShards int)
	WithContext(ctx context.Context)
	WithKubeClient(c clientset.Interface)
	WithVPAClient(c vpaclientset.Interface)
	WithAllowDenyList(l AllowDenyLister)
	WithGenerateStoreFunc(f BuildStoreFunc)
	DefaultGenerateStoreFunc() BuildStoreFunc
	Build() []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