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 *pb.CreateVolumeRequest) (*pb.CreateVolumeResponse, error) GetVolume(ctx context.Context, volume *pb.GetVolumeRequest) (*pb.GetVolumeResponse, error) ListVolume(ctx context.Context, volume *pb.ListVolumeRequest) (*pb.ListVolumeResponse, error) UpdateVolume(ctx context.Context, volume *pb.UpdateVolumeRequest) (*pb.UpdateVolumeResponse, error) DeleteVolume(ctx context.Context, volume *pb.DeleteVolumeRequest) (*pb.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.