node

package
v0.3.69-rc-bc24baa Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesNodeInfoService

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

func NewKubernetesNodeInfoService

func NewKubernetesNodeInfoService(clusterContext context.ClusterContext, toleratedTaints []string) *KubernetesNodeInfoService

func (*KubernetesNodeInfoService) GetAllAvailableProcessingNodes

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetAllAvailableProcessingNodes() ([]*v1.Node, error)

func (*KubernetesNodeInfoService) GetAllNodes

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetAllNodes() ([]*v1.Node, error)

func (*KubernetesNodeInfoService) GetType

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GetType(node *v1.Node) *api.NodeTypeIdentifier

func (*KubernetesNodeInfoService) GroupNodesByType

func (kubernetesNodeInfoService *KubernetesNodeInfoService) GroupNodesByType(nodes []*v1.Node) []*NodeGroup

func (*KubernetesNodeInfoService) IsAvailableProcessingNode added in v0.3.65

func (kubernetesNodeInfoService *KubernetesNodeInfoService) IsAvailableProcessingNode(node *v1.Node) bool

type NodeGroup

type NodeGroup struct {
	NodeType *api.NodeTypeIdentifier
	Nodes    []*v1.Node
}

type NodeInfoService

type NodeInfoService interface {
	IsAvailableProcessingNode(*v1.Node) bool
	GetAllAvailableProcessingNodes() ([]*v1.Node, error)
	GetAllNodes() ([]*v1.Node, error)
	GroupNodesByType(nodes []*v1.Node) []*NodeGroup
	GetType(node *v1.Node) *api.NodeTypeIdentifier
}

Jump to

Keyboard shortcuts

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