engine

package
v2.0.0-...-345fa11 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreatePVCListWatch

func CreatePVCListWatch(kubeClient clientset.Interface) func(string) cache.ListerWatcher

func CreatePodListWatch

func CreatePodListWatch(kubeClient clientset.Interface) func(string) cache.ListerWatcher

func CreateServiceListWatch

func CreateServiceListWatch(kubeClient clientset.Interface) func(string) cache.ListerWatcher

Types

type Engine

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

func NewEngine

func NewEngine(ctx context.Context, namespaces types.Namespaces, scheme *runtime.Scheme, restConfig *rest.Config, clientOptions managers.ClientOptions, log logr.Logger, prometheusData *metrics.PrometheusData, statusFlushDuration processors.StatusFlushDuration) (*Engine, error)

func ProvideEngine

func ProvideEngine(
	log logr.Logger,
	runnables Runnables,
) *Engine

func (*Engine) Start

func (e *Engine) Start(ctx context.Context) error

func (*Engine) Stop

func (e *Engine) Stop()

type ListerRunnable

type ListerRunnable struct {
	Store cache.Store
	// contains filtered or unexported fields
}

func (*ListerRunnable) Start

func (p *ListerRunnable) Start(ctx context.Context) error

func (*ListerRunnable) Stop

func (p *ListerRunnable) Stop()

type MeterDefinitionListerRunnable

type MeterDefinitionListerRunnable struct {
	ListerRunnable
}

type MeterDefinitionStoreListWatchers

type MeterDefinitionStoreListWatchers ListWatchers

type MeterDefinitionStoreRunnable

type MeterDefinitionStoreRunnable struct {
	StoreRunnable
}

type NamespacedCachedListers

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

func ProvideNamespacedCacheListers

func ProvideNamespacedCacheListers(
	ns *filter.NamespaceWatcher,
	log logr.Logger,
	listWatchers ListWatchers,
) *NamespacedCachedListers

func (*NamespacedCachedListers) Start

type NamespacedListWatcherFunc

type NamespacedListWatcherFunc func(ns string) RunAndStop

type PVCListerRunnable

type PVCListerRunnable struct {
	ListerRunnable
}

type PodListerRunnable

type PodListerRunnable struct {
	ListerRunnable
}

type RunAndStop

type RunAndStop interface {
	Runnable
	Stoppable
}

type Runnable

type Runnable interface {
	// Start starts the runnable and does not block.
	Start(context.Context) error
}

type Runnables

type Runnables []Runnable

func ProvideRunnables

func ProvideRunnables(
	meterDefinitionStore *MeterDefinitionStoreRunnable,
	meterDefinitionDictionary *MeterDefinitionDictionaryStoreRunnable,
	mb *mailbox.Mailbox,
	statusProcessor *processors.StatusProcessor,

	prometheusProcessor *processors.PrometheusProcessor,
	prometheusMdefProcessor *processors.PrometheusMdefProcessor,
	removalWatcher *processors.MeterDefinitionRemovalWatcher,
	objectChannelProducer *mailbox.ObjectChannelProducer,
	mdefChannelProducer *mailbox.MeterDefinitionChannelProducer,
	nsWatcher *filter.NamespaceWatcher,
) Runnables
type Recoverable interface {
	RegisterHealthCheck(func([]*health.Config))
	Recover()
}

type ServiceListerRunnable

type ServiceListerRunnable struct {
	ListerRunnable
}

type ServiceMonitorListerRunnable

type ServiceMonitorListerRunnable struct {
	ListerRunnable
}

type Stoppable

type Stoppable interface {
	Stop()
}

type StoreRunnable

type StoreRunnable struct {
	Store      cache.Store
	Reflectors Runnables
	ResyncTime time.Duration
	// contains filtered or unexported fields
}

func (*StoreRunnable) Start

func (p *StoreRunnable) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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