mapper

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMapper

type IMapper struct{}

func NewIMapper

func NewIMapper() *IMapper

func (IMapper) GetAnnotationOrDefault

func (m IMapper) GetAnnotationOrDefault(annotations map[string]string, key, defaultValue string) string

func (IMapper) GetFloatAnnotationOrDefault

func (m IMapper) GetFloatAnnotationOrDefault(annotations map[string]string, key string, defaultValue float64) float64

func (IMapper) GetPriorityFromAnnotation

func (m IMapper) GetPriorityFromAnnotation(annotations map[string]string) ultron.PriorityEnum

func (IMapper) MapNodeToWeightedNode

func (m IMapper) MapNodeToWeightedNode(node *corev1.Node) (ultron.WeightedNode, error)

func (IMapper) MapPodToWeightedPod

func (m IMapper) MapPodToWeightedPod(pod *corev1.Pod) (ultron.WeightedPod, error)

type Mapper

type Mapper interface {
	MapPodToWeightedPod(pod *corev1.Pod) (ultron.WeightedPod, error)
	MapNodeToWeightedNode(node *corev1.Node) (ultron.WeightedNode, error)
}

Jump to

Keyboard shortcuts

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