resmgr

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 45 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceManager

type ResourceManager interface {
	// Start starts the resource manager.
	Start() error
	// Stop stops the resource manager.
	Stop()
	// SetConfig dynamically updates the resource manager configuration.
	SetConfig(*config.RawConfig) error
	// SetAdjustment dynamically updates external adjustments.
	SetAdjustment(*config.Adjustment) map[string]error
	// SendEvent sends an event to be processed by the resource manager.
	SendEvent(event interface{}) error
	// Add-ons for testing.
	ResourceManagerTestAPI
}

ResourceManager is the interface we expose for controlling the CRI resource manager.

func NewResourceManager

func NewResourceManager() (ResourceManager, error)

NewResourceManager creates a new ResourceManager instance.

type ResourceManagerTestAPI

type ResourceManagerTestAPI interface {
}

ResourceManagerTestAPI is dummy if we're compiling without test build flag.

Jump to

Keyboard shortcuts

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