v1alpha1

package
v2.0.0-network-topolog... Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUInfoApplyConfiguration

type CPUInfoApplyConfiguration struct {
	NUMANodeID *int `json:"numa,omitempty"`
	SocketID   *int `json:"socket,omitempty"`
	CoreID     *int `json:"core,omitempty"`
}

CPUInfoApplyConfiguration represents a declarative configuration of the CPUInfo type for use with apply.

func CPUInfo

func CPUInfo() *CPUInfoApplyConfiguration

CPUInfoApplyConfiguration constructs a declarative configuration of the CPUInfo type for use with apply.

func (*CPUInfoApplyConfiguration) WithCoreID

WithCoreID sets the CoreID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CoreID field is set to the value of the last call.

func (*CPUInfoApplyConfiguration) WithNUMANodeID

func (b *CPUInfoApplyConfiguration) WithNUMANodeID(value int) *CPUInfoApplyConfiguration

WithNUMANodeID sets the NUMANodeID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the NUMANodeID field is set to the value of the last call.

func (*CPUInfoApplyConfiguration) WithSocketID

WithSocketID sets the SocketID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the SocketID field is set to the value of the last call.

type NumatopoSpecApplyConfiguration

type NumatopoSpecApplyConfiguration struct {
	Policies    map[v1alpha1.PolicyName]string            `json:"policies,omitempty"`
	ResReserved map[string]string                         `json:"resReserved,omitempty"`
	NumaResMap  map[string]ResourceInfoApplyConfiguration `json:"numares,omitempty"`
	CPUDetail   map[string]CPUInfoApplyConfiguration      `json:"cpuDetail,omitempty"`
}

NumatopoSpecApplyConfiguration represents a declarative configuration of the NumatopoSpec type for use with apply.

func NumatopoSpec

func NumatopoSpec() *NumatopoSpecApplyConfiguration

NumatopoSpecApplyConfiguration constructs a declarative configuration of the NumatopoSpec type for use with apply.

func (*NumatopoSpecApplyConfiguration) WithCPUDetail

WithCPUDetail puts the entries into the CPUDetail field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the CPUDetail field, overwriting an existing map entries in CPUDetail field with the same key.

func (*NumatopoSpecApplyConfiguration) WithNumaResMap

WithNumaResMap puts the entries into the NumaResMap field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the NumaResMap field, overwriting an existing map entries in NumaResMap field with the same key.

func (*NumatopoSpecApplyConfiguration) WithPolicies

WithPolicies puts the entries into the Policies field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Policies field, overwriting an existing map entries in Policies field with the same key.

func (*NumatopoSpecApplyConfiguration) WithResReserved

WithResReserved puts the entries into the ResReserved field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the ResReserved field, overwriting an existing map entries in ResReserved field with the same key.

type NumatopologyApplyConfiguration

type NumatopologyApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *NumatopoSpecApplyConfiguration `json:"spec,omitempty"`
}

NumatopologyApplyConfiguration represents a declarative configuration of the Numatopology type for use with apply.

func Numatopology

func Numatopology(name string) *NumatopologyApplyConfiguration

Numatopology constructs a declarative configuration of the Numatopology type for use with apply.

func (*NumatopologyApplyConfiguration) GetName

func (b *NumatopologyApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*NumatopologyApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithAnnotations

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*NumatopologyApplyConfiguration) WithCreationTimestamp

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *NumatopologyApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *NumatopologyApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithDeletionTimestamp

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithFinalizers

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*NumatopologyApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*NumatopologyApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*NumatopologyApplyConfiguration) WithResourceVersion

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*NumatopologyApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

type ResourceInfoApplyConfiguration

type ResourceInfoApplyConfiguration struct {
	Allocatable *string `json:"allocatable,omitempty"`
	Capacity    *int    `json:"capacity,omitempty"`
}

ResourceInfoApplyConfiguration represents a declarative configuration of the ResourceInfo type for use with apply.

func ResourceInfo

func ResourceInfo() *ResourceInfoApplyConfiguration

ResourceInfoApplyConfiguration constructs a declarative configuration of the ResourceInfo type for use with apply.

func (*ResourceInfoApplyConfiguration) WithAllocatable

WithAllocatable sets the Allocatable field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Allocatable field is set to the value of the last call.

func (*ResourceInfoApplyConfiguration) WithCapacity

WithCapacity sets the Capacity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Capacity field is set to the value of the last call.

Jump to

Keyboard shortcuts

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