nvidiagpu

package
v0.0.0-...-05d41a9 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

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 *nvidiagpuv1.ClusterPolicy
	// Created Builder object on the cluster.
	Object *nvidiagpuv1.ClusterPolicy
	// contains filtered or unexported fields
}

Builder provides a struct for ClusterPolicy object from the cluster and a ClusterPolicy 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 string) (*Builder, error)

Pull loads an existing clusterPolicy into Builder struct.

func (*Builder) Create

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

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

func (*Builder) Delete

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

Delete removes a ClusterPolicy.

func (*Builder) Exists

func (builder *Builder) Exists() bool

Exists checks whether the given ClusterPolicy exists.

func (*Builder) Get

func (builder *Builder) Get() (*nvidiagpuv1.ClusterPolicy, error)

Get returns clusterPolicy object if found.

func (*Builder) Update

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

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

Jump to

Keyboard shortcuts

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