Documentation ¶
Index ¶
- func ComputePodFingerprint(podRes []*podresourcesapi.PodResources, st *podfingerprint.Status, ...) string
- func ContainerDevicesToPerNUMAResourceCounters(devices []*podresourcesapi.ContainerDevices) perNUMAResourceCounter
- func GetAllContainerDevices(podRes []*podresourcesapi.PodResources, namespace string, ...) []*podresourcesapi.ContainerDevices
- func MakeCoreIDToNodeIDMap(topo *ghw.TopologyInfo) map[int]int
- func NewResourceMonitor(hnd Handle, args Args, options ...func(*resourceMonitor)) (*resourceMonitor, error)
- func NormalizeContainerDevices(devices []*podresourcesapi.ContainerDevices, ...) []*podresourcesapi.ContainerDevices
- func PFPMethodIsSupported(value string) (string, error)
- func PFPMethodSupported() string
- func WithK8sClient(c kubernetes.Interface) func(*resourceMonitor)
- func WithNodeName(name string) func(*resourceMonitor)
- func WithTopology(topo *ghw.TopologyInfo) func(*resourceMonitor)
- type Args
- type Handle
- type ResourceExclude
- type ResourceMonitor
- type ScanResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputePodFingerprint ¶ added in v0.6.1
func ComputePodFingerprint(podRes []*podresourcesapi.PodResources, st *podfingerprint.Status, allowFilter func(*podresourcesapi.PodResources) bool) string
func ContainerDevicesToPerNUMAResourceCounters ¶ added in v0.1.1
func ContainerDevicesToPerNUMAResourceCounters(devices []*podresourcesapi.ContainerDevices) perNUMAResourceCounter
func GetAllContainerDevices ¶ added in v0.1.1
func GetAllContainerDevices(podRes []*podresourcesapi.PodResources, namespace string, coreIDToNodeIDMap map[int]int) []*podresourcesapi.ContainerDevices
func MakeCoreIDToNodeIDMap ¶ added in v0.1.1
func MakeCoreIDToNodeIDMap(topo *ghw.TopologyInfo) map[int]int
func NewResourceMonitor ¶ added in v0.1.1
func NormalizeContainerDevices ¶ added in v0.1.1
func NormalizeContainerDevices(devices []*podresourcesapi.ContainerDevices, memoryBlocks []*podresourcesapi.ContainerMemory, cpuIds []int64, coreIDToNodeIDMap map[int]int) []*podresourcesapi.ContainerDevices
func PFPMethodIsSupported ¶ added in v0.12.0
func PFPMethodSupported ¶ added in v0.12.0
func PFPMethodSupported() string
func WithK8sClient ¶ added in v0.7.0
func WithK8sClient(c kubernetes.Interface) func(*resourceMonitor)
func WithNodeName ¶ added in v0.7.0
func WithNodeName(name string) func(*resourceMonitor)
func WithTopology ¶ added in v0.7.0
func WithTopology(topo *ghw.TopologyInfo) func(*resourceMonitor)
Types ¶
type Handle ¶ added in v0.11.100
type Handle struct { PodResCli podresourcesapi.PodResourcesListerClient K8SCli kubernetes.Interface }
type ResourceExclude ¶ added in v0.11.0
func (ResourceExclude) String ¶ added in v0.11.0
func (rel ResourceExclude) String() string
type ResourceMonitor ¶ added in v0.1.1
type ResourceMonitor interface {
Scan(excludeList ResourceExclude) (ScanResponse, error)
}
type ScanResponse ¶ added in v0.10.0
type ScanResponse struct { Zones v1alpha2.ZoneList Attributes v1alpha2.AttributeList Annotations map[string]string }
func (ScanResponse) SortedZones ¶ added in v0.10.0
func (sr ScanResponse) SortedZones() v1alpha2.ZoneList
Click to show internal directories.
Click to hide internal directories.