Documentation ¶
Index ¶
- type NRTBuilder
- func (b *NRTBuilder) Build() *topologyapi.NodeResourceTopology
- func (b *NRTBuilder) WithAttributes(attributes map[string]string)
- func (b *NRTBuilder) WithCPUManagerPolicy(cpuManagerPolicy topologyapi.CPUManagerPolicy)
- func (b *NRTBuilder) WithNode(node *corev1.Node)
- func (b *NRTBuilder) WithReserved(reserved corev1.ResourceList)
- func (b *NRTBuilder) WithReservedCPUs(reservedCPUs int)
- func (b *NRTBuilder) WithSystemReservedCPUs(systemReservedCPUs cpuset.CPUSet)
- func (b *NRTBuilder) WithTopologyInfo(topologyInfo *topology.Info)
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 (*NRTBuilder) Build ¶
func (b *NRTBuilder) Build() *topologyapi.NodeResourceTopology
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.
Click to show internal directories.
Click to hide internal directories.