previouscandidates

package
v0.0.0-...-30e57c9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreviousCandidates

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

PreviousCandidates is a struct that store scale down candidates from previous loop.

func NewPreviousCandidates

func NewPreviousCandidates() *PreviousCandidates

NewPreviousCandidates return empty PreviousCandidates struct.

func (*PreviousCandidates) ScaleDownEarlierThan

func (p *PreviousCandidates) ScaleDownEarlierThan(node1, node2 *apiv1.Node) bool

ScaleDownEarlierThan return true if node1 is in candidate list and node2 isn't.

func (*PreviousCandidates) UpdateScaleDownCandidates

func (p *PreviousCandidates) UpdateScaleDownCandidates(nodes []*apiv1.Node, now time.Time)

UpdateScaleDownCandidates updates scale down candidates.

Jump to

Keyboard shortcuts

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