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 BlockDriver ¶
type BlockDriver interface { CreateVolume(ctx context.Context, volume *block.CreateVolumeRequest) (*block.CreateVolumeResponse, error) GetVolume(ctx context.Context, volume *block.GetVolumeRequest) (*block.GetVolumeResponse, error) ListVolume(ctx context.Context, volume *block.ListVolumeRequest) (*block.ListVolumeResponse, error) UpdateVolume(ctx context.Context, volume *block.UpdateVolumeRequest) (*block.UpdateVolumeResponse, error) DeleteVolume(ctx context.Context, volume *block.DeleteVolumeRequest) (*block.DeleteVolumeResponse, error) // Close: cleanup when driver needs to be stopped. Close() error }
define the block driver interface.
func CreateStorageDriver ¶
func CreateStorageDriver(backend *backendpb.BackendDetail) (BlockDriver, error)
type DriverFactory ¶
type DriverFactory interface {
CreateBlockStorageDriver(backend *backendpb.BackendDetail) (BlockDriver, error)
}
Click to show internal directories.
Click to hide internal directories.