api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTypeName = "default"

DefaultTypeName ...

View Source
var (
	// SleepDuration When running unit tests, it should be set to time.Nanosecond
	SleepDuration = time.Second
)

Functions

func GetProjectId

func GetProjectId(reqURL string) string

GetProjectId Get the value of project_id

func NewClient

func NewClient(ctx *bctx.Context)

NewClient Recreate the client only when authStrategy == c.Keystone and copy it to the global variable opensdsClient

func Run

func Run(cinderEndpoint string)

Run ...

Types

type AttachmentPortal

type AttachmentPortal struct {
	beego.Controller
}

AttachmentPortal ...

func (*AttachmentPortal) CreateAttachment

func (portal *AttachmentPortal) CreateAttachment()

CreateAttachment ...

func (*AttachmentPortal) DeleteAttachment

func (portal *AttachmentPortal) DeleteAttachment()

DeleteAttachment ...

func (*AttachmentPortal) GetAttachment

func (portal *AttachmentPortal) GetAttachment()

GetAttachment ...

func (*AttachmentPortal) ListAttachments

func (portal *AttachmentPortal) ListAttachments()

ListAttachments ...

func (*AttachmentPortal) ListAttachmentsDetails

func (portal *AttachmentPortal) ListAttachmentsDetails()

ListAttachmentsDetails ...

func (*AttachmentPortal) UpdateAttachment

func (portal *AttachmentPortal) UpdateAttachment()

UpdateAttachment ...

type ErrorSpec

type ErrorSpec struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

ErrorSpec describes Detailed HTTP error response, which consists of a HTTP status code, and a custom error message unique for each failure case.

type SnapshotPortal

type SnapshotPortal struct {
	beego.Controller
}

SnapshotPortal ...

func (*SnapshotPortal) CreateSnapshot

func (portal *SnapshotPortal) CreateSnapshot()

CreateSnapshot ...

func (*SnapshotPortal) DeleteSnapshot

func (portal *SnapshotPortal) DeleteSnapshot()

DeleteSnapshot ...

func (*SnapshotPortal) GetSnapshot

func (portal *SnapshotPortal) GetSnapshot()

GetSnapshot ...

func (*SnapshotPortal) ListSnapshots

func (portal *SnapshotPortal) ListSnapshots()

ListSnapshots ...

func (*SnapshotPortal) ListSnapshotsDetails

func (portal *SnapshotPortal) ListSnapshotsDetails()

ListSnapshotsDetails ...

func (*SnapshotPortal) UpdateSnapshot

func (portal *SnapshotPortal) UpdateSnapshot()

UpdateSnapshot ...

type TypePortal

type TypePortal struct {
	beego.Controller
}

TypePortal ...

func (*TypePortal) AddExtraProperty

func (portal *TypePortal) AddExtraProperty()

AddExtraProperty ...

func (*TypePortal) CreateType

func (portal *TypePortal) CreateType()

CreateType ...

func (*TypePortal) DeleteExtraProperty

func (portal *TypePortal) DeleteExtraProperty()

DeleteExtraProperty ...

func (*TypePortal) DeleteType

func (portal *TypePortal) DeleteType()

DeleteType ...

func (*TypePortal) GetType

func (portal *TypePortal) GetType()

GetType ...

func (*TypePortal) ListExtraProperties

func (portal *TypePortal) ListExtraProperties()

ListExtraProperties ...

func (*TypePortal) ListTypes

func (portal *TypePortal) ListTypes()

ListTypes ...

func (*TypePortal) ShowExtraProperty

func (portal *TypePortal) ShowExtraProperty()

ShowExtraProperty ...

func (*TypePortal) UpdateExtraProperty

func (portal *TypePortal) UpdateExtraProperty()

UpdateExtraProperty ...

func (*TypePortal) UpdateType

func (portal *TypePortal) UpdateType()

UpdateType ...

type VersionPortal

type VersionPortal struct {
	beego.Controller
}

VersionPortal ...

func (*VersionPortal) ListAllAPIVersions

func (portal *VersionPortal) ListAllAPIVersions()

ListAllAPIVersions ...

type VolumePortal

type VolumePortal struct {
	beego.Controller
}

VolumePortal ...

func (*VolumePortal) CreateVolume

func (portal *VolumePortal) CreateVolume()

CreateVolume ...

func (*VolumePortal) DeleteVolume

func (portal *VolumePortal) DeleteVolume()

DeleteVolume ...

func (*VolumePortal) GetVolume

func (portal *VolumePortal) GetVolume()

GetVolume ...

func (*VolumePortal) ListVolumes

func (portal *VolumePortal) ListVolumes()

ListVolumes ...

func (*VolumePortal) ListVolumesDetails

func (portal *VolumePortal) ListVolumesDetails()

ListVolumesDetails ...

func (*VolumePortal) UpdateVolume

func (portal *VolumePortal) UpdateVolume()

UpdateVolume ...

func (*VolumePortal) VolumeAction

func (portal *VolumePortal) VolumeAction()

VolumeAction ...

Jump to

Keyboard shortcuts

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