Documentation
¶
Index ¶
- type IMapper
- func (m IMapper) GetAnnotationOrDefault(annotations map[string]string, key, defaultValue string) string
- func (m IMapper) GetFloatAnnotationOrDefault(annotations map[string]string, key string, defaultValue float64) float64
- func (m IMapper) GetPriorityFromAnnotation(annotations map[string]string) ultron.PriorityEnum
- func (m IMapper) MapNodeToWeightedNode(node *corev1.Node) (ultron.WeightedNode, error)
- func (m IMapper) MapPodToWeightedPod(pod *corev1.Pod) (ultron.WeightedPod, error)
- type Mapper
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 (IMapper) GetFloatAnnotationOrDefault ¶
func (IMapper) GetPriorityFromAnnotation ¶
func (m IMapper) GetPriorityFromAnnotation(annotations map[string]string) ultron.PriorityEnum
func (IMapper) MapNodeToWeightedNode ¶
func (IMapper) MapPodToWeightedPod ¶
Click to show internal directories.
Click to hide internal directories.