features

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNodeSupportNetworkQoS

func CheckNodeSupportNetworkQoS() error

func IsUnsupportedError

func IsUnsupportedError(err error) bool

Types

type Feature

type Feature string
const (
	CPUQoSFeature           Feature = "CPUQoS"
	CPUBurstFeature         Feature = "CPUBurst"
	MemoryQoSFeature        Feature = "MemoryQoS"
	NetworkQoSFeature       Feature = "NetworkQoS"
	OverSubscriptionFeature Feature = "OverSubscription"
	EvictionFeature         Feature = "Eviction"
	ResourcesFeature        Feature = "Resources"
)

type FeatureGate

type FeatureGate interface {
	// Enabled returns true if the key is enabled.
	Enabled(key Feature, c *api.ColocationConfig) (bool, error)
	// Supported returns nil if the key is supported, return error with the reason why not supported
	Supported(key Feature, cfg *config.Configuration) error
}

FeatureGate indicates whether a given feature is enabled or not

var (
	// DefaultFeatureGate is a shared global FeatureGate.
	DefaultFeatureGate FeatureGate = &featureGate{}
)

type UnsupportedError

type UnsupportedError string

func (UnsupportedError) Error

func (s UnsupportedError) Error() string

Jump to

Keyboard shortcuts

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