Documentation
¶
Index ¶
- type Body
- type DetailResponse
- type DetailVolumeResponse
- type DetailVolumesResponse
- type RequestBody
- type Response
- type Service
- func (volumeService Service) Create(reqBody *Body) (Response, error)
- func (volumeService Service) Delete(id string) error
- func (volumeService Service) List() ([]Response, error)
- func (volumeService Service) Show(id string) (Response, error)
- func (volumeService Service) Update(id string, reqBody *Body) (Response, error)
- type VolumeResponse
- type VolumesResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body struct {
VolumeBody RequestBody `json:"volume"`
}
type DetailResponse ¶
type DetailResponse struct {
ID string `json:"id"`
Attachments []map[string]string `json:"attachments"`
Links []map[string]string `json:"links"`
Metadata map[string]string `json:"metadata"`
Protected bool `json:"protected"`
Status string `json:"status"`
MigrationStatus string `json:"migration_status"`
UserID string `json:"user_id"`
Encrypted bool `json:"encrypted"`
Multiattach bool `json:"multiattach"`
CreatedAt util.RFC8601DateTime `json:"created_at"`
Description string `json:"description"`
Volume_type string `json:"volume_type"`
Name string `json:"name"`
Source_volid string `json:"source_volid"`
Snapshot_id string `json:"snapshot_id"`
Size int64 `json:"size"`
Aavailability_zone string `json:"availability_zone"`
Rreplication_status string `json:"replication_status"`
Consistencygroup_id string `json:"consistencygroup_id"`
}
DetailResponse is a structure for all properties of an volume for a detailed query
type DetailVolumeResponse ¶
type DetailVolumeResponse struct {
DetailVolume DetailResponse `json:"volume"`
}
type DetailVolumesResponse ¶
type DetailVolumesResponse struct {
DetailVolumes []DetailResponse `json:"volumes"`
}
type RequestBody ¶
type Response ¶
type Response struct {
ID string `json:"id"`
Name string `json:"name"`
Consistencygroup_id string `json:"consistencygroup_id"`
}
Response is a structure for all properties of an volume for a non detailed query
type Service ¶
Source Files
¶
- volume.go
Click to show internal directories.
Click to hide internal directories.