Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDriverFactory ¶
func RegisterDriverFactory(driverType string, factory DriverFactory)
Types ¶
type DriverFactory ¶
type DriverFactory interface {
CreateDriver(detail *backendpb.BackendDetail) (StorageDriver, error)
}
type StorageDriver ¶
type StorageDriver interface {
List(ctx context.Context) (*pb.ListVolumesResponse, error)
Create(ctx context.Context, volume *model.Volume) (*pb.CreateVolumeResponse, error)
}
func CreateStorageDriver ¶
func CreateStorageDriver(driverType string, detail *backendpb.BackendDetail) (StorageDriver, error)
Click to show internal directories.
Click to hide internal directories.