Documentation
¶
Index ¶
Constants ¶
View Source
const ( NewDirPerms = 0o755 // this represents: rwxr-xr-x NewFilePerms = 0o644 // this represents: rw-r--r-- ExpectedTypeSegments = 2 ReadOnlyMountOption = "ro" NoLoadMountOption = "noload" )
Variables ¶
View Source
var ( ErrFailedToFetchNFSFlag = errors.New("failed to fetch NFS flag") ErrUnsupportedVolumeCapability = errors.New("unsupported volume capability") ErrUnexpectedVolumeCapability = errors.New("unexpected volume capability") ErrVolumeMissingSerialNumber = fmt.Errorf( "volume missing serial number context key %s", common.VolumeContextDiskSerialNumberKey) ErrVolumeMissingName = fmt.Errorf("volume missing name context key %s", common.VolumeContextDiskNameKey) ErrFailedMount = errors.New("failed to mount volume") ErrFailedResize = errors.New("failed to resize disk") )
Functions ¶
func VerifyMountedVolumeWithUtils ¶ added in v0.3.3
func VerifyMountedVolumeWithUtils(mounter *mount.SafeFormatAndMount, targetPath, deviceFullPath string) (bool, error)
VerifyMountedVolumeWithUtils checks if the desired volume is mounted at the target path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.