edgescoring

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "EdgeScoring"

Variables

This section is empty.

Functions

Types

type EdgeMetric

type EdgeMetric struct {
	CPUCurrent float64
	CPUFuture  float64
	MemCurrent float64
	MemFuture  float64
}

type EdgeScoring

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

func (*EdgeScoring) Name

func (s *EdgeScoring) Name() string

func (*EdgeScoring) NormalizeScore

func (s *EdgeScoring) NormalizeScore(
	ctx context.Context,
	state *framework.CycleState,
	pod *v1.Pod,
	scores framework.NodeScoreList,
) *framework.Status

func (*EdgeScoring) Score

func (s *EdgeScoring) Score(ctx context.Context, state *framework.CycleState, p *v1.Pod, nodeName string) (int64, *framework.Status)

func (*EdgeScoring) ScoreExtensions

func (s *EdgeScoring) ScoreExtensions() framework.ScoreExtensions

type EdgeScoringConnector

type EdgeScoringConnector struct {
	Targets map[string]config.EdgeScoringTarget
}

func NewEdgeScoringConnector

func NewEdgeScoringConnector(targets []config.EdgeScoringTarget) *EdgeScoringConnector

func (*EdgeScoringConnector) GetEdgeMetric

func (s *EdgeScoringConnector) GetEdgeMetric(nodeName string) (EdgeMetric, error)

Jump to

Keyboard shortcuts

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