topology

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NRTBuilder

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

NRTBuilder helps to build NRT. It follows the builder pattern (https://en.wikipedia.org/wiki/Builder_pattern).

func NewNRTBuilder

func NewNRTBuilder() *NRTBuilder

NewNRTBuilder returns a new NRTBuilder.

func (*NRTBuilder) Build

Build initializes and build all fields of NRT.

func (*NRTBuilder) WithAttributes added in v0.10.0

func (b *NRTBuilder) WithAttributes(attributes map[string]string)

WithAttributes sets the attributes of a Builder.

func (*NRTBuilder) WithCPUManagerPolicy

func (b *NRTBuilder) WithCPUManagerPolicy(cpuManagerPolicy topologyapi.CPUManagerPolicy)

WithCPUManagerPolicy sets the cpuManagerPolicy property of a Builder.

func (*NRTBuilder) WithNode

func (b *NRTBuilder) WithNode(node *corev1.Node)

WithNode sets the node property of a Builder.

func (*NRTBuilder) WithReserved

func (b *NRTBuilder) WithReserved(reserved corev1.ResourceList)

WithReserved sets the reserved property of a Builder.

func (*NRTBuilder) WithReservedCPUs

func (b *NRTBuilder) WithReservedCPUs(reservedCPUs int)

WithReservedCPUs sets the reserved property of a Builder.

func (*NRTBuilder) WithSystemReservedCPUs added in v0.10.0

func (b *NRTBuilder) WithSystemReservedCPUs(systemReservedCPUs cpuset.CPUSet)

WithSystemReservedCPUs sets the systemReservedCPUs property of a Builder.

func (*NRTBuilder) WithTopologyInfo

func (b *NRTBuilder) WithTopologyInfo(topologyInfo *topology.Info)

WithTopologyInfo sets the topologyInfo property of a Builder.

Jump to

Keyboard shortcuts

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