nodepool

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterNodePoolIdentifier

type ClusterNodePoolIdentifier interface {

	// IsPoolMember identifies whether the node is a member of the node pool.
	// It is the responsibility of the implementation to read the node info if
	// the required information is not within the stub struct.
	IsPoolMember(*api.NodeListStub) bool

	// Key returns the string representation of the pool identifier.
	Key() string

	// Value returns the pool identifier value that nodes are being filtered
	// by.
	Value() string
}

ClusterNodePoolIdentifier is the interface that defines how nodes are classed into pools of resources.

func NewNodeClassPoolIdentifier

func NewNodeClassPoolIdentifier(id string) ClusterNodePoolIdentifier

NewNodeClassPoolIdentifier returns a new nodeClassClusterPoolIdentifier implementation of the ClusterNodePoolIdentifier interface.

Jump to

Keyboard shortcuts

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