rdt

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultRdtConfigFile is the default value for RDT config file path
	DefaultRdtConfigFile = ""
	// ResctrlPrefix is the prefix used for class/closid directories under the resctrl filesystem
	ResctrlPrefix = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New() *Config

New creates a new RDT config instance

func (*Config) ContainerClassFromAnnotations

func (c *Config) ContainerClassFromAnnotations(containerName string, containerAnnotations, podAnnotations map[string]string) (string, error)

func (*Config) Enabled

func (c *Config) Enabled() bool

Enabled returns true if RDT is enabled in CRI-O

func (*Config) Load

func (c *Config) Load(path string) error

Load loads and validates RDT config

func (*Config) Supported

func (c *Config) Supported() bool

Supported returns true if RDT is enabled in the host system

Jump to

Keyboard shortcuts

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