Documentation
¶
Index ¶
- type VolAPIImplementor
- func (VolAPIImplementor) DismountVolume(volumeID, path string) error
- func (VolAPIImplementor) FormatVolume(volumeID string) (err error)
- func (VolAPIImplementor) IsVolumeFormatted(volumeID string) (bool, error)
- func (VolAPIImplementor) ListVolumesOnDisk(diskID string) (volumeIDs []string, err error)
- func (VolAPIImplementor) MountVolume(volumeID, path string) error
- func (VolAPIImplementor) ResizeVolume(volumeID string, size int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolAPIImplementor ¶
type VolAPIImplementor struct{}
VolAPIImplementor - struct for implementing the internal Volume APIs
func (VolAPIImplementor) DismountVolume ¶
func (VolAPIImplementor) DismountVolume(volumeID, path string) error
DismountVolume - unmounts the volume path by removing the patition access path
func (VolAPIImplementor) FormatVolume ¶
func (VolAPIImplementor) FormatVolume(volumeID string) (err error)
FormatVolume - Format a volume with a pre specified filesystem (typically ntfs)
func (VolAPIImplementor) IsVolumeFormatted ¶
func (VolAPIImplementor) IsVolumeFormatted(volumeID string) (bool, error)
IsVolumeFormatted - Check if the volume is formatted with the pre specified filesystem(typically ntfs).
func (VolAPIImplementor) ListVolumesOnDisk ¶
func (VolAPIImplementor) ListVolumesOnDisk(diskID string) (volumeIDs []string, err error)
ListVolumesOnDisk - returns back list of volumes(volumeIDs) in the disk (requested in diskID).
func (VolAPIImplementor) MountVolume ¶
func (VolAPIImplementor) MountVolume(volumeID, path string) error
MountVolume - mounts a volume to a path. This is done using the Add-PartitionAccessPath for presenting the volume via a path.
func (VolAPIImplementor) ResizeVolume ¶
func (VolAPIImplementor) ResizeVolume(volumeID string, size int64) error
ResizeVolume - resize the volume to the size specified as parameter.
Click to show internal directories.
Click to hide internal directories.