nfd

package
v0.0.0-...-091666d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 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 {
	// Builder definition. Used to create
	// Builder object with minimum set of required elements.
	Definition *nfdv1.NodeFeatureDiscovery
	// Created Builder object on the cluster.
	Object *nfdv1.NodeFeatureDiscovery
	// contains filtered or unexported fields
}

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

func NewBuilderFromObjectString

func NewBuilderFromObjectString(apiClient *clients.Settings, almExample string) *Builder

NewBuilderFromObjectString creates a Builder object from CSV alm-examples.

func Pull

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

Pull loads an existing NodeFeatureDiscovery into Builder struct.

func (*Builder) Create

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

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

func (*Builder) Delete

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

Delete removes a NodeFeatureDiscovery.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given NodeFeatureDiscovery exists.

func (*Builder) Get

func (builder *Builder) Get() (*nfdv1.NodeFeatureDiscovery, error)

Get returns NodeFeatureDiscovery object if found.

func (*Builder) Update

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

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

Jump to

Keyboard shortcuts

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