Documentation ¶
Index ¶
- func ResizeVolume(volumePath string, vol *apis.CStorVolumeAttachment) error
- func Unmount(path string) error
- func UnmountAndDetachDisk(vol *apis.CStorVolumeAttachment, path string) error
- type GlobFunc
- type ISCSIUtil
- func (util *ISCSIUtil) AttachDisk(b iscsiDiskMounter) (string, error)
- func (util *ISCSIUtil) DetachDisk(c iscsiDiskUnmounter, targetPath string) error
- func (util *ISCSIUtil) ReScan(iqn, targetPortal string) error
- func (util *ISCSIUtil) ResizeExt4(path string) error
- func (util *ISCSIUtil) ResizeXFS(path string) error
- func (util *ISCSIUtil) UnmountDisk(c iscsiDiskUnmounter, targetPath string) error
- type StatFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResizeVolume ¶
func ResizeVolume(volumePath string, vol *apis.CStorVolumeAttachment) error
ResizeVolume rescans the iSCSI session and runs the resize to filesystem command on that particular device
func UnmountAndDetachDisk ¶
func UnmountAndDetachDisk(vol *apis.CStorVolumeAttachment, path string) error
UnmountAndDetachDisk unmounts the disk from the specified path and logs out of the iSCSI Volume
Types ¶
type ISCSIUtil ¶
type ISCSIUtil struct{}
ISCSIUtil is an empty struct type
func (*ISCSIUtil) AttachDisk ¶
AttachDisk logs in to the iSCSI volume and returns the corresponding diskPath of the volume which gets created on the node
func (*ISCSIUtil) DetachDisk ¶
DetachDisk logs out of the iSCSI volume and the corresponding path is removed
func (*ISCSIUtil) ResizeExt4 ¶
ResizeExt4 can be used to run a resize command on the ext4 filesystem to expand the filesystem to the actual size of the device
func (*ISCSIUtil) ResizeXFS ¶
ResizeXFS can be used to run a resize command on the xfs filesystem to expand the filesystem to the actual size of the device
func (*ISCSIUtil) UnmountDisk ¶
UnmountDisk logs out of the iSCSI volume and the corresponding path is removed