volume

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeviceValid

func CheckDeviceValid(devicePath string) bool

func CheckMountValid

func CheckMountValid(mountPath string) bool

func GetDiskFormat

func GetDiskFormat(devicePath string) (string, error)

func MountVolume

func MountVolume(devicePath, mountPath, fsType string, mountOptions []string) error

func ResizeVolume

func ResizeVolume(devicePath, mountPath string) (bool, error)

func SetPermissions

func SetPermissions(mountPath string, mode os.FileMode) error

func UnmountVolume

func UnmountVolume(mountPath string) error

Types

type Volume

type Volume struct {
	Name            string
	Passphrase      string
	CryptoKeyCipher string
	CryptoKeyHash   string
	CryptoKeySize   string
	CryptoPBKDF     string
	FsType          string
	MountOptions    []string
}

func (Volume) IsEncrypted

func (v Volume) IsEncrypted() bool

Jump to

Keyboard shortcuts

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