nrop

package
v0.0.0-...-75a2d0c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// NUMAResourcesOperator definition, used to create the NUMAResourcesOperator object.
	Definition *nropv1.NUMAResourcesOperator
	// Created NUMAResourcesOperator object.
	Object *nropv1.NUMAResourcesOperator
	// contains filtered or unexported fields
}

Builder provides a struct for NUMAResourcesOperator object from the cluster and a NUMAResourcesOperator definition.

func NewBuilder

func NewBuilder(
	apiClient *clients.Settings, name string) *Builder

NewBuilder creates a new instance of NUMAResourcesOperator.

func Pull

func Pull(apiClient *clients.Settings, name string) (*Builder, error)

Pull pulls existing NUMAResourcesOperator from cluster.

func (*Builder) Create

func (builder *Builder) Create() (*Builder, error)

Create makes a NUMAResourcesOperator in the cluster and stores the created object in struct.

func (*Builder) Delete

func (builder *Builder) Delete() (*Builder, error)

Delete removes NUMAResourcesOperator from a cluster.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given NUMAResourcesOperator exists.

func (*Builder) Get

func (builder *Builder) Get() (*nropv1.NUMAResourcesOperator, error)

Get fetches the defined NUMAResourcesOperator from the cluster.

func (*Builder) Update

func (builder *Builder) Update() (*Builder, error)

Update renovates the existing NUMAResourcesOperator object with NUMAResourcesOperator definition in builder.

func (*Builder) WithMCPSelector

func (builder *Builder) WithMCPSelector(config nropv1.NodeGroupConfig, mcpSelector metav1.LabelSelector) *Builder

WithMCPSelector sets the NUMAResourcesOperator operator's mcpSelector.

type SchedulerBuilder

type SchedulerBuilder struct {
	// NUMAResourcesScheduler definition, used to create the NUMAResourcesScheduler object.
	Definition *nropv1.NUMAResourcesScheduler
	// Created NUMAResourcesScheduler object.
	Object *nropv1.NUMAResourcesScheduler
	// contains filtered or unexported fields
}

SchedulerBuilder provides a struct for NUMAResourcesScheduler object from the cluster and a NUMAResourcesScheduler definition.

func NewSchedulerBuilder

func NewSchedulerBuilder(
	apiClient *clients.Settings, name, nsname string) *SchedulerBuilder

NewSchedulerBuilder creates a new instance of NUMAResourcesScheduler.

func PullScheduler

func PullScheduler(apiClient *clients.Settings, name, nsname string) (*SchedulerBuilder, error)

PullScheduler pulls existing NUMAResourcesScheduler from cluster.

func (*SchedulerBuilder) Create

func (builder *SchedulerBuilder) Create() (*SchedulerBuilder, error)

Create makes a NUMAResourcesScheduler in the cluster and stores the created object in struct.

func (*SchedulerBuilder) Delete

func (builder *SchedulerBuilder) Delete() (*SchedulerBuilder, error)

Delete removes NUMAResourcesScheduler from a cluster.

func (*SchedulerBuilder) Exists

func (builder *SchedulerBuilder) Exists() bool

Exists checks whether the given NUMAResourcesScheduler exists.

func (*SchedulerBuilder) Get

Get fetches the defined NUMAResourcesScheduler from the cluster.

func (*SchedulerBuilder) Update

func (builder *SchedulerBuilder) Update() (*SchedulerBuilder, error)

Update renovates the existing NUMAResourcesScheduler object with NUMAResourcesScheduler definition in builder.

func (*SchedulerBuilder) WithImageSpec

func (builder *SchedulerBuilder) WithImageSpec(imageSpec string) *SchedulerBuilder

WithImageSpec sets the NUMAResourcesScheduler operator's imageSpec.

func (*SchedulerBuilder) WithSchedulerName

func (builder *SchedulerBuilder) WithSchedulerName(schedulerName string) *SchedulerBuilder

WithSchedulerName sets the NUMAResourcesScheduler operator's schedulerName.

Jump to

Keyboard shortcuts

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