commonstate

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlKnobInfo

type ControlKnobInfo struct {
	ControlKnobValue string `json:"control_knob_value"`

	// for control knobs applied by cgroup manager
	// according to entryName, subEntryName, cgroupIfaceName and cgroupSubsysName
	CgroupVersionToIfaceName map[string]string `json:"cgroup_version_to_iface_name"`
	CgroupSubsysName         string            `json:"cgroup_subsys_name"`

	// for control knobs applied by QRM framework according to ociPropertyName
	OciPropertyName string `json:"oci_property_name"`
}

ControlKnobInfo shows common types of control knobs: 1. applied by cgroup manager according to entryName, subEntryName, cgroupIfaceName and cgroupSubsysName 2. applied by QRM framework according to ociPropertyName

there may be new types of control knobs, we won't modified this struct to identify them, and we will register custom per-control-knob executor to deal with them.

func (ControlKnobInfo) Clone

func (cki ControlKnobInfo) Clone() ControlKnobInfo

type ExtraControlKnobConfig

type ExtraControlKnobConfig struct {
	PodExplicitlyAnnotationKey string            `json:"pod_explicitly_annotation_key"`
	QoSLevelToDefaultValue     map[string]string `json:"qos_level_to_default_value"`
	ControlKnobInfo            `json:"control_knob_info"`
}

type ExtraControlKnobConfigs

type ExtraControlKnobConfigs map[string]ExtraControlKnobConfig

func LoadExtraControlKnobConfigs

func LoadExtraControlKnobConfigs(extraControlKnobConfigAbsPath string) (ExtraControlKnobConfigs, error)

Jump to

Keyboard shortcuts

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