Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeDriver ¶
type VolumeDriver interface { //Any initialization the volume driver does while starting. Setup() error //Any operation the volume driver does while stopping. Unset() error CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error) PullVolume(volIdentifier string) (*model.VolumeSpec, error) DeleteVolume(opt *pb.DeleteVolumeOpts) error ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error) InitializeConnection(opt *pb.CreateAttachmentOpts) (*model.ConnectionInfo, error) TerminateConnection(opt *pb.DeleteAttachmentOpts) error CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error) PullSnapshot(snapIdentifier string) (*model.VolumeSnapshotSpec, error) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error ListPools() ([]*model.StoragePoolSpec, error) }
VolumeDriver is an interface for exposing some operations of different volume drivers, currently support sample, lvm, ceph, cinder and so forth.
Click to show internal directories.
Click to hide internal directories.