localdiskvolume

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LocalDiskFinalizer for the LocalDiskVolume CR
	LocalDiskFinalizer string = "localdisk.hwameistor.io/finalizer"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new LocalDiskVolume Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type DiskVolumeHandler

type DiskVolumeHandler struct {
	client.Client
	record.EventRecorder
	// contains filtered or unexported fields
}

DiskVolumeHandler

func NewLocalDiskVolumeHandler

func NewLocalDiskVolumeHandler(cli client.Client, recorder record.EventRecorder) *DiskVolumeHandler

NewLocalDiskHandler

func (*DiskVolumeHandler) AddFinalizers

func (v *DiskVolumeHandler) AddFinalizers(finalizer []string)

func (*DiskVolumeHandler) AppendMountPoint

func (v *DiskVolumeHandler) AppendMountPoint(targetPath string, volCap *csi.VolumeCapability)

func (*DiskVolumeHandler) CheckFinalizers

func (v *DiskVolumeHandler) CheckFinalizers() error

func (*DiskVolumeHandler) DeleteLocalDiskVolume

func (v *DiskVolumeHandler) DeleteLocalDiskVolume() error

func (*DiskVolumeHandler) ExistMountPoint

func (v *DiskVolumeHandler) ExistMountPoint(targetPath string) bool

func (*DiskVolumeHandler) For

func (v *DiskVolumeHandler) For(volume *ldm.LocalDiskVolume)

func (*DiskVolumeHandler) GetBoundDisk

func (v *DiskVolumeHandler) GetBoundDisk() string

func (*DiskVolumeHandler) GetDevPath

func (v *DiskVolumeHandler) GetDevPath() string

func (*DiskVolumeHandler) GetLocalDiskVolume

func (v *DiskVolumeHandler) GetLocalDiskVolume(key client.ObjectKey) (volume *ldm.LocalDiskVolume, err error)

func (*DiskVolumeHandler) GetMountPoints

func (v *DiskVolumeHandler) GetMountPoints() []ldm.MountPoint

func (*DiskVolumeHandler) MountFileSystem

func (v *DiskVolumeHandler) MountFileSystem(devPath, mountPoint, fsType string, options ...string) error

func (*DiskVolumeHandler) MountRawBlock

func (v *DiskVolumeHandler) MountRawBlock(devPath, mountPoint string) error

func (*DiskVolumeHandler) MoveMountPoint

func (v *DiskVolumeHandler) MoveMountPoint(targetPath string)

func (*DiskVolumeHandler) RecordEvent

func (v *DiskVolumeHandler) RecordEvent(eventtype, reason, messageFmt string, args ...interface{})

func (*DiskVolumeHandler) RefreshVolume

func (v *DiskVolumeHandler) RefreshVolume() error

func (*DiskVolumeHandler) RemoveFinalizers

func (v *DiskVolumeHandler) RemoveFinalizers() error

func (*DiskVolumeHandler) SetupVolumeStatus

func (v *DiskVolumeHandler) SetupVolumeStatus(status ldm.State)

func (*DiskVolumeHandler) UnMount

func (v *DiskVolumeHandler) UnMount(mountPoint string) error

func (*DiskVolumeHandler) UpdateLocalDiskVolume

func (v *DiskVolumeHandler) UpdateLocalDiskVolume() error

func (*DiskVolumeHandler) UpdateMountPointPhase

func (v *DiskVolumeHandler) UpdateMountPointPhase(targetPath string, phase ldm.State)

func (*DiskVolumeHandler) VolumeState

func (v *DiskVolumeHandler) VolumeState() ldm.State

func (*DiskVolumeHandler) WaitVolume

func (v *DiskVolumeHandler) WaitVolume(ctx context.Context, state ldm.State) error

func (*DiskVolumeHandler) WaitVolumeReady

func (v *DiskVolumeHandler) WaitVolumeReady(ctx context.Context) error

WaitVolumeReady wait LocalDiskVolume Ready

func (*DiskVolumeHandler) WaitVolumeUnmounted

func (v *DiskVolumeHandler) WaitVolumeUnmounted(ctx context.Context, mountPoint string) error

WaitVolumeUnmounted wait a special mountpoint is unmounted

type ReconcileLocalDiskVolume

type ReconcileLocalDiskVolume struct {
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

ReconcileLocalDiskVolume reconciles a LocalDiskVolume object

func (*ReconcileLocalDiskVolume) Reconcile

Reconcile

Jump to

Keyboard shortcuts

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