Documentation
¶
Index ¶
- Constants
- type Controller
- func (c *Controller) CreateReplication(ctx *c.Context, in *model.ReplicationSpec) (*model.ReplicationSpec, error)
- func (c *Controller) CreateVolume(ctx *c.Context, in *model.VolumeSpec, errchanVolume chan error)
- func (c *Controller) CreateVolumeAttachment(ctx *c.Context, in *model.VolumeAttachmentSpec, errchanVolAtm chan error)
- func (c *Controller) CreateVolumeGroup(ctx *c.Context, in *model.VolumeGroupSpec) error
- func (c *Controller) CreateVolumeSnapshot(ctx *c.Context, in *model.VolumeSnapshotSpec, errchan chan error)
- func (c *Controller) DeleteReplication(ctx *c.Context, in *model.ReplicationSpec) error
- func (c *Controller) DeleteVolume(ctx *c.Context, in *model.VolumeSpec, errchanvol chan error)
- func (c *Controller) DeleteVolumeAttachment(ctx *c.Context, in *model.VolumeAttachmentSpec, errchan chan error)
- func (c *Controller) DeleteVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) error
- func (c *Controller) DeleteVolumeSnapshot(ctx *c.Context, in *model.VolumeSnapshotSpec, errchan chan error)
- func (c *Controller) DisableReplication(ctx *c.Context, in *model.ReplicationSpec) error
- func (c *Controller) EnableReplication(ctx *c.Context, in *model.ReplicationSpec) error
- func (c *Controller) ExtendVolume(ctx *c.Context, volID string, newSize int64, errchanVolume chan error)
- func (c *Controller) FailoverReplication(ctx *c.Context, replication *model.ReplicationSpec, ...) error
- func (c *Controller) UpdateVolumeAttachment(in *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func (c *Controller) UpdateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec, addVolumes []string, ...) error
Constants ¶
View Source
const ( CREATE_LIFECIRCLE_FLAG = iota + 1 GET_LIFECIRCLE_FLAG LIST_LIFECIRCLE_FLAG DELETE_LIFECIRCLE_FLAG EXTEND_LIFECIRCLE_FLAG )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
var Brain *Controller
func NewController ¶
func NewController() *Controller
func (*Controller) CreateReplication ¶ added in v0.1.8
func (c *Controller) CreateReplication(ctx *c.Context, in *model.ReplicationSpec) (*model.ReplicationSpec, error)
func (*Controller) CreateVolume ¶
func (c *Controller) CreateVolume(ctx *c.Context, in *model.VolumeSpec, errchanVolume chan error)
func (*Controller) CreateVolumeAttachment ¶
func (c *Controller) CreateVolumeAttachment(ctx *c.Context, in *model.VolumeAttachmentSpec, errchanVolAtm chan error)
func (*Controller) CreateVolumeGroup ¶ added in v0.1.8
func (c *Controller) CreateVolumeGroup(ctx *c.Context, in *model.VolumeGroupSpec) error
func (*Controller) CreateVolumeSnapshot ¶
func (c *Controller) CreateVolumeSnapshot(ctx *c.Context, in *model.VolumeSnapshotSpec, errchan chan error)
func (*Controller) DeleteReplication ¶ added in v0.1.8
func (c *Controller) DeleteReplication(ctx *c.Context, in *model.ReplicationSpec) error
func (*Controller) DeleteVolume ¶
func (c *Controller) DeleteVolume(ctx *c.Context, in *model.VolumeSpec, errchanvol chan error)
func (*Controller) DeleteVolumeAttachment ¶
func (c *Controller) DeleteVolumeAttachment(ctx *c.Context, in *model.VolumeAttachmentSpec, errchan chan error)
func (*Controller) DeleteVolumeGroup ¶ added in v0.1.8
func (c *Controller) DeleteVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec) error
func (*Controller) DeleteVolumeSnapshot ¶
func (c *Controller) DeleteVolumeSnapshot(ctx *c.Context, in *model.VolumeSnapshotSpec, errchan chan error)
func (*Controller) DisableReplication ¶ added in v0.1.8
func (c *Controller) DisableReplication(ctx *c.Context, in *model.ReplicationSpec) error
func (*Controller) EnableReplication ¶ added in v0.1.8
func (c *Controller) EnableReplication(ctx *c.Context, in *model.ReplicationSpec) error
func (*Controller) ExtendVolume ¶ added in v0.1.1
func (c *Controller) ExtendVolume(ctx *c.Context, volID string, newSize int64, errchanVolume chan error)
ExtendVolume ...
func (*Controller) FailoverReplication ¶ added in v0.1.8
func (c *Controller) FailoverReplication(ctx *c.Context, replication *model.ReplicationSpec, failover *model.FailoverReplicationSpec) error
func (*Controller) UpdateVolumeAttachment ¶
func (c *Controller) UpdateVolumeAttachment(in *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
func (*Controller) UpdateVolumeGroup ¶ added in v0.1.8
func (c *Controller) UpdateVolumeGroup(ctx *c.Context, vg *model.VolumeGroupSpec, addVolumes []string, removeVolumes []string) error
Click to show internal directories.
Click to hide internal directories.