Documentation ¶
Index ¶
- type Controller
- type DrController
- func (d *DrController) CreateReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) (*ReplicationSpec, error)
- func (d *DrController) DeleteReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
- func (d *DrController) DisableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
- func (d *DrController) EnableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
- func (d *DrController) FailoverReplication(ctx *c.Context, replica *ReplicationSpec, failover *FailoverReplicationSpec, ...) error
- func (d *DrController) LoadOperator(ctx *c.Context, primaryVol, secondaryVol *VolumeSpec) error
- type PairOperator
- func (p *PairOperator) Attach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error)
- func (p *PairOperator) Create(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error)
- func (p *PairOperator) Delete(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
- func (p *PairOperator) Detach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
- func (p *PairOperator) Disable(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
- func (p *PairOperator) Enable(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
- func (p *PairOperator) Failover(ctx *c.Context, replica *ReplicationSpec, failover *FailoverReplicationSpec, ...) error
- type ReplicationOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { CreateReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) (*ReplicationSpec, error) DeleteReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error EnableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error DisableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error FailoverReplication(ctx *c.Context, replica *ReplicationSpec, failover *FailoverReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error }
func NewController ¶
func NewController(controller volume.Controller) Controller
NewController method creates a controller structure and expose its pointer.
type DrController ¶
type DrController struct {
// contains filtered or unexported fields
}
func (*DrController) CreateReplication ¶
func (d *DrController) CreateReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) (*ReplicationSpec, error)
func (*DrController) DeleteReplication ¶
func (d *DrController) DeleteReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
func (*DrController) DisableReplication ¶
func (d *DrController) DisableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
func (*DrController) EnableReplication ¶
func (d *DrController) EnableReplication(ctx *c.Context, replica *ReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
func (*DrController) FailoverReplication ¶
func (d *DrController) FailoverReplication(ctx *c.Context, replica *ReplicationSpec, failover *FailoverReplicationSpec, primaryVol, secondaryVol *VolumeSpec) error
func (*DrController) LoadOperator ¶
func (d *DrController) LoadOperator(ctx *c.Context, primaryVol, secondaryVol *VolumeSpec) error
type PairOperator ¶ added in v0.2.1
type PairOperator struct {
// contains filtered or unexported fields
}
func NewPairOperator ¶ added in v0.2.1
func NewPairOperator(ctx *c.Context, controller volume.Controller, vol *VolumeSpec, isPrimary bool) (*PairOperator, error)
func (*PairOperator) Attach ¶ added in v0.2.1
func (p *PairOperator) Attach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error)
func (*PairOperator) Create ¶ added in v0.2.1
func (p *PairOperator) Create(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error)
func (*PairOperator) Delete ¶ added in v0.2.1
func (p *PairOperator) Delete(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
func (*PairOperator) Detach ¶ added in v0.2.1
func (p *PairOperator) Detach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
func (*PairOperator) Disable ¶ added in v0.2.1
func (p *PairOperator) Disable(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error
type ReplicationOperator ¶
type ReplicationOperator interface { Create(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error) Delete(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error Enable(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error Disable(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error Failover(ctx *c.Context, replica *ReplicationSpec, failover *FailoverReplicationSpec, vol *VolumeSpec) error Attach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) (*ReplicationSpec, error) Detach(ctx *c.Context, replica *ReplicationSpec, vol *VolumeSpec) error }
Click to show internal directories.
Click to hide internal directories.