volume

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 New

func New() VolAPIImplementor

New - Construct a new Volume API Implementation.

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.

Jump to

Keyboard shortcuts

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