Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CRUD = "crud" Mount = "mount" Snapshot = "snapshot" MountPath = "/mnt" )
DriverTypes
View Source
var CRUDDrivers = map[string]func() (storage.CRUDDriver, error){ ceph.BackendName: ceph.NewCRUDDriver, }
CRUDDrivers is the map of string to storage.CRUDDriver.
View Source
var MountDrivers = map[string]func(string) (storage.MountDriver, error){ ceph.BackendName: ceph.NewMountDriver, nfs.BackendName: nfs.NewMountDriver, }
MountDrivers is the map of string to storage.MountDriver.
View Source
var SnapshotDrivers = map[string]func() (storage.SnapshotDriver, error){ ceph.BackendName: ceph.NewSnapshotDriver, }
SnapshotDrivers is the map of string to storage.SnapshotDriver.
Functions ¶
func NewCRUDDriver ¶
func NewCRUDDriver(backend string) (storage.CRUDDriver, error)
NewCRUDDriver instantiates a CRUD Driver.
func NewMountDriver ¶
func NewMountDriver(backend, mountpath string) (storage.MountDriver, error)
NewMountDriver instantiates and return a mount driver instance of the specified type
func NewSnapshotDriver ¶
func NewSnapshotDriver(backend string) (storage.SnapshotDriver, error)
NewSnapshotDriver creates a SnapshotDriver based on the backend name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.