Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error) DeleteVolume(opt *pb.DeleteVolumeOpts) error ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error) CreateVolumeAttachment(opt *pb.CreateAttachmentOpts) (*model.VolumeAttachmentSpec, error) DeleteVolumeAttachment(opt *pb.DeleteAttachmentOpts) error CreateVolumeSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error) DeleteVolumeSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error SetDock(dockInfo *model.DockSpec) }
Controller is an interface for exposing some operations of different volume controllers.
func NewController ¶
func NewController() Controller
NewController method creates a controller structure and expose its pointer.
Click to show internal directories.
Click to hide internal directories.