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.CreateVolumeAttachmentOpts) (*model.VolumeAttachmentSpec, error) DeleteVolumeAttachment(opt *pb.DeleteVolumeAttachmentOpts) error CreateVolumeSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error) DeleteVolumeSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error CreateReplication(opt *pb.CreateReplicationOpts) (*model.ReplicationSpec, error) DeleteReplication(opt *pb.DeleteReplicationOpts) error EnableReplication(opt *pb.EnableReplicationOpts) error DisableReplication(opt *pb.DisableReplicationOpts) error FailoverReplication(opt *pb.FailoverReplicationOpts) error AttachVolume(opt *pb.AttachVolumeOpts) (string, error) DetachVolume(opt *pb.DetachVolumeOpts) error CreateVolumeGroup(*pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error) UpdateVolumeGroup(*pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error) DeleteVolumeGroup(*pb.DeleteVolumeGroupOpts) 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.