Documentation ¶
Index ¶
- Variables
- func Register(name string, initFunc InitFunc)
- type Driver
- type InitFunc
- type OSDriverManager
- func (osdm *OSDriverManager) Format(deviceName, fsType string, overwriteFs bool) error
- func (osdm *OSDriverManager) GetMounts(deviceName, mountPoint string) ([]*mount.Info, error)
- func (osdm *OSDriverManager) IsDrivers() bool
- func (osdm *OSDriverManager) Mount(device, target, mountOptions, mountLabel string) error
- func (osdm *OSDriverManager) Mounted(mountPoint string) (bool, error)
- func (osdm *OSDriverManager) Unmount(mountPoint string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDriverInstanceDiscovery = errors.New("Driver Instance discovery failed")
)
Functions ¶
Types ¶
type Driver ¶
type Driver interface { // Shows the existing mount points GetMounts(string, string) ([]*mount.Info, error) // Check whether path is mounted or not Mounted(string) (bool, error) // Unmount based on a path Unmount(string) error // Mount based on a device, target, options, label Mount(string, string, string, string) error // Format a device with a FS type Format(string, string, bool) error }
type OSDriverManager ¶
func NewOSDriverManager ¶
func NewOSDriverManager(conf *config.Config) (*OSDriverManager, error)
func (*OSDriverManager) Format ¶
func (osdm *OSDriverManager) Format(deviceName, fsType string, overwriteFs bool) error
func (*OSDriverManager) GetMounts ¶
func (osdm *OSDriverManager) GetMounts(deviceName, mountPoint string) ([]*mount.Info, error)
func (*OSDriverManager) IsDrivers ¶
func (osdm *OSDriverManager) IsDrivers() bool
func (*OSDriverManager) Mount ¶
func (osdm *OSDriverManager) Mount(device, target, mountOptions, mountLabel string) error
func (*OSDriverManager) Mounted ¶
func (osdm *OSDriverManager) Mounted(mountPoint string) (bool, error)
func (*OSDriverManager) Unmount ¶
func (osdm *OSDriverManager) Unmount(mountPoint string) error
Click to show internal directories.
Click to hide internal directories.