MCPcopy Index your code
hub / github.com/containers/nri-plugins

github.com/containers/nri-plugins @v0.13.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.13.0 ↗ · + Follow
3,288 symbols 10,688 edges 261 files 1,849 documented · 56%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NRI Plugins

This repository contains a collection of community maintained NRI plugins.

Currently following plugins are available:

Name Type
Topology Aware resource policy
Balloons resource policy
Memtierd memory management
Memory-qos memory management
SGX-EPC memory management

See the NRI plugins documentation for more information.

Extension points exported contracts — how you extend this code

Validator (Interface)
Validator is an optional interface that top level configuration types can implement to provide extra custom validation o [8 …
pkg/apis/config/v1alpha1/validator.go
Backend (Interface)
Backend is the policy (decision making logic) interface exposed by implementations. A backends operates in a set of pol [3 …
pkg/resmgr/policy/policy.go
System (Interface)
System devices [2 implementers]
pkg/sysfs/system.go
CPUAllocator (Interface)
CPUAllocator is an interface for a generic CPU allocator [2 implementers]
pkg/cpuallocator/allocator.go
ConfigInterface (Interface)
ConfigInterface is used by the agent to access config custom resources. [1 implementers]
pkg/agent/agent.go
Supply (Interface)
Supply represents avaialbe CPU and memory capacity of a node. [1 implementers]
cmd/plugins/topology-aware/policy/resources.go
Logger (Interface)
Logger is interface we expect from an optional, externally set logger.
pkg/topology/topology.go
Option (FuncType)
Option is an option for log exporting.
pkg/instrumentation/logging/logging.go

Core symbols most depended-on inside this repo

Errorf
called by 924
pkg/log/logger.go
Debugf
called by 512
pkg/log/logger.go
Infof
called by 246
pkg/log/logger.go
Size
called by 236
pkg/sysfs/system.go
NewNodeMask
called by 191
pkg/resmgr/lib/memory/nodes.go
Fatalf
called by 187
pkg/log/logger.go
MustParse
called by 161
pkg/utils/cpuset/cpuset.go
String
called by 161
cmd/plugins/topology-aware/policy/resources.go

Shape

Method 2,096
Function 778
Struct 277
TypeAlias 61
Interface 45
FuncType 31

Languages

Go99%
Python1%

Modules by API surface

cmd/plugins/topology-aware/policy/mocks_test.go220 symbols
pkg/sysfs/system.go211 symbols
pkg/resmgr/cache/cache.go177 symbols
cmd/plugins/topology-aware/policy/resources.go163 symbols
pkg/resmgr/cache/container.go110 symbols
cmd/plugins/topology-aware/policy/node.go101 symbols
cmd/plugins/balloons/policy/balloons-policy.go87 symbols
pkg/cpuallocator/allocator.go58 symbols
pkg/resmgr/cpuclass/internal/pct/pct_test.go55 symbols
pkg/resmgr/policy/policy.go52 symbols
pkg/resmgr/lib/memory/allocator.go45 symbols
pkg/log/slog.go41 symbols

For agents

$ claude mcp add nri-plugins \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact