lso

package
v0.0.0-...-d0642ff 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalVolumeDiscoveryBuilder

type LocalVolumeDiscoveryBuilder struct {
	// localVolumeDiscovery definition, used to create the localVolumeDiscovery object.
	Definition *lsov1alpha1.LocalVolumeDiscovery
	// Created localVolumeDiscovery object.
	Object *lsov1alpha1.LocalVolumeDiscovery
	// contains filtered or unexported fields
}

LocalVolumeDiscoveryBuilder provides a struct for localVolumeDiscovery object from the cluster and a localVolumeDiscovery definition.

func NewLocalVolumeDiscoveryBuilder

func NewLocalVolumeDiscoveryBuilder(apiClient *clients.Settings, name, nsname string) *LocalVolumeDiscoveryBuilder

NewLocalVolumeDiscoveryBuilder creates new instance of LocalVolumeDiscoveryBuilder.

func PullLocalVolumeDiscovery

func PullLocalVolumeDiscovery(apiClient *clients.Settings, name, nsname string) (*LocalVolumeDiscoveryBuilder, error)

PullLocalVolumeDiscovery retrieves an existing localVolumeDiscovery object from the cluster.

func (*LocalVolumeDiscoveryBuilder) Create

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

func (*LocalVolumeDiscoveryBuilder) Delete

func (builder *LocalVolumeDiscoveryBuilder) Delete() error

Delete removes localVolumeDiscovery from a cluster.

func (*LocalVolumeDiscoveryBuilder) Exists

func (builder *LocalVolumeDiscoveryBuilder) Exists() bool

Exists checks whether the given localVolumeDiscovery exists.

func (*LocalVolumeDiscoveryBuilder) Get

Get fetches existing localVolumeDiscovery from cluster.

func (*LocalVolumeDiscoveryBuilder) GetPhase

GetPhase get current localVolumeDiscovery phase.

func (*LocalVolumeDiscoveryBuilder) IsDiscovering

func (builder *LocalVolumeDiscoveryBuilder) IsDiscovering(timeout time.Duration) bool

IsDiscovering check if the localVolumeDiscovery is Discovering.

func (*LocalVolumeDiscoveryBuilder) WithNodeSelector

func (builder *LocalVolumeDiscoveryBuilder) WithNodeSelector(
	nodeSelector corev1.NodeSelector) *LocalVolumeDiscoveryBuilder

WithNodeSelector sets the localVolumeDiscovery's nodeSelector.

func (*LocalVolumeDiscoveryBuilder) WithTolerations

func (builder *LocalVolumeDiscoveryBuilder) WithTolerations(
	tolerations []corev1.Toleration) *LocalVolumeDiscoveryBuilder

WithTolerations sets the localVolumeDiscovery's generation.

type LocalVolumeSetBuilder

type LocalVolumeSetBuilder struct {
	// localVolumeSet definition, used to create the localVolumeSet object.
	Definition *lsov1alpha1.LocalVolumeSet
	// Created localVolumeSet object.
	Object *lsov1alpha1.LocalVolumeSet
	// contains filtered or unexported fields
}

LocalVolumeSetBuilder provides a struct for localVolumeSet object from the cluster and a localVolumeSet definition.

func NewLocalVolumeSetBuilder

func NewLocalVolumeSetBuilder(apiClient *clients.Settings, name, nsname string) *LocalVolumeSetBuilder

NewLocalVolumeSetBuilder creates new instance of LocalVolumeSetBuilder.

func PullLocalVolumeSet

func PullLocalVolumeSet(apiClient *clients.Settings, name, nsname string) (*LocalVolumeSetBuilder, error)

PullLocalVolumeSet retrieves an existing localVolumeSet object from the cluster.

func (*LocalVolumeSetBuilder) Create

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

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

func (*LocalVolumeSetBuilder) Delete

func (builder *LocalVolumeSetBuilder) Delete() error

Delete removes localVolumeSet from a cluster.

func (*LocalVolumeSetBuilder) Exists

func (builder *LocalVolumeSetBuilder) Exists() bool

Exists checks whether the given localVolumeSet exists.

func (*LocalVolumeSetBuilder) Get

Get fetches existing localVolumeSet from cluster.

func (*LocalVolumeSetBuilder) Update

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

Update renovates a LocalVolumeSetBuilder in the cluster and stores the created object in struct.

func (*LocalVolumeSetBuilder) WithDeviceInclusionSpec

func (builder *LocalVolumeSetBuilder) WithDeviceInclusionSpec(
	deviceInclusionSpec lsov1alpha1.DeviceInclusionSpec) *LocalVolumeSetBuilder

WithDeviceInclusionSpec sets the localVolumeSet's deviceInclusionSpec.

func (*LocalVolumeSetBuilder) WithFSType

func (builder *LocalVolumeSetBuilder) WithFSType(
	fstype string) *LocalVolumeSetBuilder

WithFSType sets the localVolumeSet's fstype.

func (*LocalVolumeSetBuilder) WithMaxDeviceCount

func (builder *LocalVolumeSetBuilder) WithMaxDeviceCount(
	maxDeviceCount int32) *LocalVolumeSetBuilder

WithMaxDeviceCount sets the localVolumeSet's maxDeviceCount.

func (*LocalVolumeSetBuilder) WithNodeSelector

func (builder *LocalVolumeSetBuilder) WithNodeSelector(
	nodeSelector corev1.NodeSelector) *LocalVolumeSetBuilder

WithNodeSelector sets the localVolumeSet's nodeSelector.

func (*LocalVolumeSetBuilder) WithStorageClassName

func (builder *LocalVolumeSetBuilder) WithStorageClassName(
	storageClassName string) *LocalVolumeSetBuilder

WithStorageClassName sets the localVolumeSet's storageClassName.

func (*LocalVolumeSetBuilder) WithTolerations

func (builder *LocalVolumeSetBuilder) WithTolerations(
	tolerations []corev1.Toleration) *LocalVolumeSetBuilder

WithTolerations sets the localVolumeSet's tolerations.

func (*LocalVolumeSetBuilder) WithVolumeMode

func (builder *LocalVolumeSetBuilder) WithVolumeMode(
	volumeMode lsov1.PersistentVolumeMode) *LocalVolumeSetBuilder

WithVolumeMode sets the localVolumeSet's volumeMode.

Jump to

Keyboard shortcuts

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