Documentation ¶
Index ¶
- type LocalVolumeDiscoveryBuilder
- func (builder *LocalVolumeDiscoveryBuilder) Create() (*LocalVolumeDiscoveryBuilder, error)
- func (builder *LocalVolumeDiscoveryBuilder) Delete() error
- func (builder *LocalVolumeDiscoveryBuilder) Exists() bool
- func (builder *LocalVolumeDiscoveryBuilder) Get() (*lsov1alpha1.LocalVolumeDiscovery, error)
- func (builder *LocalVolumeDiscoveryBuilder) GetPhase() (lsov1alpha1.DiscoveryPhase, error)
- func (builder *LocalVolumeDiscoveryBuilder) IsDiscovering(timeout time.Duration) bool
- func (builder *LocalVolumeDiscoveryBuilder) WithNodeSelector(nodeSelector corev1.NodeSelector) *LocalVolumeDiscoveryBuilder
- func (builder *LocalVolumeDiscoveryBuilder) WithTolerations(tolerations []corev1.Toleration) *LocalVolumeDiscoveryBuilder
- type LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) Create() (*LocalVolumeSetBuilder, error)
- func (builder *LocalVolumeSetBuilder) Delete() error
- func (builder *LocalVolumeSetBuilder) Exists() bool
- func (builder *LocalVolumeSetBuilder) Get() (*lsov1alpha1.LocalVolumeSet, error)
- func (builder *LocalVolumeSetBuilder) Update() (*LocalVolumeSetBuilder, error)
- func (builder *LocalVolumeSetBuilder) WithDeviceInclusionSpec(deviceInclusionSpec lsov1alpha1.DeviceInclusionSpec) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithFSType(fstype string) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithMaxDeviceCount(maxDeviceCount int32) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithNodeSelector(nodeSelector corev1.NodeSelector) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithStorageClassName(storageClassName string) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithTolerations(tolerations []corev1.Toleration) *LocalVolumeSetBuilder
- func (builder *LocalVolumeSetBuilder) WithVolumeMode(volumeMode lsov1.PersistentVolumeMode) *LocalVolumeSetBuilder
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 ¶
func (builder *LocalVolumeDiscoveryBuilder) Create() (*LocalVolumeDiscoveryBuilder, error)
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 ¶
func (builder *LocalVolumeDiscoveryBuilder) Get() (*lsov1alpha1.LocalVolumeDiscovery, error)
Get fetches existing localVolumeDiscovery from cluster.
func (*LocalVolumeDiscoveryBuilder) GetPhase ¶
func (builder *LocalVolumeDiscoveryBuilder) GetPhase() (lsov1alpha1.DiscoveryPhase, error)
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 ¶
func (builder *LocalVolumeSetBuilder) Get() (*lsov1alpha1.LocalVolumeSet, error)
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.