store

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: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder helps to build store. It follows the builder pattern (https://en.wikipedia.org/wiki/Builder_pattern).

func NewBuilder

func NewBuilder() *Builder

NewBuilder returns a new builder.

func (*Builder) Build

func (b *Builder) Build() []cache.Store

Build initializes and registers all enabled stores.

func (*Builder) DefaultGenerateStoreFunc

func (b *Builder) DefaultGenerateStoreFunc() ksmtypes.BuildStoreFunc

DefaultGenerateStoreFunc returns default buildStore function

func (*Builder) WithAllowDenyList

func (b *Builder) WithAllowDenyList(l ksmtypes.AllowDenyLister)

WithAllowDenyList configures the allow or denylisted metric to be exposed by the store build by the Builder.

func (*Builder) WithAllowLabels

func (b *Builder) WithAllowLabels(labels map[string][]string)

WithAllowLabels configures which labels can be returned for metrics

func (*Builder) WithContext

func (b *Builder) WithContext(ctx context.Context)

WithContext sets the ctx property of a Builder.

func (*Builder) WithEnabledResources

func (b *Builder) WithEnabledResources(r []string) error

WithEnabledResources sets the enabledResources property of a Builder.

func (*Builder) WithGenerateStoreFunc

func (b *Builder) WithGenerateStoreFunc(f ksmtypes.BuildStoreFunc)

WithGenerateStoreFunc configures a custom generate store function

func (*Builder) WithKubeClient

func (b *Builder) WithKubeClient(c clientset.Interface)

WithKubeClient sets the kubeClient property of a Builder.

func (*Builder) WithMetrics

func (b *Builder) WithMetrics(r prometheus.Registerer)

WithMetrics sets the metrics property of a Builder.

func (*Builder) WithNamespaces

func (b *Builder) WithNamespaces(n options.NamespaceList)

WithNamespaces sets the namespaces property of a Builder.

func (*Builder) WithSharding

func (b *Builder) WithSharding(shard int32, totalShards int)

WithSharding sets the shard and totalShards property of a Builder.

func (*Builder) WithVPAClient

func (b *Builder) WithVPAClient(c vpaclientset.Interface)

WithVPAClient sets the vpaClient property of a Builder so that the verticalpodautoscaler collector can query VPA objects.

Jump to

Keyboard shortcuts

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