Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Create() (*Builder, error)
- func (builder *Builder) Delete() (*Builder, error)
- func (builder *Builder) Exists() bool
- func (builder *Builder) Get() (*nropv1.NUMAResourcesOperator, error)
- func (builder *Builder) Update() (*Builder, error)
- func (builder *Builder) WithMCPSelector(config nropv1.NodeGroupConfig, mcpSelector metav1.LabelSelector) *Builder
- type SchedulerBuilder
- func (builder *SchedulerBuilder) Create() (*SchedulerBuilder, error)
- func (builder *SchedulerBuilder) Delete() (*SchedulerBuilder, error)
- func (builder *SchedulerBuilder) Exists() bool
- func (builder *SchedulerBuilder) Get() (*nropv1.NUMAResourcesScheduler, error)
- func (builder *SchedulerBuilder) Update() (*SchedulerBuilder, error)
- func (builder *SchedulerBuilder) WithImageSpec(imageSpec string) *SchedulerBuilder
- func (builder *SchedulerBuilder) WithSchedulerName(schedulerName string) *SchedulerBuilder
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 ¶
NewBuilder creates a new instance of NUMAResourcesOperator.
func (*Builder) Create ¶
Create makes a NUMAResourcesOperator in the cluster and stores the created object in struct.
func (*Builder) Get ¶
func (builder *Builder) Get() (*nropv1.NUMAResourcesOperator, error)
Get fetches the defined NUMAResourcesOperator from the cluster.
func (*Builder) Update ¶
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 ¶
func (builder *SchedulerBuilder) Get() (*nropv1.NUMAResourcesScheduler, error)
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.