throttle

package
v0.0.0-...-44f2bf6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Components

type Components interface {
	ArangoClusterSynchronization() Throttle
	ArangoMember() Throttle
	ArangoTask() Throttle
	ArangoRoute() Throttle
	ArangoProfile() Throttle
	ArangoPlatformStorage() Throttle
	Node() Throttle
	PersistentVolume() Throttle
	PersistentVolumeClaim() Throttle
	Pod() Throttle
	PodDisruptionBudget() Throttle
	Secret() Throttle
	ConfigMap() Throttle
	Service() Throttle
	ServiceAccount() Throttle
	ServiceMonitor() Throttle
	Endpoints() Throttle

	Get(c definitions.Component) Throttle
	Invalidate(components ...definitions.Component)

	Counts() definitions.ComponentCount
	Copy() Components
}

func NewAlwaysThrottleComponents

func NewAlwaysThrottleComponents() Components

func NewThrottleComponents

func NewThrottleComponents(acs, am, at, ar, ap, aps, node, pvc, pod, pv, pdb, secret, cm, service, serviceAccount, sm, endpoints time.Duration) Components

type Inspector

type Inspector interface {
	GetThrottles() Components
}

type Throttle

type Throttle interface {
	Invalidate()
	Throttle() bool
	Delay()

	Copy() Throttle

	Count() int
}

func NewAlwaysThrottle

func NewAlwaysThrottle() Throttle

func NewThrottle

func NewThrottle(delay time.Duration) Throttle

Jump to

Keyboard shortcuts

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