Documentation ¶
Index ¶
- Constants
- Variables
- func CreateVolumeAttachmentDBEntry(ctx *c.Context, in *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
- func CreateVolumeDBEntry(ctx *c.Context, in *model.VolumeSpec) (*model.VolumeSpec, error)
- func CreateVolumeGroupDBEntry(ctx *c.Context, in *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func CreateVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
- func DeleteReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
- func DeleteVolumeDBEntry(ctx *c.Context, in *model.VolumeSpec) error
- func DeleteVolumeGroupDBEntry(ctx *c.Context, volumeGroupId string) error
- func DeleteVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) error
- func DisableReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
- func EnableReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
- func ExtendVolumeDBEntry(ctx *c.Context, volID string) (*model.VolumeSpec, error)
- func FailoverReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec, secondaryBackendId string) error
- func Run(host string)
- func UpdateVolumeGroupDBEntry(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
- func ValidateAddVolumes(ctx *c.Context, volumes []*model.VolumeSpec, addVolumes []string, ...) ([]string, error)
- func ValidateRemoveVolumes(ctx *c.Context, volumes []*model.VolumeSpec, removeVolumes []string, ...) ([]string, error)
- type BasePortal
- type DockPortal
- type PoolPortal
- type ProfilePortal
- func (this *ProfilePortal) AddCustomProperty()
- func (this *ProfilePortal) CreateProfile()
- func (this *ProfilePortal) DeleteProfile()
- func (this *ProfilePortal) GetProfile()
- func (this *ProfilePortal) ListCustomProperties()
- func (this *ProfilePortal) ListProfiles()
- func (this *ProfilePortal) RemoveCustomProperty()
- func (this *ProfilePortal) UpdateProfile()
- type ReplicationPortal
- func (this *ReplicationPortal) CreateReplication()
- func (this *ReplicationPortal) DeleteReplication()
- func (this *ReplicationPortal) DisableReplication()
- func (this *ReplicationPortal) EnableReplication()
- func (this *ReplicationPortal) FailoverReplication()
- func (this *ReplicationPortal) GetReplication()
- func (this *ReplicationPortal) ListReplications()
- func (this *ReplicationPortal) ListReplicationsDetail()
- func (this *ReplicationPortal) UpdateReplication()
- type VersionPortal
- type VolumeAttachmentPortal
- func (this *VolumeAttachmentPortal) CreateVolumeAttachment()
- func (this *VolumeAttachmentPortal) DeleteVolumeAttachment()
- func (this *VolumeAttachmentPortal) GetVolumeAttachment()
- func (this *VolumeAttachmentPortal) ListVolumeAttachments()
- func (this *VolumeAttachmentPortal) UpdateVolumeAttachment()
- type VolumeGroupPortal
- type VolumePortal
- type VolumeSnapshotPortal
Constants ¶
View Source
const ( StatusOK = http.StatusOK StatusAccepted = http.StatusAccepted )
Variables ¶
View Source
var KnownVersions = []map[string]string{
{
"name": "v1beta",
"description": "v1beta version",
"status": "CURRENT",
"updatedAt": "2017-07-10T14:36:58.014Z",
},
}
KnownVersions
Functions ¶
func CreateVolumeAttachmentDBEntry ¶ added in v0.1.6
func CreateVolumeAttachmentDBEntry(ctx *c.Context, in *model.VolumeAttachmentSpec) (*model.VolumeAttachmentSpec, error)
func CreateVolumeDBEntry ¶ added in v0.1.6
func CreateVolumeDBEntry(ctx *c.Context, in *model.VolumeSpec) (*model.VolumeSpec, error)
func CreateVolumeGroupDBEntry ¶ added in v0.1.8
func CreateVolumeGroupDBEntry(ctx *c.Context, in *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func CreateVolumeSnapshotDBEntry ¶ added in v0.1.6
func CreateVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, error)
func DeleteReplicationDBEntry ¶ added in v0.1.8
func DeleteReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
func DeleteVolumeDBEntry ¶ added in v0.1.6
func DeleteVolumeDBEntry(ctx *c.Context, in *model.VolumeSpec) error
Just modify the state of the volume to be deleted in the DB, the real deletion in another thread
func DeleteVolumeGroupDBEntry ¶ added in v0.1.8
func DeleteVolumeSnapshotDBEntry ¶ added in v0.1.6
func DeleteVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) error
func DisableReplicationDBEntry ¶ added in v0.1.8
func DisableReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
func EnableReplicationDBEntry ¶ added in v0.1.8
func EnableReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec) error
func ExtendVolumeDBEntry ¶ added in v0.1.6
func FailoverReplicationDBEntry ¶ added in v0.1.8
func UpdateVolumeGroupDBEntry ¶ added in v0.1.8
func UpdateVolumeGroupDBEntry(ctx *c.Context, vgUpdate *model.VolumeGroupSpec) (*model.VolumeGroupSpec, error)
func ValidateAddVolumes ¶ added in v0.1.8
func ValidateAddVolumes(ctx *c.Context, volumes []*model.VolumeSpec, addVolumes []string, vg *model.VolumeGroupSpec) ([]string, error)
func ValidateRemoveVolumes ¶ added in v0.1.8
func ValidateRemoveVolumes(ctx *c.Context, volumes []*model.VolumeSpec, removeVolumes []string, vg *model.VolumeGroupSpec) ([]string, error)
Types ¶
type BasePortal ¶ added in v0.1.4
type BasePortal struct {
beego.Controller
}
func (*BasePortal) ErrorHandle ¶ added in v0.1.8
func (this *BasePortal) ErrorHandle(errMsg string, errType int, err error)
func (*BasePortal) GetParameters ¶ added in v0.1.4
func (this *BasePortal) GetParameters() (map[string][]string, error)
func (*BasePortal) SuccessHandle ¶ added in v0.1.8
func (this *BasePortal) SuccessHandle(status int, body []byte)
type PoolPortal ¶
type PoolPortal struct {
BasePortal
}
func (*PoolPortal) GetPool ¶
func (this *PoolPortal) GetPool()
func (*PoolPortal) ListAvailabilityZones ¶ added in v0.3.0
func (this *PoolPortal) ListAvailabilityZones()
func (*PoolPortal) ListPools ¶
func (this *PoolPortal) ListPools()
type ProfilePortal ¶
type ProfilePortal struct {
BasePortal
}
func (*ProfilePortal) AddCustomProperty ¶ added in v0.3.1
func (this *ProfilePortal) AddCustomProperty()
func (*ProfilePortal) CreateProfile ¶
func (this *ProfilePortal) CreateProfile()
func (*ProfilePortal) DeleteProfile ¶
func (this *ProfilePortal) DeleteProfile()
func (*ProfilePortal) GetProfile ¶
func (this *ProfilePortal) GetProfile()
func (*ProfilePortal) ListCustomProperties ¶ added in v0.3.1
func (this *ProfilePortal) ListCustomProperties()
func (*ProfilePortal) ListProfiles ¶
func (this *ProfilePortal) ListProfiles()
func (*ProfilePortal) RemoveCustomProperty ¶ added in v0.3.1
func (this *ProfilePortal) RemoveCustomProperty()
func (*ProfilePortal) UpdateProfile ¶
func (this *ProfilePortal) UpdateProfile()
type ReplicationPortal ¶ added in v0.1.8
type ReplicationPortal struct {
BasePortal
}
func NewReplicationPortal ¶ added in v0.1.8
func NewReplicationPortal() *ReplicationPortal
func (*ReplicationPortal) CreateReplication ¶ added in v0.1.8
func (this *ReplicationPortal) CreateReplication()
func (*ReplicationPortal) DeleteReplication ¶ added in v0.1.8
func (this *ReplicationPortal) DeleteReplication()
func (*ReplicationPortal) DisableReplication ¶ added in v0.1.8
func (this *ReplicationPortal) DisableReplication()
func (*ReplicationPortal) EnableReplication ¶ added in v0.1.8
func (this *ReplicationPortal) EnableReplication()
func (*ReplicationPortal) FailoverReplication ¶ added in v0.1.8
func (this *ReplicationPortal) FailoverReplication()
func (*ReplicationPortal) GetReplication ¶ added in v0.1.8
func (this *ReplicationPortal) GetReplication()
func (*ReplicationPortal) ListReplications ¶ added in v0.1.8
func (this *ReplicationPortal) ListReplications()
func (*ReplicationPortal) ListReplicationsDetail ¶ added in v0.1.8
func (this *ReplicationPortal) ListReplicationsDetail()
func (*ReplicationPortal) UpdateReplication ¶ added in v0.1.8
func (this *ReplicationPortal) UpdateReplication()
type VolumeAttachmentPortal ¶
type VolumeAttachmentPortal struct {
BasePortal
}
func (*VolumeAttachmentPortal) CreateVolumeAttachment ¶
func (this *VolumeAttachmentPortal) CreateVolumeAttachment()
func (*VolumeAttachmentPortal) DeleteVolumeAttachment ¶
func (this *VolumeAttachmentPortal) DeleteVolumeAttachment()
func (*VolumeAttachmentPortal) GetVolumeAttachment ¶
func (this *VolumeAttachmentPortal) GetVolumeAttachment()
func (*VolumeAttachmentPortal) ListVolumeAttachments ¶
func (this *VolumeAttachmentPortal) ListVolumeAttachments()
func (*VolumeAttachmentPortal) UpdateVolumeAttachment ¶
func (this *VolumeAttachmentPortal) UpdateVolumeAttachment()
type VolumeGroupPortal ¶ added in v0.1.8
type VolumeGroupPortal struct {
BasePortal
}
func (*VolumeGroupPortal) CreateVolumeGroup ¶ added in v0.1.8
func (this *VolumeGroupPortal) CreateVolumeGroup()
func (*VolumeGroupPortal) DeleteVolumeGroup ¶ added in v0.1.8
func (this *VolumeGroupPortal) DeleteVolumeGroup()
func (*VolumeGroupPortal) GetVolumeGroup ¶ added in v0.1.8
func (this *VolumeGroupPortal) GetVolumeGroup()
func (*VolumeGroupPortal) ListVolumeGroups ¶ added in v0.1.10
func (this *VolumeGroupPortal) ListVolumeGroups()
func (*VolumeGroupPortal) UpdateVolumeGroup ¶ added in v0.1.8
func (this *VolumeGroupPortal) UpdateVolumeGroup()
type VolumePortal ¶
type VolumePortal struct {
BasePortal
}
func (*VolumePortal) CreateVolume ¶
func (this *VolumePortal) CreateVolume()
func (*VolumePortal) DeleteVolume ¶
func (this *VolumePortal) DeleteVolume()
func (*VolumePortal) ExtendVolume ¶ added in v0.1.1
func (this *VolumePortal) ExtendVolume()
ExtendVolume ...
func (*VolumePortal) GetVolume ¶
func (this *VolumePortal) GetVolume()
func (*VolumePortal) ListVolumes ¶
func (this *VolumePortal) ListVolumes()
func (*VolumePortal) UpdateVolume ¶
func (this *VolumePortal) UpdateVolume()
type VolumeSnapshotPortal ¶
type VolumeSnapshotPortal struct {
BasePortal
}
func (*VolumeSnapshotPortal) CreateVolumeSnapshot ¶
func (this *VolumeSnapshotPortal) CreateVolumeSnapshot()
func (*VolumeSnapshotPortal) DeleteVolumeSnapshot ¶
func (this *VolumeSnapshotPortal) DeleteVolumeSnapshot()
func (*VolumeSnapshotPortal) GetVolumeSnapshot ¶
func (this *VolumeSnapshotPortal) GetVolumeSnapshot()
func (*VolumeSnapshotPortal) ListVolumeSnapshots ¶
func (this *VolumeSnapshotPortal) ListVolumeSnapshots()
func (*VolumeSnapshotPortal) UpdateVolumeSnapshot ¶
func (this *VolumeSnapshotPortal) UpdateVolumeSnapshot()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.