api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2018 License: Apache-2.0 Imports: 19 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 CreateVolumeSnapshotDBEntry added in v0.1.6

func CreateVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) (*model.VolumeSnapshotSpec, 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 DeleteVolumeSnapshotDBEntry added in v0.1.6

func DeleteVolumeSnapshotDBEntry(ctx *c.Context, in *model.VolumeSnapshotSpec) error

func ExtendVolumeDBEntry added in v0.1.6

func ExtendVolumeDBEntry(ctx *c.Context, volID string) (*model.VolumeSpec, error)

func Run

func Run(host string)

Types

type BasePortal added in v0.1.4

type BasePortal struct {
	beego.Controller
}

func (*BasePortal) GetParameters added in v0.1.4

func (this *BasePortal) GetParameters() (map[string][]string, error)

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

func (this *PoolPortal) ListPools()

type ProfilePortal

type ProfilePortal struct {
	BasePortal
}

func (*ProfilePortal) AddExtraProperty

func (this *ProfilePortal) AddExtraProperty()

func (*ProfilePortal) CreateProfile

func (this *ProfilePortal) CreateProfile()

func (*ProfilePortal) DeleteProfile

func (this *ProfilePortal) DeleteProfile()

func (*ProfilePortal) GetProfile

func (this *ProfilePortal) GetProfile()

func (*ProfilePortal) ListExtraProperties

func (this *ProfilePortal) ListExtraProperties()

func (*ProfilePortal) ListProfiles

func (this *ProfilePortal) ListProfiles()

func (*ProfilePortal) RemoveExtraProperty

func (this *ProfilePortal) RemoveExtraProperty()

func (*ProfilePortal) UpdateProfile

func (this *ProfilePortal) UpdateProfile()

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