resctrl

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Collector of resctrl for a container.

Manager of resctrl for containers.

Utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup() error

Types

type Manager

type Manager interface {
	Destroy()
	GetCollector(containerName string, getContainerPids func() ([]string, error), numberOfNUMANodes int) (stats.Collector, error)
}

func NewManager

func NewManager(interval time.Duration, setup func() error, vendorID string, inHostNamespace bool) (Manager, error)

type NoopManager

type NoopManager struct {
	stats.NoopDestroy
}

func (*NoopManager) GetCollector

func (np *NoopManager) GetCollector(_ string, _ func() ([]string, error), _ int) (stats.Collector, error)

Jump to

Keyboard shortcuts

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