api

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 DeleteVolumeGroupDBEntry(ctx *c.Context, volumeGroupId string) error

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 ExtendVolumeDBEntry(ctx *c.Context, volID string) (*model.VolumeSpec, error)

func FailoverReplicationDBEntry added in v0.1.8

func FailoverReplicationDBEntry(ctx *c.Context, in *model.ReplicationSpec, secondaryBackendId string) error

func Run

func Run(host string)

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 DockPortal

type DockPortal struct {
	BasePortal
}

DockPortal

func (*DockPortal) GetDock

func (this *DockPortal) GetDock()

GetDock

func (*DockPortal) ListDocks

func (this *DockPortal) ListDocks()

ListDocks

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 VersionPortal

type VersionPortal struct {
	beego.Controller
}

VersionPortal

func (*VersionPortal) GetVersion

func (this *VersionPortal) GetVersion()

GetVersion

func (*VersionPortal) ListVersions

func (this *VersionPortal) ListVersions()

ListVersions

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()

Directories

Path Synopsis
filter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL