node

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 6 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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