Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreeCloser ¶
func FreeCloser()
func RegisterDriverFactory ¶
func RegisterDriverFactory(driverType string, factory DriverFactory)
Types ¶
type DriverFactory ¶
type DriverFactory interface {
CreateFileStorageDriver(backend *backendpb.BackendDetail) (FileStorageDriver, error)
}
type FileStorageDriver ¶
type FileStorageDriver interface {
// Close: cleanup when driver needs to be stopped.
Close() error
}
define the fileshare driver interface.
type StorageDriver ¶
type StorageDriver interface {
FileStorageDriver
}
define the storage driver interface.
func CreateStorageDriver ¶
func CreateStorageDriver(backend *backendpb.BackendDetail) (StorageDriver, error)
Click to show internal directories.
Click to hide internal directories.