driver

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL