podcounter

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const Annotation = "ThunderingHerdScheduling/Count"

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func (Counter) CurrentCounter

func (c Counter) CurrentCounter(pod *v1.Pod) int

func (Counter) IncrementCounter

func (c Counter) IncrementCounter(pod *v1.Pod) (int, error)

func (Counter) SetCounter

func (c Counter) SetCounter(pod *v1.Pod, val int) error

type PodCounterInterface

type PodCounterInterface interface {
	CurrentCounter(pod *v1.Pod) int
	IncrementCounter(pod *v1.Pod) (int, error)
	SetCounter(pod *v1.Pod, val int) error
}

Jump to

Keyboard shortcuts

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